Hi everyone!
I have problem with Nagios.
It works properly, but after restarting Linux it show error:
[quote][size=150]Whoops![/size]
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 nagios.org. [/quote]
Hi,
It looks like your config for Nagios is fine. The issues is you are missing the RC Init Script. ( /etc/rc.d/init.d/nagios )
Different Linux distros handle this differently, can you provide more information on what Linux distro you are running?
Did you install it via the package manager? It should have had an Init script for you. If you installed it via the tarball, you will likely have to create your own or get on from the package manager (rpm, apt, emerge…)
[quote=“groth”]Hi,
It looks like your config for Nagios is fine. The issues is you are missing the RC Init Script. ( /etc/rc.d/init.d/nagios )
Different Linux distros handle this differently, can you provide more information on what Linux distro you are running?
Did you install it via the package manager? It should have had an Init script for you. If you installed it via the tarball, you will likely have to create your own or get on from the package manager (rpm, apt, emerge…)
Hope that starts you in the correct direction.
GR[/quote]
Hi groth,
thanks for answer
Nagios installed on RedHat Linux with command line.
I find only one file with name nagios in /usr/local/nagios/bin/nagios but /usr/local/nagios/bin/nagios start returns
Website: nagios.org
Error: Cannot open main configuration file ‘/root/start’ for reading!
Nagios 3.2.0 starting… (PID=5732)
Local time is Tue Jan 26 09:42:22 CST 2010
Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=5732)
[/quote]
Is it right file, or I need to serach that file in different place?