Backups not listed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Backups not listed

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Backups not listed

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Backups not listed

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Backups not listed

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Backups not listed

Post 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)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Backups not listed

Post 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
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Backups not listed

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Backups not listed

Post 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
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Backups not listed

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Backups not listed

Post 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
You do not have the required permissions to view the files attached to this post.
Locked