[project @ peter@palfrader.org-20080403115113-jvbesux7e8rskfb2]
authorPeter Palfrader <peter@palfrader.org>
Thu, 3 Apr 2008 11:51:13 +0000 (07:51 -0400)
committerPeter Palfrader <peter@palfrader.org>
Thu, 3 Apr 2008 11:51:13 +0000 (07:51 -0400)
nagios forks one instance to do its check, so there will always be 2 nagios processes, even if we only want one

nagios-master.cfg

index 7615b72..cdc3c22 100644 (file)
@@ -380,7 +380,8 @@ services:
     hosts: samosa
   -
     name: process - nagios3
     hosts: samosa
   -
     name: process - nagios3
-    nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u nagios -C nagios3 -a '/usr/sbin/nagios3 -d /etc/nagios3/nagios.cfg'"
+    # it forks one instance to check, so make it -w 1:2
+    nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u nagios -C nagios3 -a '/usr/sbin/nagios3 -d /etc/nagios3/nagios.cfg'"
     hosts: samosa
 
  ###
     hosts: samosa
 
  ###