aboutsummaryrefslogtreecommitdiffstats
path: root/syslog_munin/syslog_munin_plugin.sh
blob: 4f70c538feeef8ca1b7f831eaf21f75940720a74 (plain)
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