1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00

Initial version

This commit is contained in:
Ankush Grover 2011-06-14 14:10:35 +02:00 committed by Steve Schnepp
parent 5932ea0ed3
commit c571cd207a

31
plugins/other/ossec-agents Executable file
View file

@ -0,0 +1,31 @@
#!/bin/bash
if [ "$1" = "autoconf" ]; then
echo "yes"
exit 0
fi
if [ "$1" = "config" ]; then
echo "graph_title Ossec Agents Status"
echo "graph_args --base 1000 -l 0"
echo "graph_vlabel Number of Ossec Agents"
echo "graph_category Ossec"
echo "graph_scale no"
echo "active.label ACTIVE"
echo "active.draw LINE2"
echo 'active.min 0'
echo "inactive.label INACTIVE"
echo "inactive.draw LINE2"
echo 'inactive.min 0'
exit 0
fi
ACTIVE=`/var/ossec/bin/list_agents -c | grep -wv "** No agent available" | wc -l`
INACTIVE=`/var/ossec/bin/list_agents -n | grep -wv "** No agent available" | wc -l`
echo "active.value ${ACTIVE}"
echo "inactive.value ${INACTIVE}"
exit 0