Question on backup script moditication
Posted: Thu Nov 10, 2016 12:08 pm
I am migrating Nagios from using localhost to external MySQL db and following this doc https://assets.nagios.com/downloads/nag ... Server.pdf
I have question about this step:
"e) Modify the backup script
Edit the file “/root/scripts/automysqlbackup” script on your Nagios XI server and change line #34 from this:
DBHOST=localhost
to this (where you type in the actual IP address of the offloaded mysql server):
DBHOST=<IP_OF_MYSQL_OR MARIADB_SERVER>"
Should I also add the port number at the end like this since I do not use a standard port: DBHOST=<IP>:3382
In the common section the only step where it should be done is not this one
"Issue – How do we use a port other than the default 3306?
In all of the steps you follow it should be clear when you need to change the port from the default. The only section where it is not clear
is in the config.inc.php file, you need to define it as:
“dbserver” => '<IP_OF_MYSQL_OR_MARIADB_SERVER>:<PORT>',
Example: “dbserver” => '192.168.5.88:55555',"
I have question about this step:
"e) Modify the backup script
Edit the file “/root/scripts/automysqlbackup” script on your Nagios XI server and change line #34 from this:
DBHOST=localhost
to this (where you type in the actual IP address of the offloaded mysql server):
DBHOST=<IP_OF_MYSQL_OR MARIADB_SERVER>"
Should I also add the port number at the end like this since I do not use a standard port: DBHOST=<IP>:3382
In the common section the only step where it should be done is not this one
"Issue – How do we use a port other than the default 3306?
In all of the steps you follow it should be clear when you need to change the port from the default. The only section where it is not clear
is in the config.inc.php file, you need to define it as:
“dbserver” => '<IP_OF_MYSQL_OR_MARIADB_SERVER>:<PORT>',
Example: “dbserver” => '192.168.5.88:55555',"