Amigo,
Eu segui seu tutorial para instalar o nagios,porém na hora que entro nela pelo navegador e clico em alguma coisa aparece a seuinte mensagem:
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've compiled the main program and the CGIs to use the same status data storage options (i.e. text file or database). If the main program is storing status data in a text file and the CGIs are trying to read status data from a database, you'll have problems.
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.
Já fiz o seguinte teste:
mysql -u nagios-mysql -p
funcionou perfeitamente quando digito a senha.
no /var/log/messages mostra o seguinte:
Oct 27 16:35:53 servlinux nagios: Caught SIGTERM, shutting down...
Oct 27 16:35:53 servlinux nagios: Error: Could not connect to MySQL database '' on host 'localhost' using username '' and password 'XXXXXX'. Retention data will not be processed or saved!
Oct 27 16:35:53 servlinux nagios: Nagios 1.4 starting... (PID=28618)
Oct 27 16:35:53 servlinux nagios: Finished daemonizing... (New PID=28619)
Oct 27 16:35:53 servlinux nagios: Error: Could not connect to MySQL database '' on host 'localhost' using username '' and password 'XXXXXX'. Status data will not be saved!
Oct 27 16:35:53 servlinux nagios: Error: Could not connect to MySQL database '' on host 'localhost' using username '' and password 'XXXXXX'. Retention data will not be processed or saved!
Oct 27 16:35:53 servlinux nagios: Error: Could not re-connect to database server on host 'localhost' for status data. I'll keep trying every 60 seconds...
Oct 27 16:35:53 servlinux nagios: Error: Could not connect to MySQL database '' on host 'localhost' using username '' and password 'XXXXXX' for comment data!
Oct 27 16:35:53 servlinux nagios: Error: Could not connect to MySQL database '' on host 'localhost' using username '' and password 'XXXXXX' for downtime data
Se puder me ajudar.
Márcio Carvalho.
skype: mcsba78
msn: mcsba@hotmail.com