nagios restart error

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
mohiddins
Posts: 2
Joined: Thu Mar 26, 2015 12:12 am

nagios restart error

Post by mohiddins »

Hi All,

Recently my nagios got crashed as im unable to browse are view any host entries & other information getting below error

Whoops!

Error: Could not read host and service status information!

The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios.

Some other things you should check in order to resolve this error include:

Check the Nagios log file for messages relating to startup or status data errors.
Always verify configuration options using the -v command-line option before starting or restarting Nagios!
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.

Steps Taken
1. Tried to Restart the nagios service
Error : [root@Nagios ~]# service nagios restart
Running configuration check...
Stopping nagios:kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
done.
Starting nagios: done.

2. Run the command # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

[root@Nagios ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.1.0rc1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 02-18-2015
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 55 services.
Checked 7 hosts.
Checked 2 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 7 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
[root@Nagios ~]#


Can any one help me out from this..
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: nagios restart error

Post by ssax »

Please post the output of the following:

Code: Select all

ls -l /usr/local/nagios/var/status.dat
ls -l /usr/local/nagios/var/retention.dat
Also, if you stop nagios, does the status.dat file from above get removed? If not, manually delete the status.dat file (it will get rebuilt) and start nagios.
mohiddins
Posts: 2
Joined: Thu Mar 26, 2015 12:12 am

Re: nagios restart error

Post by mohiddins »

Thanks for you support my issue has been resolved by restoring the backup files
Locked