Skip to content

Commit

Permalink
add check_sympa
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Nov 20, 2012
1 parent 2d8fffa commit 106fc44
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions nagios-checks/local/check_sympa
@@ -0,0 +1,26 @@
#!/bin/sh

PID_SYMPA="$(pgrep -x sympa.pl)"
OK_SYMPA="$?"

PID_BULK="$(pgrep -x bulk.pl)"
OK_BULK="$?"

PID_ARCHIVED="$(pgrep -x archived.pl)"
OK_ARCHIVED="$?"

PID_MGR="$(pgrep -x task_manager.pl)"
OK_MGR="$?"

PID_BOUNCED="$(pgrep -x bounced.pl)"
OK_BOUNCED="$?"

if [ "${OK_SYMPA} ${OK_BULK} ${OK_ARCHIVED} ${OK_MGR} ${OK_BOUNCED}" = "0 0 0 0 0" ]
then
echo "OK: Everything running"
exit 0
else
echo "WARNING: sympa=${PID_SYMPA} bulk=${PID_BULK} archived=${PID_ARCHIVED}"\
" mgr=${PID_MGR} bounced=${PID_BOUNCED}"
exit 1
fi
1 change: 1 addition & 0 deletions nagios-passive/passive_checks.cfg
Expand Up @@ -34,6 +34,7 @@ Door = /usr/lib/nagios/plugins/check_ping -H door.chaosdorf.dn42 -w 5000,100% -c

Ikiwiki: intern = /usr/lib/nagios/plugins/check_ikiwiki -u ikiwiki -g ikiwiki-repo -c /etc/ikiwiki/wiki
Mail Queue = /usr/lib/nagios/plugins/check_mailq -w 10 -c 20 -M postfix
Sympa = /usr/lib/nagios/plugins/check_sympa


[intern.chaosdorf.de/60]
Expand Down

0 comments on commit 106fc44

Please sign in to comment.