Multiple Nagios proccesses running.

Larry Naves lnaves at asc.edu
Tue Jul 26 02:15:35 CEST 2005


Even when I ensure that all nagios processes are killed and then start
nagios again, I still get muliple processes. I have tried using the init
script to start (service nagios start #not restart) and running the
executable by hand (/usr/local/nagios/bin/nagios -d
/usr/local/nagios/etc/nagios.cfg) but both continue to give me multiple
processes. What am I doing wrong? See below:

[root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v
grep
nagios   26057  2.2  0.2  6580 5236 ?        S    Jul22 108:46
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    3893  0.0  0.2  6584 5236 ?        S    18:44   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    3961  0.0  0.2  6580 5236 ?        R    18:44   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

[root at XXXX root]# service nagios stop
Stopping network monitor: nagios

[root at intranet root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep
-v grep
nagios    4110  0.2  0.2  6584 5236 ?        S    18:44   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    4175  0.1  0.2  6584 5236 ?        S    18:44   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    4180  0.1  0.2  6584 5236 ?        S    18:44   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    4233  0.1  0.2  6584 5236 ?        S    18:44   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    4275  0.3  0.2  6584 5236 ?        S    18:44   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

[root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v
grep

[root at XXXX root]# killall -9 nagios
nagios: no process killed

[root at XXXX root]# service nagios start
Starting network monitor: nagios
  PID TTY          TIME CMD
 4484 ?        00:00:00 nagios

[root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v
grep
nagios    4484  2.1  0.2  6064 4704 ?        S    18:44   0:09
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   19598  1.0  0.2  6068 4704 ?        S    18:52   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   19615  0.0  0.2  6068 4704 ?        S    18:52   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   19621  0.0  0.2  6064 4704 ?        S    18:52   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   19625  0.0  0.2  6068 4704 ?        S    18:52   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   19628  0.0  0.2  6068 4704 ?        S    18:52   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   19631  0.0  0.2  6068 4704 ?        S    18:52   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   19634  0.0  0.2  6068 4704 ?        S    18:52   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   19637  0.0  0.2  6068 4704 ?        S    18:52   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

[root at XXXX root]# service nagios stop 
Stopping network monitor: nagios

[root at XXXX root]# killall -9 nagios

[root at XXXX root]# killall -9 nagios
nagios: no process killed

[root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v
grep

[root at XXXX root]# /usr/local/nagios/bin/nagios -d
/usr/local/nagios/etc/nagios.cfg

[root at XXXX root]# ps -aux | grep '/usr/local/nagios/bin/nagios' | grep -v
grep
nagios   20213 12.0  0.2  6068 4700 ?        S    18:53   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   20241  1.0  0.2  6068 4700 ?        S    18:53   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   20250  2.0  0.2  6068 4700 ?        S    18:53   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

[root at XXXX root]# 

Larry Wayne Naves, Jr. "Jay"
Systems Analyst
Computer Sciences Corporation /
Alabama Supercomputer Authority  

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
> Of Paul L. Allen
> Sent: Monday, July 25, 2005 5:15 PM
> To: 'Nagios Users'
> Subject: [Nagios-users] Re: Multiple Nagios proccesses running.
> 
> Larry Naves writes: 
> 
> > What is the best way to keep multiple nagios processes from running:
> 
> Don't run nagios. 
> 
> In the older 1.x versions (might be fixed in the latest 1.x 
> version but I can't remember and can't be bothered to check) 
> nagios is very likely to have multiple instances if you 
> restart it or if you stop/start it too quickly (here, "too 
> quickly" means "before existing insatances have died"). 
> 
> If you're running an affected version then either use ps to 
> see if there are still outstanding nagios processes or 
> terminate them with extreme prejudice or stop using nagios.  
> None of those are ideal options but those are your choices. 
> 
> --
> Paul Allen
> Softflare Support 
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS 
> when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: 
> 7/22/2005
>  
> 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.4/57 - Release Date: 7/22/2005
 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list