There doesn't appear to be any service status information in

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
parthipan
Posts: 9
Joined: Tue Jun 12, 2012 3:00 am

There doesn't appear to be any service status information in

Post by parthipan »

the web interface is not showing any of my hosts or services and gives me this error when trying to look at the service detail:

"There doesn't appear to be any service status information in the status log...

Make sure that Nagios is running and that you have specified the location of you status log correctly in the configuration files."

I get a similiar error when looking at the host groups only it says "hosts status" instead of "service status"

I've looked around and it seems that most people get this error when Nagios isn't running or when the nagios.log and/or status.dat are pointed to incorrectly in the main configuration file.

I've restarted nagios and verified the config by runnning " /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg" and everything checks out fine. I've tried to reboot the server but I'm still getting the same error.

Also, I checked both "/usr/local/nagios/var/status.dat and /usr/local/nagios/var/nagios.log (which are the locations specified in nagios.cfg) and they are completely empty. Any ideas why this is?

Forgive me if this is a stupid question. Up until now I haven't had any major issues with it and unfortunately I took over someone else's install of it so I'm not familiar with it inside and out.

Any advice would be greatly appreciated.

and
when i provide
[root@localhost ~]# service nagios restart
Running configuration check...done.
Stopping nagios: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
done.
Starting nagios: done.
[root@localhost ~]# /etc/init.d/nagios status
nagios is not running
[root@localhost ~]# service nagios start
Starting nagios: done.
[root@localhost ~]# /etc/init.d/nagios status
nagios is not running

[root@localhost ~]# touch /usr/local/nagios/var/nagios.log /usr/local/nagios/var/status.sav
[root@localhost ~]# chown nagios:nagios /usr/local/nagios/var/nagios.log /usr/local/nagios/var/status.sav
[root@localhost ~]# service nagios stop
Stopping nagios: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
done.
[root@localhost ~]# service nagios start
Starting nagios: done.
[root@localhost ~]# service nagios status
nagios is not running
please help to solve this problem
mykie
Posts: 8
Joined: Thu Sep 29, 2011 9:01 am

Re: There doesn't appear to be any service status informatio

Post by mykie »

I'm experiencing the same problem, the init script isn't putting the PID into /var/run/nagios.pid so nagios cant check its status and its also why the stop script doesnt work as no PID is being passed to it

Will be hacking my init script shortly if i dont get a hand.. will post up when done
Last edited by mykie on Mon Jun 25, 2012 8:13 am, edited 1 time in total.
mykie
Posts: 8
Joined: Thu Sep 29, 2011 9:01 am

Re: There doesn't appear to be any service status informatio

Post by mykie »

didnt get a reponse so the work around i came up was edit the init script

/etc/init.d/nagios

and added this line

Code: Select all

`pgrep -of nagios.cfg > $NagiosRunFile`
in the start sub routine at line 137 just after

Code: Select all

$NagiosBin -d $NagiosCfgFile
**Edit**

Juist had my post updated and my issue resolved, rather than using my work around check you nagios.cfg file for your lock file, then either make sure it matches the one below or update your init script to the same location

Code: Select all

lock_file=/var/run/nagios.pid
Locked