Process Status unknown


#1

I have 1.2 installed. It is running successfully checking 1 host. When I go to the “Process Info” page, the Check Command Output: Could not locate a running Nagios process!

I checked my cgi.cfg file and I have this for check command:
/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 5 ‘/usr/local/nagios/bin/nagios’

I have verified that all of those locations and files exist. There is 27GB free on /.

I was thinking that maybe I am missing a argument? I could not find anything regarding the -d or a -C argument.

Thanks for the help.
PJ


#2

try stopping nagios, then make a
ps -ef | grep nagios
kill any surviving processes
and restart nagios.
see if it helps.

Luca


#3

I have already done that and it did not help the situation. The only ifo that I can get is:

Program Start Time: 11-02-2005 10:57:06
Total Running Time: 0d 0h 0m 9s
Last External Command Check: N/A
Last Log File Rotation: N/A
Nagios PID 20400
Notifications Enabled? YES
Service Checks Being Executed? YES
Passive Service Checks Being Accepted? YES
Event Handlers Enabled? Yes
Obsessing Over Services? No
Flap Detection Enabled? No
Performance Data Being Processed? No


#4

did you compile to use a mysql db? If so, that check won’t work i.e.
/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 5 ‘/usr/local/nagios/bin/nagios’


#5

No, I ran the configure script with the default settings, make, make install.

What should that line look like if I am doing a generic nagios? ( I thought I had it correct, apparently not)


#6

check the log file for permissions needed for the nagios user to read it.
Try running the command by hand after su - nagios.


#7

Okay, got it. The command that I was checking for in ps was off. I thought that when nagios ran, it reported the entire path…

I set nagios as what to look for and removed the -d stuff and we are good there.

Thanks for the help, its appreciated.
Edited Wed Nov 02 2005, 11:18AM ]