Local Backups Not Replacing Oldest

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: Local Backups Not Replacing Oldest

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Local Backups Not Replacing Oldest

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: Local Backups Not Replacing Oldest

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Local Backups Not Replacing Oldest

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: Local Backups Not Replacing Oldest

Post by matt.lilek »

Hey Scott, this is already set to 3, is that what i want? Where do we go from here?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Local Backups Not Replacing Oldest

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: Local Backups Not Replacing Oldest

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Local Backups Not Replacing Oldest

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: Local Backups Not Replacing Oldest

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Local Backups Not Replacing Oldest

Post by ssax »

Hey Matt!

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

Thanks!
Locked