Scheduled Backups not running

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: Scheduled Backups not running

Post by krobertson71 »

Yes I agree. Point I was trying to make is that the message is a little misleading when testing permissions.

We were trying to find a way for nagios to be able run backups and have netdev as the group which contains a service account used for our enterprise backup system.

Linux guys said they can work around it.

I would suggest changing the wording on the test, or add some info to the page specifying both apache and nagios need permissions to create backups as the message deliverd states to make sure that the Nagios user OR the nagios group has permissions to write.

Just having Nagios be the owner does not work.

Thanks for the clarification.
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: Scheduled Backups not running

Post by krobertson71 »

Changed to nagios:nagcmd. Scheduled Backups are still not writing anything to the /backups/ directory.
Selection_110.png
Here Is a screenshot of the Scheduled Backups screen
Selection_111.png
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scheduled Backups not running

Post by scottwilkerson »

krobertson71 wrote:Changed to nagios:nagcmd. Scheduled Backups are still not writing anything to the /backups/ directory.
Are you sure? It says right on the page "last backup size was 141.43MB"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: Scheduled Backups not running

Post by krobertson71 »

Yeah....... I am sure
Selection_116.png
That 141mb you see is when I did the Local Backup "Create Now' which put it in /store/backup

The scheduled backups are not working.

Can anyone help with this?

And before anyone asks... Yes the Nagios user can write to the directory.
Selection_117.png
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Scheduled Backups not running

Post by tgriep »

In XI, go to Admin > System Backups > Local Backup Archives
Do you see the backups there?
Can you provide a screen shot of that?
Be sure to check out our Knowledgebase for helpful articles and solutions!
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: Scheduled Backups not running

Post by krobertson71 »

Here it is. Only shows the autoupgrade backup from the last upgrade.
Selection_118.png
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Scheduled Backups not running

Post by tgriep »

Could you run these commands and post back the results?

Code: Select all

df -h
df -i
ll /backups
Be sure to check out our Knowledgebase for helpful articles and solutions!
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: Scheduled Backups not running

Post by krobertson71 »

Here you go:

Code: Select all

[kar54@nagiasp01 ~]$ df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/vg-root 1008M  514M  444M  54% /
tmpfs                7.8G     0  7.8G   0% /dev/shm
/dev/sda1             97M   50M   43M  54% /boot
/dev/mapper/vg-home 1008M   34M  924M   4% /home
/dev/mapper/vg-opt   2.0G  212M  1.7G  12% /opt
/dev/mapper/vg-tmp  1008M  659M  299M  69% /tmp
/dev/mapper/vg-usr    60G  2.6G   54G   5% /usr
/dev/mapper/vg-var    79G  1.2G   74G   2% /var
/dev/mapper/vgbu-bu   79G  184M   75G   1% /backups
[kar54@nagiasp01 ~]$ df -i
Filesystem           Inodes IUsed   IFree IUse% Mounted on
/dev/mapper/vg-root   65536  8778   56758   14% /
tmpfs               2042014     1 2042013    1% /dev/shm
/dev/sda1             25688    44   25644    1% /boot
/dev/mapper/vg-home   65536    97   65439    1% /home
/dev/mapper/vg-opt   131072   962  130110    1% /opt
/dev/mapper/vg-tmp    65536 11306   54230   18% /tmp
/dev/mapper/vg-usr  3932160 77546 3854614    2% /usr
/dev/mapper/vg-var  5242880  6245 5236635    1% /var
/dev/mapper/vgbu-bu 5242880    13 5242867    1% /backups
[kar54@nagiasp01 ~]$ ll /backups
total 16
drwx------ 2 root   root  16384 Jan 22 11:20 lost+found
-rw-r--r-- 1 nagios users     0 Jan 26 18:21 test1
-rw-r--r-- 1 nagios users     0 Jan 26 18:21 test2
[kar54@nagiasp01 ~]$ 
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Scheduled Backups not running

Post by tgriep »

For a test, could you change the permissions on the backups folder and schedule a backup to happen just after you do that to see if it works?

Run these commands.

Code: Select all

chown nagios.nagios /backups
chmod ug+wrx /backups
After this, try the backup.
Be sure to check out our Knowledgebase for helpful articles and solutions!
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: Scheduled Backups not running

Post by krobertson71 »

No Go... no errros, time passes and it just reschedules for the next day.
Selection_119.png
Selection_120.png
Still only showing the backup that was done during the last upgrade.
You do not have the required permissions to view the files attached to this post.
Locked