Page 1 of 1

Scheduled Backups not working after Upgrade

Posted: Fri May 08, 2020 4:36 am
by mccrakem
Hi

I have just upgraded some of my systems from 5.2.7 to 5.6.14

When the schedule gets to the time where is has to start a local Backup I see this message in the following file
tail -f /usr/local/nagiosxi/var/cmdsubsys.log


PROCESSED 0 COMMANDS
.PROCESSING COMMAND ID 7706...
PROCESS COMMAND: CMD=1117, DATA=a:2:{i:0;s:19:"nagiosxi.1588929722";i:1;s:24:"/store/backups/nagiosxi/";}
CMDLINE=sudo /usr/local/nagiosxi/scripts/backup_xi.sh -n nagiosxi.1588929722 -d /store/backups/nagiosxi
sudo: no tty present and no askpass program specified
OUTPUT=
RETURNCODE=1
..........................................................
PROCESSED 1 COMMANDS
............................................................


The servers that have been upgraded have the same sudoers file as the systems that have not been upgraded
So is there an extra line that needs to be added

Thanks

Re: Scheduled Backups not working after Upgrade

Posted: Fri May 08, 2020 5:45 am
by mccrakem
Hi

Sorry about this but I go this sorted.
I have found the file that I need to update

Once I updated that with the correct command the backups worked

Thanks

Re: Scheduled Backups not working after Upgrade

Posted: Fri May 08, 2020 7:08 am
by scottwilkerson
mccrakem wrote:Hi

Sorry about this but I go this sorted.
I have found the file that I need to update

Once I updated that with the correct command the backups worked

Thanks
No worries, glad to hear it is sorted!

Locking thread