awx/tools/munin_monitors/rabbit_alive
Matthew Jones d29a82bcaa Change the rabbit process count query for munin graphs... sometimes
there isn't a rabbitmq-server process
2014-08-14 15:52:25 -04:00

17 lines
267 B
Bash
Executable File

#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_title Rabbit Processes
graph_vlabel num processes
graph_category tower
rabbit.label Rabbit Processes
EOM
exit 0;;
esac
printf "rabbit.value "
ps ax | grep rabbitmq | grep -v grep | wc -l
printf "\n"