Nagiosxi - Scheduled Backups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Nagiosxi - Scheduled Backups

Post by jacek »

Hi All,

When I give the Scheduled Backups (local) a location which nagios user has access to and klick the Test permissions button I get the following communicate:
The directory specified does not exist.
Here is the config:
Capture.PNG
Below a proof of the directory and permissions (changing the nagios group to the owner of the backuptest also gives no result):

Code: Select all

[nagios@localhost backuptest]$ pwd
/home/nagios/backuptest
[nagios@localhost backuptest]$ ls -la ../
total 36
drwx------  5 nagios users 4096 Dec  1 15:56 .
drwxr-xr-x. 3 root   root  4096 Apr 23  2015 ..
drwxr-xr-x  2 nagios users 4096 Dec  1 15:56 backuptest
-rw-r--r--  1 nagios users   18 Oct 16  2014 .bash_logout
-rw-r--r--  1 nagios users  176 Oct 16  2014 .bash_profile
-rw-r--r--  1 nagios users  124 Oct 16  2014 .bashrc
-rw-r--r--  1 nagios users  204 Dec  1 16:00 cookie.txt
drwxr-xr-x  2 nagios users 4096 Nov 12  2010 .gnome2
drwxr-----  3 nagios users 4096 Oct  1 12:54 .pki
It seems that the same is happening with FTP, as soon as I give the right permissions and the folder (admin on a NAS device, so no permission problem can occur) it also says that the directory does not exist (but I can connect to it with any ftp client).
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagiosxi - Scheduled Backups

Post by rkennedy »

I was able to replicate this issue, and the underlying problem is the permissions on the folders below backuptest. You can see this below -

In your ls -al look at this part -

Code: Select all

drwxr-xr-x. 3 root   root  4096 Apr 23  2015 ..
Can you chown nagios:nagios /home/nagios so that the permissions are fixed?

Once you run the chown, you may need to modify the RW attributes as well.

Let us know if this works.
Former Nagios Employee
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagiosxi - Scheduled Backups

Post by jacek »

It worked,
I've chown'ed the catalogue and then needed to g+rwx and o+rx.
Is this like it supposed to be?
I've deployed the NagiosXI from the VM image, so this is weird.

Code: Select all

[root@localhost nagios]# ls -la
total 40
drwxrwxr-x  5 nagios nagios 4096 Dec  2 12:42 .
drwxr-xr-x. 3 root   root   4096 Apr 23  2015 ..
drwxrwxr-x  2 nagios nagios 4096 Dec  2 12:42 backup
-rw-------  1 nagios users   347 Dec  2 13:04 .bash_history
-rw-r--r--  1 nagios users    18 Oct 16  2014 .bash_logout
-rw-r--r--  1 nagios users   176 Oct 16  2014 .bash_profile
-rw-r--r--  1 nagios users   124 Oct 16  2014 .bashrc
-rw-r--r--  1 nagios users   204 Dec  2 15:04 cookie.txt
drwxr-xr-x  2 nagios users  4096 Nov 12  2010 .gnome2
drwxr-----  3 nagios users  4096 Oct  1 12:54 .pki
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagiosxi - Scheduled Backups

Post by lmiltchev »

I've deployed the NagiosXI from the VM image, so this is weird.
Yes, it is strange. On my test box (also deployed from a VM image), "/home/nagios" is owned by nagios. I am not sure why yours was owned by root.
Can you provide us with a download URL to the VM image that you are using?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagiosxi - Scheduled Backups

Post by jacek »

It was the: nagiosxi-2014r2.7-64 VMware image, thus I'm up to date all the time.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagiosxi - Scheduled Backups

Post by rkennedy »

Do you an exact link to where you downloaded it from?
Former Nagios Employee
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagiosxi - Scheduled Backups

Post by jacek »

When I installed NagiosXI it was the main VMWare 64-bit download link I got it from: https://www.nagios.com/downloads/nagios-xi/
Download.PNG
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagiosxi - Scheduled Backups

Post by rkennedy »

Thanks for providing the download link. I will now close this thread out as the main issue is resolved.

Feel free to open a new thread if you ever need assistance!
Former Nagios Employee
Locked