Thanks for reaching out,
Is there anything interesting in the database logs? I'm thinking there may be a crashed table or something similar.
To just turn off notices:
Edit the /etc/php.ini file and find the following option and change it from.
Code: Select all
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
to
Code: Select all
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
Save the change and restart the following as root on the nagios server.
Otherwise, the only other thing I can think of is that the databases are not being initialized before the escape_sql_param function is being called.
If you want to provide more information on the subject, In the "/usr/local/nagiosxi/html/includes/db.inc.php" file, on line 399, you could change from
Code: Select all
// DB is not connected... so trigger error
// we don't know of an open conenction
trigger_error("DB is not connected", E_USER_NOTICE);
to
Code: Select all
// DB is not connected... so trigger error
// we don't know of an open conenction
ob_start();
debug_print_backtrace();
$debug_data = ob_get_clean();
trigger_error("DB $dbh is not connected\n" . $debug_data, E_USER_NOTICE);
Then you can attach the new error messages here so I can better see what's going on. This will add a back trace log to the error message so that we can see where the bad escape function is being called.