Page 2 of 3

Re: Backups not listed

Posted: Fri Apr 10, 2015 12:15 pm
by BanditBBS

Code: Select all

[root@iss-chi-nag05 ~]# getenforce
Disabled
[root@iss-chi-nag05 ~]# cat /etc/group|grep nagios
nagios:x:500:nagios,apache
nagcmd:x:501:nagios,apache

Re: Backups not listed

Posted: Fri Apr 10, 2015 12:33 pm
by scottwilkerson
Weird, one more permission

Code: Select all

ls -ld /store/backups/nagiosxi/
What's even more strange is that you aren't even seeing errors in the logs...

These are the same servers right?

Re: Backups not listed

Posted: Fri Apr 10, 2015 12:45 pm
by BanditBBS

Code: Select all

[root@iss-chi-nag05 ~]# ls -ld /store/backups/nagiosxi/
drwxrw-rw-. 2 nagios nagios 4096 Apr 10 01:12 /store/backups/nagiosxi/
Yes, this conversation has all been on the same server.

Re: Backups not listed

Posted: Fri Apr 10, 2015 1:23 pm
by jomann
We are using a php function to read the directory - what version of Linux is this running on and what version of PHP is it running?

Re: Backups not listed

Posted: Fri Apr 10, 2015 1:26 pm
by BanditBBS
jomann wrote:We are using a php function to read the directory - what version of Linux is this running on and what version of PHP is it running?

Code: Select all

[root@iss-chi-nag05 ~]# php -v
PHP 5.3.3 (cli) (built: Oct 23 2014 06:58:46)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[root@iss-chi-nag05 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)

Re: Backups not listed

Posted: Fri Apr 10, 2015 1:34 pm
by cmerchant
Banditt, could you tail the apache error log while accessing the scheduled backup web page?

Code: Select all

tail -f /var/log/httpd/error_log /var/log/httpd/access_log

Re: Backups not listed

Posted: Fri Apr 10, 2015 1:41 pm
by BanditBBS
No errors in the error log. I assumed you meant "Local backup archive" link, not the "Schedule backups" page, but I did both. There is tons of crap flying by for the access log due to many users in the system, is there something you'd like to see from it that I can search on? Nothing I can see seems wrong.

Re: Backups not listed

Posted: Fri Apr 10, 2015 1:58 pm
by cmerchant
Ok, I should have guessed that would be search for a needle... Is there a chance you could have any database errors? Not sure this thread is related, but take a look at http://support.nagios.com/forum/viewtop ... =6&t=30984

Re: Backups not listed

Posted: Fri Apr 10, 2015 2:32 pm
by BanditBBS
As stated in an earlier comment in this thread:
BanditBBS wrote:It didn't complete due to a crashed table. That has been resolved and I deleted the folder that was never finished from that last night run.
But as jomann said, just using a php function to read the directory, so should have nothing to do with DB to list whats in there.

Re: Backups not listed

Posted: Fri Apr 10, 2015 3:02 pm
by cmerchant
Sorry Banditt, I confirmed the php function does behave that way. I created several dummy backups using this: (as the nagios user)

Code: Select all

touch /store/backups/nagiosxi/1427999999.tar.gz
touch /store/backups/nagiosxi/1427999999.tar.gz
and my /store/backups/nagiosxi/ directory looked like this:

Code: Select all

[root@nagiosd1 nagiosxi]# ls -l
total 387136
-rw-r--r-- 1 nagios nagios 42384161 Oct 24 12:14 1414170882.tar.gz
-rw-r--r-- 1 nagios nagios 88521339 Mar 31 13:58 1427828211.tar.gz
-rw-r--r-- 1 nagios nagios 88520281 Mar 31 13:59 1427828264.tar.gz
-rw-r--r-- 1 nagios nagios 88520230 Mar 31 14:01 1427828413.tar.gz
-rw-r--r-- 1 nagios nagios 88469244 Apr  2 12:28 1427995657.tar.gz
-rw-r--r-- 1 nagios nagios        0 Apr 10 14:50 1427999999.tar.gz
-rw-r--r-- 1 nagios nagios        0 Apr 10 14:50 1428000000.tar.gz
and my local backup web page looked like this:
localBackupArchives.png