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:

  1. Check the Nagios log file for messages relating to startup or status data errors.

  2. 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.



./nagios -v ../etc/nagios.cfg

Error: Could not find any contact 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.cfg', starting on line 97)

   Error processing object config files!




97define contactgroup{

98         contactgroup_name       admins

99         alias                   Nagios Administrators

100        members                 xx,yy,cookie,zz

101         }



./nagios -v ../etc/nagios.cfg

Total Warnings: 0

Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check


service nagios start    正常启动