Permalink
Browse files

add check_sympa

  • Loading branch information...
1 parent 2d8fffa commit 106fc44079c859c2c950ea40c58834d5666a6b84 @derf derf committed Nov 20, 2012
Showing with 27 additions and 0 deletions.
  1. +26 −0 nagios-checks/local/check_sympa
  2. +1 −0 nagios-passive/passive_checks.cfg
@@ -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
@@ -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]

0 comments on commit 106fc44

Please sign in to comment.