Migrating postgres to MySQL issue!
Posted: Mon Nov 11, 2019 11:06 am
Ok, I am following these steps: https://support.nagios.com/kb/article.php?id=560
I am to the part of testing the connection. NagiosXI can't seem to connect to the new mysql database. My DB is offloaded so I did modify the instructions slightly for this case but am having issues
As you can see, I can connect from the NagiosXI server:
But, when I change the information in config.inc.php NagiosXI can't connect:
I am to the part of testing the connection. NagiosXI can't seem to connect to the new mysql database. My DB is offloaded so I did modify the instructions slightly for this case but am having issues
As you can see, I can connect from the NagiosXI server:
Code: Select all
[nagios@iss-chi-nag05 html]$ mysql -h xxx.xxx.xxx.xxx -unagiosxi -pn@gweb
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2945
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
Code: Select all
"nagiosxi" => array(
"dbtype" => 'mysql',
"dbserver" => 'xxx.xxx.xxx.xxx',
"user" => 'nagiosxi',
"pwd" => 'n@gweb',
"db" => 'nagiosxi',
"dbmaint" => array( // variables affecting maintenance of db
"max_auditlog_age" => 30, // max time (in DAYS) to keep audit log entries
"max_commands_age" => 480, // max time (minutes) to keep commands
"max_events_age" => 480, // max time (minutes) to keep events
"optimize_interval" => 60, // time (in minutes) between db optimization runs
"repair_interval" => 0, // time (in minutes) between db repair runs
),
),
"ndoutils" => array(
"dbtype" => 'mysql',
"dbserver" => 'xxx.xxx.xxx.xxx',
"user" => 'nagios',
"pwd" => 'nagios',
"db" => 'nagios',