check_nagios command not picking up nagios process

C. Bensend benny at bennyvision.com
Thu Mar 4 20:12:15 CET 2004


> That didn't work for me.  It would appear that check_nagios
> (check_procs) is very picky about what it will match.  It will match
> some commands, but it will  not match the same command with a varied
> command line execution.  Dumb.  How can I fix this?
>
> su-2.05b# ps xa|grep nagios
>   8519  ??  Ss     0:02.62 /usr/local/bin/nagios -d
> /usr/local/etc/nagios/nagios.cfg
> 17485  p0  R+     0:00.00 grep nagios
> su-2.05b# /usr/local/libexec/nagios/check_nagios -F
> /var/spool/nagios/status.log -e 5 -C "/usr/local/bin/nagios"
> Could not locate a running Nagios process!

Um.  Pardon me if this has already been answered, but is 'ps xa' the exact
ps command check_nagios is using?  I haven't followed this entire thread,
so this might have been covered.

Check your config.h for the _exact_ ps command it's using, and then try
that from the command line.  What's different about the output you're
getting, and the output check_nagios is expecting?

Benny


-- 
"Have you ever tried simply turning off the TV, sitting down with your
children, and hitting them?"                   -- Bender, "Futurama"


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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