Error with mysql support


#1

Hi,

I installed Nagios with mysql support, when I try to launch ‘check_nagios_db.pl’ with perl, I get this error:

“Use of uninitialized value in subtraction (-) at /usr/local/nagios/libexec/check_nagios_db.pl line 74.
Use of uninitialized value in concatenaction (.) or string at /usr/local/nagios/libexec/check_nagios_db.pl line 79.”

What can I do?
Thanks,
Mirko.

Edited ]


#2

Check your cgi.cfg file and make sure you have the correct database info in there. To test, connect to the database with those credentials, or just double check all the permission’s, etc to the tables. I use phpmyadmin to admin a mysql db.