diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-11 07:55:49 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-11 07:56:00 +0200 |
commit | 03e1286bc5e7f52c0712c991fa8f7771724a0516 (patch) | |
tree | 67b2c914c1e1d5199a1fd26839ec3e9635eb04a6 | |
parent | 218471cf1397b554ad9c7f9a1c919b8aaf0f75cd (diff) | |
download | mmbtools-aux-03e1286bc5e7f52c0712c991fa8f7771724a0516.tar.gz mmbtools-aux-03e1286bc5e7f52c0712c991fa8f7771724a0516.tar.bz2 mmbtools-aux-03e1286bc5e7f52c0712c991fa8f7771724a0516.zip |
Update syslog munin plugin
-rwxr-xr-x | syslog_munin/syslog_munin_plugin.sh | 9 |
1 files 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 |