Add some munin tower monitoring tasks

This commit is contained in:
Matthew Jones
2014-07-29 11:44:36 -04:00
parent ccf974ed83
commit 69a3f68832
4 changed files with 80 additions and 1 deletions

27
tools/scripts/tower_jobs Normal file
View File

@@ -0,0 +1,27 @@
#!/bin/sh
case $1 in
config)
cat <<'EOM'
multigraph 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 "waiting.value "
awx-manage stats --stat jobs_waiting
printf "pending.value "
awx-manage stats --stat jobs_pending