1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh # # This is the munin plugin that connects to # ./syslog_munin.py and asks for config and/or # values if [ "$1" == "config" ]; then echo config | nc 127.0.0.1 51401 elif [ "$1" == "" ]; then echo values | nc 127.0.0.1 51401 else exit 1 fi