Creating and moving around new tower monitors for munin

This commit is contained in:
Matthew Jones
2014-07-30 16:57:43 -04:00
parent 67ddbd6fd6
commit 56255777bc
8 changed files with 109 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_title Callback Receiver Processes
graph_vlabel num processes
graph_category tower
callbackr.label Callback Receiver Processes
callbackr.type DERIVE
EOM
exit 0;;
esac
printf "callbackr.value "
ps ax | grep run_callback_receiver | grep -v grep | wc -l
printf "\n"

View File

@@ -0,0 +1,17 @@
#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_title Celery Processes
graph_vlabel num processes
graph_category tower
celeryd.label Celery Processes
celeryd.type DERIVE
EOM
exit 0;;
esac
printf "celeryd.value "
ps ax | grep celeryd | grep -v grep | wc -l
printf "\n"

View File

@@ -0,0 +1,17 @@
#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_title Postmaster Processes
graph_vlabel num processes
graph_category tower
postmaster.label Postmaster Processes
postmaster.type DERIVE
EOM
exit 0;;
esac
printf "postmaster.value "
ps ax | grep postmaster | grep -v grep | wc -l
printf "\n"

View File

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

View File

@@ -0,0 +1,17 @@
#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_title SocketIO Service Processes
graph_vlabel num processes
graph_category tower
socketio.label SocketIO Service Processes
socketio.type DERIVE
EOM
exit 0;;
esac
printf "socketio.value "
ps ax | grep run_socketio_service | grep -v grep | wc -l
printf "\n"

View File

@@ -0,0 +1,17 @@
#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_title Task Manager Processes
graph_vlabel num processes
graph_category tower
taskm.label Task Manager Processes
taskm.type DERIVE
EOM
exit 0;;
esac
printf "taskm.value "
ps ax | grep run_task_system | grep -v grep | wc -l
printf "\n"

30
tools/munin_monitors/tower_jobs Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/sh
case $1 in
config)
cat <<'EOM'
multigraph tower_jobs
graph_title Running Jobs breakdown
graph_vlabel job count
graph_category tower
running.label Running jobs
running.type DERIVE
waiting.label Waiting jobs
waiting.type DERIVE
pending.label Pending jobs
pending.type DERIVE
EOM
exit 0;;
esac
printf "running.value "
awx-manage stats --stat jobs_running
printf "\n"
printf "waiting.value "
awx-manage stats --stat jobs_waiting
printf "\n"
printf "pending.value "
awx-manage stats --stat jobs_pending
printf "\n"