Error: Could not connect to MySQL database

Simon Lorenz - Fresca simon.lorenz at fresca.co.uk
Mon Mar 31 14:49:53 CEST 2003


Hello all,

I have just recompiled with --with-mysql-xdata and want to use MySQL to
store all status etc data. But after recomiling both plugins + nagios I get
the following mesages in the log file:

Mar 31 13:24:34 cuba nagios: Error: Could not connect to MySQL database ''
on host '' using username '' and password ''.  Status data will not be
saved! 
Mar 31 13:24:34 cuba nagios: Error: Could not connect to MySQL database ''
on host '' using username '' and password ''.  Retention data will not be
processed or saved!
Mar 31 13:24:34 cuba nagios: Error: Could not re-connect to database server
on host '' for status data.  I'll keep trying every 60 seconds...
Mar 31 13:24:34 cuba nagios: Error: Could not connect to MySQL database ''
on host '' using username '' and password '' for comment data!
Mar 31 13:24:34 cuba nagios: Error: Could not connect to MySQL database ''
on host '' using username '' and password '' for downtime data!

I have specifyed the connections details in all sections of the cgi.cfg and
am succeffuly able to connect with these details using check_msql directly.

Any ideas?

Using nagios=Nagios 1.0 plugins=1.3 MySQL=4.0.11-gamma-standard

Thanks Simon



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list