Page 1 of 1

Periodically, there are multiple Nagios processes running

Posted: Fri Jan 09, 2015 10:28 am
by ckenkare
Hi,

We are using SLES 11 - nagios core 3.0.6 (listed below).

SLES Nagios RPM files used
root@DEVHA50-node0# rpm -qa | grep -i nagios
nagios-nrpe-server-2.12-4.5
nagios-nrpe-client-2.12-4.5
nagios-3.0.6-1.25.34.1
nagios-plugins-1.4.13-1.37.1
nagios-nrpe-2.12-24.4.8.1
nagios-www-3.0.6-1.25.34.1

There are 2 issues/observations seen the system which is running nagios and are as below :

Issue-1: It has been noticed that there are multiple Nagios processes running on system for a brief period of time (as below).

Question:
1. Is it normal / expected behavior for multiple instances to be running for a brief period of time ?

Trace:
root@vtsl-lab1-node1# ps -ef | grep /usr/sbin/nagios | grep -v grep
nagios 3095 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3108 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3119 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3121 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3124 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3126 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3130 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3134 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3155 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3161 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3196 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3226 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3240 1 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 3245 26992 0 14:56 ? 00:00:00 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg
nagios 26992 1 0 Dec29 ? 00:01:12 /usr/sbin/nagios -d
/etc/nagios/nagios.cfg


Issue-2:Couple of times it is noticed that multiple Nagios process exists on the system for long time (I believe this is not expected) and eventuall endup in killing it using 'kill -9 ..'

Questions:
1. Is it a known issue in Nagios ?
2. If yes, Is there a patch/new version available so that it can be applied to eliminate above issue ?
3. If not, are there any alternates to avoid/fix above situation.

Thanks in advance for your help.

Re: Periodically, there are multiple Nagios processes runnin

Posted: Fri Jan 09, 2015 3:15 pm
by sreinhardt
There have been several possible issues for this. Core 3.0.6 is quite old, and should be updated to at least 3.5 if not 4.0.x. It is never expected, that multiple instances should be running. It is however very likely that multiple processes are, all with a singular parent process. I think all of these issues would be corrected with an update to core and the init scripts.