mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Creating and moving around new tower monitors for munin
This commit is contained in:
17
tools/munin_monitors/postgres_alive
Executable file
17
tools/munin_monitors/postgres_alive
Executable 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"
|
||||
Reference in New Issue
Block a user