Nagios 1.2 monitor process not running

Jeff McKeon jmckeon at telaurus.com
Wed Feb 18 21:45:36 CET 2004


I found half the problem...

It's in the cgi.cfg file.

# NAGIOS PROCESS CHECK COMMAND
# This is the full path and filename of the program used to check
# the status of the Nagios process.  It is used only by the CGIs
# and is completely optional.  However, if you don't use it, you'll
# see warning messages in the CGIs about the Nagios process
# not running and you won't be able to execute any commands from
# the web interface.  The program should follow the same rules
# as plugins; the return codes are the same as for the plugins,
# it should have timeout protection, it should output something
# to STDIO, etc.
#
# Note: If you are using the check_nagios plugin here, the first
# argument should be the physical path to the status log, the
# second argument is the number of minutes that the status log
# contents should be "fresher" than, and the third argument is the
# string that should be matched from the output of the 'ps'
# command in order to locate the running Nagios process.  That
# process string is going to vary depending on how you start
# Nagios.  Run the 'ps' command manually to see what the command
# line entry for the Nagios process looks like.

nagios_check_command=/usr/local/nagios/libexec/check_nagios
/var/log/nagios/status.log 5 '/usr/bin/nagios'

The problem now is the second parameter of the command, the
'/usr/bin/nagios'  

I don't think it's correct because now I'm getting the following
error...

Process Status:   CRITICAL   
Check Command Output:  Could not locate a running Nagios process!   

I'm not sure how to use the 'ps' command to figure it out..

Jeff
> -----Original Message-----
> From: Marc Powell [mailto:marc at ena.com] 
> Sent: Wednesday, February 18, 2004 3:40 PM
> To: Jeff McKeon; Nagios List
> Subject: RE: [Nagios-users] Nagios 1.2 monitor process not running
> 
> 
> On Wednesday, February 18, 2004 2:17 PM, Jeff McKeon shared with us:
> 
> > Hey all,
> > 
> > Ok, so I removed my orignal install of nagios and installed ver 1.2 
> > using the nagios-1.2-0.rh80.dag.i386.rpm install
> > 
> > I kept my old plugins and logo icons ad they all see to be 
> working ok.
> > 
> > The problem is:
> > 
> >  Warning: Monitoring process may not be running!
> > Click here for more info.
> > 
> > Which brings me to...
> > 
> > Process Status:   CRITICAL
> > Check Command Output:  Error: Cannot open status log for reading!
> > 
> > Anyone have any idea what I've missed?
> 
> 
> Well, of course there are the basics --
> 	Does the file exist in the location that the check 
> command is looking?
> 	Is it readable by the user your web server runs as?
> 
> Another problem could be if you switched to using a database 
> back-end as part of your upgrade or the rpm you used was 
> originally designed to use flat file backend but you changed 
> it to use a database backend. If so then you'll need to use 
> check_nagios_db.pl located in the plugins contrib directory 
> as your nagios check command.
> 
> Did you diff the config files between the old and new 
> installs to see if anything changed there?
> 
> --
> Marc
> 


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&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