whoops!
Error:could not read host and service status information!
The most common cause of the "This error message" (especially for new users), was the fact that Nagios was not actually running. If Nagios is indeed isn't running, this is a normal error message. It simply indicates the CGIs could not obtain the current status of the hosts and services that is being monitored. If you've just installed things, make sure your read the documentation on starting Nagios.
Some Other things your 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 your 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 is found at http://www.nagios.org.
As above error.
Perform a check command
This command is in the Nagios installation directory/bin directory
./nagios-v. /etc/nagios.cfg
Error:could not "find any" matching ' cookie ' (config file '/usr/local/nagios/etc/objects/contacts.cfg ', starting on Line 97)
Error:could not expand member contacts specified in Contactgroup (config file '/usr/local/nagios/etc/objects/contacts.cf G ', starting on line 97)
Error Processing Object Config files!
Error displaying Contact profile
Open Contacts.cfg
Check Line 97th:
97define contactgroup{
98 contactgroup_name Admins
Alias Nagios Administrators
Members of the XX,YY,COOKIE,ZZ
101}
There is a member named Cookie in the contact group, and there is no cookie in the contact defined above, so delete the cookie member in the group
Run the check command again
./nagios-v. /etc/nagios.cfg
Total warnings:0
Total errors:0
Things look okay-no serious problems were detected during the pre-flight check
No error message has been sent
Service Nagios start starts normally
Open the Nagios site to monitor the normal
Nagios Contact Mailbox error causes Nagios to fail to start