This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
WillemDH
Posts: 2320 Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:
Post
by WillemDH » Tue Mar 31, 2015 1:57 am
Hello,
Somewhere last week ftp backup stopped working suddenly. I cannot immediately find a reason. When I test connection and test upload in the gui of the backup component, everything seem ok. The test file upload is working as expected, so the issue is not on the ftp server. It seems the last backup is only 127 MB, while it should be 2 GB.
Any idea what could be the reason? I started a backup in the 'near future' and I can see a gzip process working. I do not see any ftp connection after the backup is finished though, while I do see an ftp connection when I click Test Upload:
Code: Select all
(000052)31/03/2015 9:17:55 - (not logged in) (10.10.10.12)> Connected, sending welcome message...
(000052)31/03/2015 9:17:55 - (not logged in) (10.10.10.12)> 220-FileZilla Server version 0.9.44 beta
(000052)31/03/2015 9:17:55 - (not logged in) (10.10.10.12)> 220-written by Tim Kosse ([email protected] )
(000052)31/03/2015 9:17:55 - (not logged in) (10.10.10.12)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000052)31/03/2015 9:17:55 - (not logged in) (10.10.10.12)> USER ftpaccount
(000052)31/03/2015 9:17:55 - (not logged in) (10.10.10.12)> 331 Password required for ftpaccount
(000052)31/03/2015 9:17:55 - (not logged in) (10.10.10.12)> PASS ********
(000052)31/03/2015 9:17:55 - ftpaccount (10.10.10.12)> 230 Logged on
(000052)31/03/2015 9:17:55 - ftpaccount (10.10.10.12)> QUIT
(000052)31/03/2015 9:17:55 - ftpaccount (10.10.10.12)> 221 Goodbye
(000052)31/03/2015 9:17:55 - ftpaccount (10.10.10.12)> disconnected.
(000053)31/03/2015 9:17:58 - (not logged in) (10.10.10.12)> Connected, sending welcome message...
(000053)31/03/2015 9:17:58 - (not logged in) (10.10.10.12)> 220-FileZilla Server version 0.9.44 beta
(000053)31/03/2015 9:17:58 - (not logged in) (10.10.10.12)> 220-written by Tim Kosse ([email protected] )
(000053)31/03/2015 9:17:58 - (not logged in) (10.10.10.12)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000053)31/03/2015 9:17:58 - (not logged in) (10.10.10.12)> USER ftpaccount
(000053)31/03/2015 9:17:58 - (not logged in) (10.10.10.12)> 331 Password required for ftpaccount
(000053)31/03/2015 9:17:58 - (not logged in) (10.10.10.12)> PASS ********
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> 230 Logged on
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> PASV
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> 227 Entering Passive Mode (10,12,17,138,240,170)
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> TYPE I
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> 200 Type set to I
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> STOR /ftp_test_upload.txt
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> 150 Opening data channel for file upload to server of "/ftp_test_upload.txt"
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> 226 Successfully transferred "/ftp_test_upload.txt"
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> QUIT
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> 221 Goodbye
(000053)31/03/2015 9:17:58 - ftpaccount (10.10.10.12)> disconnected.
Seem all the backups stay in /store/backups/nagiosxi/
Code: Select all
ls -la /store/backups/nagiosxi/
total 10107684
drwxr-xr-x 2 nagios nagios 4096 Mar 31 09:11 .
drwxr-xr-x. 5 root root 4096 May 29 2013 ..
-rw-r--r-- 1 nagios nagios 2070914436 Mar 28 01:03 nagiosxi.1427497801.tar.gz
-rw-r--r-- 1 nagios nagios 2069752458 Mar 29 00:51 nagiosxi.1427584201.tar.gz
-rw-r--r-- 1 nagios nagios 2067181279 Mar 30 00:41 nagiosxi.1427667001.tar.gz
-rw-r--r-- 1 nagios nagios 2070178891 Mar 31 00:49 nagiosxi.1427753401.tar.gz
-rw-r--r-- 1 nagios nagios 2072205694 Mar 31 09:11 nagiosxi.1427783702.tar.gz
Grtz
Willem
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117 Joined: Mon Sep 23, 2013 8:40 am
Post
by tmcdonald » Tue Mar 31, 2015 10:39 am
When you unzip the 127MB file on the remote server, how far into the backup does it appear to get? I recall one issue in the past where it would hang on the MRTG config files and the .tar.gz was corrupted and could not be opened easily.
Former Nagios employee
WillemDH
Posts: 2320 Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:
Post
by WillemDH » Tue Mar 31, 2015 11:48 am
Trevor,
The 127 MB archive seem indeed corrupt. See screenshot. So what can I do to solve this? It seem like the backups are still running locally, but no ftp connection is made...
Grtz
Willem
You do not have the required permissions to view the files attached to this post.
jdalrymple
Skynet Drone
Posts: 2620 Joined: Wed Feb 11, 2015 1:56 pm
Post
by jdalrymple » Tue Mar 31, 2015 12:53 pm
Is it possible the actual backup process is crashing out? what do you get if you run the backup_xi.sh script from the command line?
Code: Select all
/usr/local/nagiosxi/scripts/backup_xi.sh
WillemDH
Posts: 2320 Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:
Post
by WillemDH » Wed Apr 01, 2015 2:34 am
As said, the backup seems to be working locally, but the ftp part is not. On the FTP server I don't see any connection attempt made..
Code: Select all
/usr/local/nagiosxi/scripts/backup_xi.sh
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up PostgresQL databases...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/1427869706.tar.gz
Code: Select all
ls -la /store/backups/nagiosxi
total 12160700
drwxr-xr-x 2 nagios nagios 4096 Apr 1 09:04 .
drwxr-xr-x. 5 root root 4096 May 29 2013 ..
-rw-r--r-- 1 nagios nagios 2086538671 Apr 1 08:59 1427869706.tar.gz
-rw-r--r-- 1 nagios nagios 2069752458 Mar 29 00:51 nagiosxi.1427584201.tar.gz
-rw-r--r-- 1 nagios nagios 2067181279 Mar 30 00:41 nagiosxi.1427667001.tar.gz
-rw-r--r-- 1 nagios nagios 2070178891 Mar 31 00:49 nagiosxi.1427753401.tar.gz
-rw-r--r-- 1 nagios nagios 2072205694 Mar 31 09:11 nagiosxi.1427783702.tar.gz
-rw-r--r-- 1 nagios nagios 2086661377 Apr 1 09:04 nagiosxi.1427870101.tar.gz
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Wed Apr 01, 2015 10:31 am
Are there any clues in the log?
Code: Select all
tail /usr/local/nagiosxi/var/components/scheduledbackups.log
Start a running tail on the "cmdsubsys.log":
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
then from the Nagios XI web UI, go to Admin->Scheduled Backups->FTP, schedule a backup to start in a few minutes and click on "Update Settings". Watch the tail on the "cmdsubsys.log" for errors. Let us know what you find.
Be sure to check out our
Knowledgebase for helpful articles and solutions!
WillemDH
Posts: 2320 Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:
Post
by WillemDH » Thu Apr 02, 2015 2:05 am
Ludmill,
Code: Select all
tail /usr/local/nagiosxi/var/components/scheduledbackups.log
04-02-2015 08:35:01 DEBUG: Running scheduled FTP backup ...
04-02-2015 08:35:01 DEBUG: Sending create local backup command to CmdSubsystem
04-02-2015 08:59:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
.............................tar: /usr/local/nagios/var/ndo.sock: socket ignored
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.........................................................tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
PROCESSED 0 COMMANDS
56501
CMDLINE=rm -rf /store/backups/nagiosxi/nagiosxi.1427956501.tar.gz
OUTPUT=
RETURNCODE=0
........................................tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
tar: /usr/local/nagios/libexec/naf_initiate_ms_server_audit.sh.save: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
Backing up Nagios XI...
tar: Removing leading `/' from member names
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
...............................Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up MySQL databases...
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
........Backing up PostgresQL databases...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/nagiosxi.1427956501.tar.gz
OUTPUT=Backup stored in /store/backups/nagiosxi/nagiosxi.1427956501.tar.gz
RETURNCODE=0
PROCESSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
...........................
Could it be that the ftp command which seems to start at 8:59 is running to early? As at that time the backup was still compressing.... Could it be that the timeout is actually in the code that starts the ftp backup? As the local backup is not yet completed, the ftp command can't find the local file to transfer. Please advise how to continue. The backup which started at 8:35 was finished at 9:05. So the ftp command should at least start 6 minutes later, probabaly even later, as my backup size will only keep growing for about 3 years. Where could I edit the time the backup script start the ftp transfer?
Grtz
Willem
Grtz
tgriep
Madmin
Posts: 9190 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Thu Apr 02, 2015 10:59 am
Can you check the permissions if this file that generated an error?
tar: /usr/local/nagios/libexec/naf_initiate_ms_server_audit.sh.save: Cannot open: Permission denied
Run this and post the output back.
Code: Select all
ll /usr/local/nagios/libexec
df -h
To change the schedule backup time, Click Admin > Scheduled Backups under the Systems Backups menu on the left hand side. Change the time and update the settings.
Be sure to check out our
Knowledgebase for helpful articles and solutions!
WillemDH
Posts: 2320 Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:
Post
by WillemDH » Thu Apr 02, 2015 2:51 pm
Tom,
I know how to schedule a backup..... My question was how to change the time the ftp upload starts after the backup is started....
Code: Select all
ll /usr/local/nagios/libexec
total 11984
-rw-r--r-- 1 root root 7554 Nov 14 2013 check_ad.vbs
-rwxr-xr-x 1 root root 12091 Apr 7 2014 check_akcp_sensorprobe.pl
-rwxr-xr-x 1 apache apache 387 Jun 17 2013 check_alfresco
-rwxr-xr-x 1 apache apache 9189 Jun 17 2013 check_alfresco.jar
-rwxr-xr-x 1 root root 179330 Nov 20 09:48 check_apt
-rwxr-xr-x. 1 root root 6897 Dec 23 11:03 check_asterisk.pl
-rwxr-xr-x 1 nagios users 4173 Jun 12 2014 check_bl
-rwxr-xr-x 1 nagios users 2289 Jun 12 2014 check_bpi.php
-rwxr-xr-x 1 root root 2252 Nov 20 09:48 check_breeze
-rwxr-xr-x 1 root root 179755 Nov 20 09:48 check_by_ssh
-rwxr-xr-x 1 nagios users 14192 Jun 7 2012 check_cap
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_clamd -> check_tcp
-rwxr-xr-x 1 root root 137077 Nov 20 09:48 check_cluster
-rwxr-xr-x 1 root root 5355 Aug 23 2013 check_cpu_stats.sh
-r-sr-xr-x 1 root root 175378 Nov 20 09:48 check_dhcp
-rwxr-xr-x 1 root root 174485 Nov 20 09:48 check_dig
-rwxr-xr-x 1 root root 3861 Dec 23 11:03 check_dir
-rwxr-xr-x 1 root root 193460 Nov 20 09:48 check_disk
-rwxr-xr-x 1 root root 9290 Nov 20 09:48 check_disk_smb
-rwxr-xr-x 1 root root 10635 Oct 9 16:41 check_diskstat.sh
-rwxr-xr-x 1 root root 189139 Nov 20 09:48 check_dns
-rwxr-xr-x 1 root root 8026 Jun 12 2014 check_domain.php
-rwxr-xr-x 1 root root 85123 Nov 20 09:48 check_dummy
-rw-r--r-- 1 root root 141 Dec 15 13:51 check_dx_mirrorlist.sh
-rwxr-xr-x 1 root root 1136 Dec 16 11:10 check_dx_mirror.pl
-rwxrwxr-x 1 nagios users 560 Oct 21 16:04 check_dx_mirror.sh
-rwxr-xr-x 1 nagios users 5625 Jun 12 2014 check_em01.pl
-rwxr-xr-x 1 nagios users 38345 Jul 17 2013 check_email_delivery
-rwxr-xr-x 1 nagios users 20511 Jul 17 2013 check_email_delivery_epn
-rwxr-xr-x. 1 root root 20039 Dec 23 11:03 check_email_loop.pl
-rwxr-xr-x 1 root root 88971 Mar 6 2013 check_emc_clariion.pl
-rwxr-xr-x 1 nagios users 91124 Feb 28 2013 check_emc_clariion.pl.old
-rwxr-xr-x 1 nagios users 82841 Feb 11 18:26 check_esx3.pl
-rwxr-xr-x 1 apache apache 10089 May 30 2013 check_f5_system.pl
-rwxr-xr-x 1 root root 3424 Jan 10 2014 check_fibrealliance.sh
-rwxr-xr-x 1 root root 3350 Nov 20 09:48 check_file_age
-rwxr-xr-x 1 root root 6316 Nov 20 09:48 check_flexlm
-rwxr-xr-x 1 root root 180853 Nov 20 09:48 check_fping
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_ftp -> check_tcp
-rwxr-xr-x 1 nagios users 3446 Sep 23 2013 check_ftp_fully
-rwxrwxr-x 1 nagios nagios 49690 Jan 31 2014 check_fujitsu_eternus_dx.pyc
-rwxrwxr-x 1 nagios nagios 27661 Apr 24 2013 check_fujitsu_eternus_dx.pyc_old
-rwxr-xr-x 1 root root 13409 Mar 6 2013 check_fujitsu_primergy.pl
-rwxr-xr-x 1 root root 202543 Dec 5 2012 check_fujitsu_server.1.00.pl
-rwxr-xr-x 1 root root 222703 Jul 18 2013 check_fujitsu_server.1.10.pl
-rwxr-xr-x 1 root root 237752 Mar 28 2014 check_fujitsu_server.2.10.01.pl
-rwxr-xr-x 1 root root 202543 Dec 5 2012 check_fujitsu_server.pl
-rwxr-xr-x 1 nagios nagios 13893 May 27 2013 check_hp
-rwxr-xr-x 1 root root 175456 Nov 20 09:48 check_hpjd
-rwxr-xr-x 1 root root 346700 Dec 17 13:30 check_http
-rwxr-xr-x 1 root root 335940 Nov 20 09:48 check_http.bak
-rwxr-xr-x 1 root root 1891 Feb 6 2014 check_http_ntlm_ocmwintranet.pl
-rwxr-xr-x 1 root root 1900 Mar 18 2014 check_http_ntlm_srvexch01.pl
-rwxr-xr-x 1 root root 1897 Feb 24 2014 check_http_ntlm_srvexch03.pl
-r-sr-xr-x 1 root root 182043 Nov 20 09:48 check_icmp
-rwxr-xr-x 1 root root 146203 Nov 20 09:48 check_ide_smart
-rwxr-xr-x 1 root root 1060 Jun 12 2014 check_ifoperstatnag
-rwxr-xr-x 1 root root 15124 Nov 20 09:48 check_ifoperstatus
-rwxr-xr-x 1 root root 12601 Nov 20 09:48 check_ifstatus
-rwxr-xr-x 1 root root 18087 Oct 17 12:48 check_iftraffic_nrpe.sh
-rwxrwxr-x 1 nagios nagios 24039 May 27 2013 check_ilo2_health.pl
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_imap -> check_tcp
-rwxr-xr-x 1 nagios users 35413 Jul 17 2013 check_imap_receive
-rwxr-xr-x 1 nagios users 15576 Jul 17 2013 check_imap_receive_epn
-rwxr-xr-x 1 root root 748 Aug 23 2013 check_init_service
-rwxr-xr-x 1 root root 6888 Nov 20 09:48 check_ircd
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_jabber -> check_tcp
-rwxrwxr-x 1 root root 279 Sep 4 2013 check_jmx
-rwxr-xr-x 1 root root 492 Dec 19 2013 check_jmxeval
-rwxr-xr-x 1 root root 12925 Apr 19 2011 check_jmx.jar
-rwxr-xr-x 1 root root 487 Aug 19 2014 check_kms
-rwxr-xr-x 1 root root 157738 Nov 20 09:48 check_ldap
lrwxrwxrwx 1 root root 10 Nov 20 09:48 check_ldaps -> check_ldap
-rwxr-xr-x 1 root root 1708 Sep 29 2014 check_lin_shellshock.sh
-rwxr-xr-x 1 root root 158140 Nov 20 09:48 check_load
-rwxr-xr-x 1 root root 5989 Nov 20 09:48 check_log
-rwxr-xr-x 1 root root 21481 Nov 20 09:48 check_mailq
-rwxr-xr-x 1 root root 124882 Sep 18 2014 check_memcached.pl
-rwxr-xr-x 1 root root 56200 Jun 12 2014 check_mongodb.py
-rwxr-xr-x 1 root root 144309 Nov 20 09:48 check_mrtg
-rwxr-xr-x 1 root root 145362 Nov 20 09:48 check_mrtgtraf
-rwxr-xr-x. 1 root root 16614 Dec 23 11:03 check_mssql
-rwxr-xr-x 1 root root 14454 Feb 5 2014 check_mssql_database_dig.py
-rwxr-xr-x 1 nagios nagios 14439 Feb 11 21:16 check_mssql_database_indent_error.py
-rwxr-xr-x 1 root root 14577 Jun 12 2014 check_mssql_database_Original.py
-rwxr-xr-x 1 nagios users 14004 Oct 31 2013 check_mssql_database_ORI.py
-rwxr-xr-x 1 root root 14440 Feb 11 22:59 check_mssql_database.py
-rwxr-xr-x 1 root root 14441 Feb 11 21:21 check_mssql_databas_working_but_perfdata.py
-rwxr-xr-x 1 nagios nagios 20231 Oct 31 2013 check_mssql_server_old.py
-rwxr-xr-x 1 nagios users 20215 Sep 23 2013 check_mssql_server_ORI.py
-rwxr-xr-x 1 nagios nagios 20404 Mar 13 09:40 check_mssql_server.py
-rwxr-xr-x 1 root root 2002 Jan 28 16:58 check_ms_win_server_cpu_incl_top_procs.sh
-rwxr-xr-x 1 root root 190912 Nov 20 09:48 check_mysql
-rwxr-xr-x. 1 root root 122024 Feb 25 12:49 check_mysql_health
-rwxr-xr-x 1 root root 175382 Nov 20 09:48 check_mysql_query
-rwxr-xr-x 1 root root 157446 Nov 20 09:48 check_nagios
-rwxr-xr-x 1 nagios users 6574 Jun 12 2014 check_nagios_performance.php
-rwxr-xr-x 1 root root 8187 Jan 21 08:17 check_nagiostats
-rwxr-xr-x 1 nagios users 20661 Dec 23 12:35 check_nagiosxiserver.php
-rwxr-xr-x 1 root root 4283 Jun 12 2014 check_ncpa.py
-rwxr-xr-x 1 root root 81782 Jun 10 2014 check_netapp_ontapi.pl
-rwxr-xr-x 1 root root 62511 Feb 20 2014 check_netapp_ontapi.pl.old
-rwxr-xr-x 1 root root 73870 May 26 2014 check_netapp_ontapi.pl.old2
-rwxr-xr-x 1 root root 80577 Jun 4 2014 check_netapp_ontapi.pl.old3
-rwxr-xr-x 1 root root 10037 Jun 12 2014 check_nna.py
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_nntp -> check_tcp
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_nntps -> check_tcp
-rwxrwxr-x 1 nagios nagios 75444 Aug 22 2012 check_nrpe
-rwxr-xr-x 1 root root 179850 Nov 20 09:48 check_nt
-rwxr-xr-x 1 root root 184185 Nov 20 09:48 check_ntp
-rwxr-xr-x 1 root root 173190 Nov 20 09:48 check_ntp_peer
-rwxr-xr-x 1 root root 171435 Nov 20 09:48 check_ntp_time
-rwxr-xr-x 1 root root 212407 Nov 20 09:48 check_nwstat
-rwxr-xr-x 1 root root 3259 Aug 23 2013 check_open_files.pl
-rwxr-xr-x 1 root root 8779 Nov 20 09:48 check_oracle
-rwxr-xr-x 1 root root 160181 Nov 20 09:48 check_overcr
-rwxr-xr-x 1 root root 164283 Nov 20 09:48 check_pgsql
-rwxr-xr-x 1 root root 183730 Nov 20 09:48 check_ping
-rwxr-xr-x 1 nagios nagios 6183 Dec 23 11:03 check_pnp_rrds.pl
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_pop -> check_tcp
-rwxr-xr-x. 1 root root 281655 Dec 23 11:04 check_postgres.pl
-rwxr-xr-x 1 root root 187009 Nov 20 09:48 check_procs
-rwxr-xr-x 1 nagios users 29938 Apr 2 12:12 check_radius_adv
-rwxr-xr-x 1 root root 13809 Jun 17 2014 check_rbl
-rw-r--r-- 1 root root 1194 Nov 3 2010 check_rbl.ini
-rw-r--r-- 1 root root 4650 Jan 30 2014 check_rbl.pod
-rw-r--r-- 1 root root 3021 Jan 30 2014 check_rbl.spec
-rwxr-xr-x 1 root root 157639 Nov 20 09:48 check_real
-rwxr-xr-x 1 root root 9582 Nov 20 09:48 check_rpc
-rwxr-xr-x. 1 root root 9743 Dec 23 11:03 check_rrdtraf
-rwxr-xr-x. 1 root root 5299 Dec 23 11:03 check_rrdtraf.php
-rwxr-xr-x 1 root root 1453 Nov 20 09:48 check_sensors
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_simap -> check_tcp
-rwxr-xr-x. 1 root root 7599 Dec 23 11:03 check_sip
-rwxr-xr-x 1 root root 247906 Nov 20 09:48 check_smtp
-rwxr-xr-x 1 nagios users 20226 Jul 17 2013 check_smtp_send
-rwxr-xr-x 1 nagios users 10440 Jul 17 2013 check_smtp_send_epn
-rwxr-xr-x 1 root root 251305 Nov 20 09:48 check_snmp
-rwxr-xr-x. 1 root root 10951 Dec 23 11:03 check_snmp_boostedge.pl
-rwxr-xr-x 1 root root 50469 Jan 10 2014 check_snmp_brocade_3.2.0
-rwxr-xr-x 1 nagios nagios 14771 Jul 8 2013 check_snmp_cisco_ccm.sh
-rwxr-xr-x. 1 root root 17866 Dec 23 11:03 check_snmp_cpfw.pl
-rwxr-xr-x. 1 root root 8747 Dec 23 11:03 check_snmp_css_main.pl
-rwxr-xr-x. 1 root root 16786 Dec 23 11:03 check_snmp_css.pl
-rwxr-xr-x. 1 root root 33562 Dec 23 11:03 check_snmp_env.pl
-rwxr-xr-x 1 root root 10153 Jan 10 2014 check_snmp_FCports_brocade-v1.2.pl
-rwxr-xr-x 1 nagios users 23464 Dec 23 12:36 check_snmp_generic.pl
-rwxr-xr-x. 1 root root 31919 Dec 23 11:03 check_snmp_int.pl
-rwxr-xr-x. 1 root root 10108 Dec 23 11:03 check_snmp_linkproof_nhr.pl
-rwxr-xr-x. 1 root root 22965 Dec 23 11:03 check_snmp_load.pl
-rwxr-xr-x 1 nagios users 23886 Jun 12 2014 check_snmp_load_wizard.pl
-rwxr-xr-x. 1 root root 18734 Dec 23 11:03 check_snmp_mem.pl
-rwxr-xr-x. 1 root root 11898 Dec 23 11:03 check_snmp_nsbox.pl
-rwxr-xr-x. 1 root root 24233 Dec 23 11:03 check_snmp_process.pl
-rwxr-xr-x 1 nagios users 26183 Jun 12 2014 check_snmp_process_wizard.pl
-rwxr-xr-x. 1 root root 24002 Dec 23 11:03 check_snmp_storage.pl
-rwxr-xr-x 1 nagios users 25484 Jun 12 2014 check_snmp_storage_wizard.pl
-rwxr-xr-x 1 root root 14039 Mar 31 15:00 check_snmp_uptime.pl
-rwxr-xr-x. 1 root root 14489 Dec 23 11:03 check_snmp_vrrp.pl
-rwxr-xr-x. 1 root root 11967 Dec 23 11:03 check_snmp_win.pl
-rwxr-xr-x 1 root root 6003 Mar 24 16:16 check_socomec_a40_power_ac.sh
-rwxr-xr-x 1 root root 5560 Nov 26 13:41 check_socomec_a40_power_dg_airco.sh
-rwxr-xr-x 1 root root 5612 Nov 26 12:08 check_socomec_a40_power_dg.sh
-rwxr-xr-x 1 root root 4219 Nov 14 10:52 check_socomec_a40.sh
-rwxr-xr-x 1 root root 7475 Sep 19 2014 check_solr
-rwxr-xr-x 1 root root 1716 Nov 19 12:13 check_solr.php
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_spop -> check_tcp
-rwxr-xr-x 1 root root 155467 Nov 20 09:48 check_ssh
-rwxr-xr-x 1 nagios users 8337 Oct 10 2012 check_ssh_expect.pl
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_ssmtp -> check_tcp
-rwxr-xr-x 1 root root 141145 Nov 20 09:48 check_swap
-rwxr-xr-x 1 root root 230829 Nov 20 09:48 check_tcp
-rwxr-xr-x 1 root root 156617 Nov 20 09:48 check_time
lrwxrwxrwx 1 root root 9 Nov 20 09:48 check_udp -> check_tcp
-rwxr-xr-x 1 root root 168629 Nov 20 09:48 check_ups
-rwxr-xr-x 1 root root 138019 Nov 20 09:48 check_uptime
-rwxr-xr-x 1 root root 136169 Nov 20 09:48 check_users
-rwxr-xr-x 1 root root 2937 Nov 20 09:48 check_wave
-rwxr-xr-x 1 root root 12355 Mar 18 2014 check_web_app_ntlm.pl
-rwxr-xr-x. 1 root root 307 Dec 23 11:03 check_webinject.sh
-rwxr-xr-x 1 nagios users 7065 Jun 12 2014 check_win_snmp_disk.pl
-rwxr-xr-x 1 nagios users 2405 Feb 11 18:26 check_wmi_plus.conf
-rwxr-xr-x 1 nagios users 64477 Feb 11 18:26 check_wmi_plus.ini
-rwxr-xr-x 1 nagios users 237155 Feb 11 18:26 check_wmi_plus.pl
-rwxr-xr-x 1 root root 3060 Aug 23 2013 custom_check_mem
-rwxr-xr-x 1 root root 915 Aug 23 2013 custom_check_procs
-rwxr-xr-x 1 root root 1984 Nov 18 11:57 dig_create_infra_call.sh
-rwxr-xr-x 1 root root 705 Jun 27 2014 dig_ext_cmd_svc_generate_nsclientini.sh
-rwxr-xr-x 1 nagios root 935 Jan 10 2014 dig_ext_cmd_svc_submit_ok_all_evt_application.sh
-rwxr-xr-x 1 nagios root 705 Jan 10 2014 dig_ext_cmd_svc_submit_ok_all_evt_system.sh
drwxrwxrwx 2 root root 4096 Dec 5 10:04 digipolis
-rwxr-xr-x 1 root root 645 Apr 30 2014 dig_update_nscp_ini_legacy.sh
drwxr-xr-x 11 501 games 4096 Dec 19 2013 jmx4perl-1.07_1
-rwxr-xr-x 1 root root 348231 Dec 19 2013 jmx4perl-1.07_1.tar.gz
-rw-r--r-- 1 root root 39899 Feb 19 2013 jmxeval-1.2.6.jar
drwxrwxrwx 2 root root 4096 Oct 21 15:43 naf
-rwxr-xr-x 1 root root 1593 Oct 24 15:34 naf_delete_nscp_log.sh
-rwxr-xr-x 1 root root 1511 Dec 17 12:18 naf_initiate_ms_server_audit.sh
-rw------- 1 root root 1475 Sep 21 2014 naf_initiate_ms_server_audit.sh.save
-rwxr-xr-x 1 root root 2887 Aug 13 2014 naf_install_nscp_0.4.1.101.sh
-rwxr-xr-x 1 root root 3430 Jan 19 14:32 naf_install_nscp_0.4.1.105.sh
-rwxr-xr-x 1 root root 3577 Feb 10 14:55 naf_mass_update_host_citrix_ocmw.sh
-rwxr-xr-x 1 root root 1258 Aug 21 2014 naf_mass_update_hosts_citrix_ocmw_old.sh
-rwxr-xr-x 1 root root 3564 Dec 9 13:38 naf_mass_update_host_windows_01.sh
-rwxr-xr-x 1 root root 3529 Oct 23 09:27 naf_mass_update_host_windows_02.sh
-rwxr-xr-x 1 root root 3526 Oct 23 21:33 naf_mass_update_host_windows_03.sh
-rwxr-xr-x 1 root root 3552 Dec 16 12:12 naf_mass_update_host_windows_temp.sh
-rwxr-xr-x 1 root root 2342 Aug 21 2014 naf_mass_update_nscp_config.sh
-rwxr-xr-x 1 root root 1391 Aug 12 2014 naf_restart_fujitsu_services.sh
-rwxr-xr-x 1 root root 1643 Aug 21 2014 naf_update_nagios_downtime_script.sh
-rwxr-xr-x 1 root root 1393 Aug 21 2014 naf_update_nscp_ini_autogenerated.sh
-rwxr-xr-x 1 root root 1665 Oct 23 09:25 naf_update_nscp_scripts_folder.sh
-rwxr-xr-x 1 root root 131598 Nov 20 09:48 negate
-rwxr-xr-x 1 nagios nagios 32666 Dec 23 11:03 process_perfdata.pl
-rwxr-xr-x 1 root root 9517 Aug 26 2014 samweather
-rwxr-xr-x 1 apache apache 9283 Mar 6 2013 schau_snmp.py
-rw-r--r-- 1 root root 7575 Mar 6 2013 schau_snmp.pyc
-rwxr-xr-x 1 apache apache 8590 Mar 6 2013 schau_utils.py
-rw-r--r-- 1 root root 5957 Mar 6 2013 schau_utils.pyc
-rwxr-xr-x. 1 root root 64618 Jun 6 2012 send_nsca
-rwxr-xr-x 1 root root 160 Apr 8 2014 snmp_wrapper.sh
drwxr-xr-x 2 root root 4096 Nov 13 21:47 socomec
-rwxr-xr-x 1 root root 29294 Nov 16 2012 tool_fujitsu_server.pl
-rwxr-xr-x 1 root root 125844 Nov 20 09:48 urlize
-rwxr-xr-x 1 root root 1895 Nov 20 09:48 utils.pm
-rwxr-xr-x 1 root root 2791 Nov 20 09:48 utils.sh
Code: Select all
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
53G 37G 14G 74% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 97M 64M 29M 69% /boot
svm.gent.be:/backups/NAGIOS
720G 655G 66G 91% /var/Digipolis/Backup
Please read through the thread. It seems like the script tries to ftp before the backup is finished...
Grtz
Willem
tgriep
Madmin
Posts: 9190 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Fri Apr 03, 2015 8:47 am
I think that the permission issue creating the backup should fix the ftp backup. Run this to change the permissions of that file. Then schedule the ftp backup.
Code: Select all
chmod a+r /usr/local/nagios/libexec/naf_initiate_ms_server_audit.sh.save
Be sure to check out our
Knowledgebase for helpful articles and solutions!