Edit settings.php
The /var/www/html/nagiosql/config/settings.php file needs to be updated, for safety reasons its
a good idea to make a backup first:
cd /var/www/html/nagiosql/config/
How we can solve this issue?
Br
Luis
How exactly does it fail? Can you elaborate on this? Are you missing the "/var/www/html/nagiosql/config/settings.php" file? It's been removed in the later versions of Nagios XI, so you can skip the steps on page 13, and proceed to the next page.I've followed the guide to offload the DB to an external DB but fails in the last step before restart the deamons (page 13)
Code: Select all
// MySQL database connection info
$CFG["db"] = array(
"server" => "x.x.x.x",
"port" => "3306",
"database" => "nagiosql",
"username" => "nagiosql",
"password" => "nagiosql"
);Code: Select all
echo 'STATUS;' | mysql -u nagios -p'nagios' -h <IP_ADDRESS_OF_MYSQL_OR_MARIADB_SERVER>
echo 'STATUS;' | mysql -u nagiosql -p'nagiosql' -h <IP_ADDRESS_OF_MYSQL_OR_MARIADB_SERVER>
echo 'STATUS;' | mysql -u nagiosxi -p'nagiosxi' -h <IP_ADDRESS_OF_MYSQL_OR_MARIADB _SERVER>Code: Select all
service ndo2db restart
service nagios restartCode: Select all
/usr/local/nagios/etc/ndo2db.cfg
/usr/local/nagiosxi/html/config.inc.php
/usr/local/nagiosxi/etc/components/ccm_config.inc.phpCode: Select all
"dbserver" => '127.0.0.1:6446',