I'm a beginner with Nagios.
I follow different manual to install Nagios on Debian.
I've create a Mysql database + Nagios User + config etc/nagios/resource.cfg and /etc/nagios/cgi.cfg to put the database name + User and password.
I've put the check_nagios_db in /etc/nagios/
When I launch **./usr/sbin/nagios -v /etc/nagios/nagios.cfg **
I have this message :
*(Things look okay - No serious problems were detected during the pre-flight check) *
When I do this
I have this error message :
*Starting nagios: DBI connect('database=;host=;port=','',...) failed: Access denied for user 'root'@'localhost' (using password: NO) at /etc/nagios/check_nagios_db line 55
And I can see this in snort log :
 Error: Could not connect to MySQL database '' on host '' using username '' and password 'XXXXXX'. Retention data will not be processed or save$
 Error: Could not connect to MySQL database '' on host '' using username '' and password 'XXXXXX' for comment data!
 Error: Could not connect to MySQL database '' on host '' using username '' and password 'XXXXXX' for downtime data!
The Web interface work but I can't do nothing, and i have this message:
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 nagios.org. *
I've tried to reinstall but I have the same probleme... and I cant found the solution in any forum or documentation...
Somebody can help me please ?
Thx in advance...