Bug with two nagios services starting
Posted: Wed Mar 23, 2011 10:58 am
OS: Centos 5.5
Version: Nagios XI 2009R1.4B
Problem:
This particular bug is showing up frequently enough where I need to report it so it can be looked at. I consider this one to be rather serious.
We have many people working on the system now and applying changes all the time. The problem now is that we keep getting duplicate nagios parents running on our system.
Duplication:
All we need to do is make changes to something inside Nagios and give it a restart, then I run this command:
ps -ef | grep "/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg" | grep -v grep
It will display something like this:
nagios 27657 1 3 09:43 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
with a ton of children
and
nagios 1024 1 3 09:43 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
with it's children
this causes the "process was orphaned" problem in the /usr/local/nagios/var/nagios.log file. Also, we noticed that we cannot view any notifications from yesterday (3-22 0:00:00 - 3:23 0:00:00) which we think might be related to this issue.
Any ideas on how I can stop the duplicate nagios service from appearing?
Version: Nagios XI 2009R1.4B
Problem:
This particular bug is showing up frequently enough where I need to report it so it can be looked at. I consider this one to be rather serious.
We have many people working on the system now and applying changes all the time. The problem now is that we keep getting duplicate nagios parents running on our system.
Duplication:
All we need to do is make changes to something inside Nagios and give it a restart, then I run this command:
ps -ef | grep "/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg" | grep -v grep
It will display something like this:
nagios 27657 1 3 09:43 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
with a ton of children
and
nagios 1024 1 3 09:43 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
with it's children
this causes the "process was orphaned" problem in the /usr/local/nagios/var/nagios.log file. Also, we noticed that we cannot view any notifications from yesterday (3-22 0:00:00 - 3:23 0:00:00) which we think might be related to this issue.
Any ideas on how I can stop the duplicate nagios service from appearing?