From 03e1286bc5e7f52c0712c991fa8f7771724a0516 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 11 Aug 2017 07:55:49 +0200 Subject: Update syslog munin plugin --- syslog_munin/syslog_munin_plugin.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/syslog_munin/syslog_munin_plugin.sh b/syslog_munin/syslog_munin_plugin.sh index 97e0951..4f70c53 100755 --- a/syslog_munin/syslog_munin_plugin.sh +++ b/syslog_munin/syslog_munin_plugin.sh @@ -4,9 +4,10 @@ # ./syslog_munin.py and asks for config and/or # values -if [ "$1" == "" ]; then - echo "argument expected" - exit 1 +if [ "$1" == "config" ]; then + echo config | nc 127.0.0.1 51401 +elif [ "$1" == "" ]; then + echo values | nc 127.0.0.1 51401 else - echo $1 | nc 127.0.0.1 51401 + exit 1 fi -- cgit v1.2.3