Page 2 of 3

Re: Local Backups Not Replacing Oldest

Posted: Mon Aug 20, 2018 9:04 am
by matt.lilek
Hey, Ya I can see it again now but i made no changes to permissions just to be clear. So would that have also kept the backup from running on all three instances as well? The GUI said the directory was there and writable. Please advise. Thank you!

Re: Local Backups Not Replacing Oldest

Posted: Mon Aug 20, 2018 9:39 am
by scottwilkerson
matt.lilek wrote:Hey, Ya I can see it again now but i made no changes to permissions just to be clear. So would that have also kept the backup from running on all three instances as well? The GUI said the directory was there and writable. Please advise. Thank you!
Yes it would.

If you moved/renamed the old one and then coped the new one it would use the default umask and set the owner to your logged in user.

Re: Local Backups Not Replacing Oldest

Posted: Tue Aug 21, 2018 8:25 am
by matt.lilek
Hello Scott, The instance ATT5-NAG1 is still not backing up (dont think there has been a backup in over 4 months) Ideas? Let me know. Thanks!

Re: Local Backups Not Replacing Oldest

Posted: Tue Aug 21, 2018 9:41 am
by scottwilkerson
Lets do the following so we can see some logging on that machine

https://support.nagios.com/kb/article/n ... l-578.html

Re: Local Backups Not Replacing Oldest

Posted: Tue Aug 21, 2018 11:33 am
by matt.lilek
Hey Scott, this is already set to 3, is that what i want? Where do we go from here?

Re: Local Backups Not Replacing Oldest

Posted: Tue Aug 21, 2018 1:09 pm
by scottwilkerson
Can you send
/usr/local/nagiosxi/var/components/scheduledbackups.log

If it doesn't exist, can you run

Code: Select all

touch /usr/local/nagiosxi/var/components/scheduledbackups.log
chown nagios.nagios /usr/local/nagiosxi/var/components/scheduledbackups.log

Re: Local Backups Not Replacing Oldest

Posted: Tue Aug 21, 2018 1:39 pm
by matt.lilek
Looks like a password issue
01-21-2017 03:18:03 DEBUG: Running scheduled local backup ...
01-21-2017 03:18:03 INFO: Creating a local backup: nagiosxi.1484968683
01-21-2017 03:18:03 DEBUG: Sending create local backup command to CmdSubsystem
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!
Error backing up MySQL database 'nagios' - check the password in this script!

Re: Local Backups Not Replacing Oldest

Posted: Tue Aug 21, 2018 2:15 pm
by scottwilkerson
Can you look in your

and see if a host is specified for the dbserver in this section

Code: Select all

"ndoutils" => array(
        "dbtype" => 'mysql',
        "dbserver" => 'localhost',
        "user" => 'ndoutils',
        "pwd" => 'n@gweb',
        "db" => 'nagios',
        "dbmaint"
If it is blank, change to localhost

same thing in the nagiosql section below that

Re: Local Backups Not Replacing Oldest

Posted: Tue Aug 21, 2018 4:15 pm
by matt.lilek
Think you forgot to paste when you said look in your....... and then followed by nothing. Please let me know where. Thanks

Re: Local Backups Not Replacing Oldest

Posted: Tue Aug 21, 2018 4:28 pm
by ssax
Hey Matt!

Should be in the /usr/local/nagiosxi/html/config.inc.php file.

Thanks!