Local Backups Not Replacing Oldest
-
matt.lilek
- Posts: 137
- Joined: Wed Aug 07, 2013 11:53 am
Re: Local Backups Not Replacing Oldest
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
Yes it would.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!
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.
-
matt.lilek
- Posts: 137
- Joined: Wed Aug 07, 2013 11:53 am
Re: Local Backups Not Replacing Oldest
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
Lets do the following so we can see some logging on that machine
https://support.nagios.com/kb/article/n ... l-578.html
https://support.nagios.com/kb/article/n ... l-578.html
-
matt.lilek
- Posts: 137
- Joined: Wed Aug 07, 2013 11:53 am
Re: Local Backups Not Replacing Oldest
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
Can you send
/usr/local/nagiosxi/var/components/scheduledbackups.log
If it doesn't exist, can you run
/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-
matt.lilek
- Posts: 137
- Joined: Wed Aug 07, 2013 11:53 am
Re: Local Backups Not Replacing Oldest
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!
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
Can you look in your
and see if a host is specified for the dbserver in this section
If it is blank, change to localhost
same thing in the nagiosql section below that
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"same thing in the nagiosql section below that
-
matt.lilek
- Posts: 137
- Joined: Wed Aug 07, 2013 11:53 am
Re: Local Backups Not Replacing Oldest
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
Hey Matt!
Should be in the /usr/local/nagiosxi/html/config.inc.php file.
Thanks!
Should be in the /usr/local/nagiosxi/html/config.inc.php file.
Thanks!