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

@@ -204,7 +204,13 @@ setup(
"config/awx-munin.conf",
]),
("%s" % sharedir, ["tools/scripts/request_tower_configuration.sh",]),
("%s" % munin_plugin_path, ["tools/scripts/tower_jobs"]),
("%s" % munin_plugin_path, ["tools/munin_monitors/tower_jobs",
"tools/munin_monitors/callbackr_alive",
"tools/munin_monitors/celery_alive",
"tools/munin_monitors/postgres_alive",
"tools/munin_monitors/rabbit_alive",
"tools/munin_monitors/socketio_alive",
"tools/munin_monitors/taskmanager_alive"]),
("%s" % munin_plugin_conf_path, ["config/awx_munin_tower_jobs"]),
("%s" % sysinit, ["tools/scripts/ansible-tower"]),
]

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"