I think you'll have to write one... check_procs is not helpful in this case, as the daemon forks off many processes to run plugins. Just checking for number of Nagios processes won't help, as it won't be aware of parent/child relationships.
Now, mind you, I *do* run check_procs on my Nagios servers just to make sure I don't have runaways. But it won't tell me if I have more than one daemon running. If you really want to work on this, you'll have to write a plugin that is able to follow the parent/child relationships (take a look at the ps man page) and is able to determine if there's more than one parent process. I *think* that is a decent direction to go. > Slightly off topic, but how best to write nagios check that checks for > this specific behavior (multiple instances of nagios running) ? > > > ----- Original Message ----- > From: "Mike Guthrie" <mguth...@nagios.com> > To: "Nagios Users List" <nagios-users@lists.sourceforge.net> > Sent: Wednesday, January 2, 2013 3:23:58 PM > Subject: Re: [Nagios-users] Inconsistency of Nagios > > > > Typically when I've seen behavior like this, it's because there are > multiple parent processes of Nagios running, so both instances are > launching checks, and reaping each others results. Try killing off all > Nagios processes, and then starting it fresh again to see if that resolves > the issue. > > /etc/init.d/nagios stop > killall -9 nagios > /etc/init.d/nagios start > > > > > On 1/2/2013 4:38 AM, Srikanth Gumma wrote: > > > > Hi, > > > I need some help regarding nagios. > > > We have around 500 Linux servers for which we are doing a ping and ssh > monitoring only. The entire functionality is based on remote and no NRPE > service is deployed. However I see very inconsistency on nagios > functionality. sometimes I don't see any updates on the nagios console for > more than one week. > > > Our Nagios is installed on CentOS6.2 OS and it's the latest version Nagios > Core 3.4.3. and I could only see some messages like below in > /var/log/messages > > > > > > 'SSH' on host 'xyz' looks like it was orphaned (results never came back). > I'm scheduling an immediate check of the service... > > > > > any help is highly appreciated. > > > > > Regards > Srikanth > > ------------------------------------------------------------------------------ > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > > _______________________________________________ > Nagios-users mailing list Nagios-users@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 > > -- > > > Mike Guthrie > Technical Team > ___ > Nagios Enterprises, LLC > Email: mguth...@nagios.com Web: www.nagios.com > ------------------------------------------------------------------------------ > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > Nagios-users mailing list > Nagios-users@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 > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122712 > _______________________________________________ > Nagios-users mailing list > Nagios-users@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 > -- "The very existence of flamethrowers proves that sometime, somewhere, someone said to themselves, 'You know, I want to set those people over there on fire, but I'm just not close enough to get the job done.'" -- George Carlin ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ Nagios-users mailing list Nagios-users@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