Page 1 of 1

Nagiosxi - Scheduled Backups

Posted: Tue Dec 01, 2015 10:12 am
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).

Re: Nagiosxi - Scheduled Backups

Posted: Tue Dec 01, 2015 12:17 pm
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.

Re: Nagiosxi - Scheduled Backups

Posted: Wed Dec 02, 2015 9:09 am
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

Re: Nagiosxi - Scheduled Backups

Posted: Wed Dec 02, 2015 4:38 pm
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?

Re: Nagiosxi - Scheduled Backups

Posted: Thu Dec 03, 2015 7:22 am
by jacek
It was the: nagiosxi-2014r2.7-64 VMware image, thus I'm up to date all the time.

Re: Nagiosxi - Scheduled Backups

Posted: Thu Dec 03, 2015 10:42 am
by rkennedy
Do you an exact link to where you downloaded it from?

Re: Nagiosxi - Scheduled Backups

Posted: Fri Dec 04, 2015 2:38 am
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

Re: Nagiosxi - Scheduled Backups

Posted: Fri Dec 04, 2015 10:02 am
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!