Page 1 of 1

nagiosxi backup_xi.sh reinitiated again and again

Posted: Wed May 23, 2018 1:33 am
by zaji_nms
hello yesterday we had an issue with our server blade due to which nagiosxi accidently moved to old snapshot which was on 27feb ( still investigating why ) but when it boots up it was behaving not normal. it was keep executing backup_xi.sh script automatically again and again due to which HDD space was getting full i managed to stop all backup_xi.sh after sometime it became normal
why it does like that ? how to minimize this error in feture ?
logs:---
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
nagios 2750 0.0 0.0 106064 1428 ? S 13:38 0:00 /bin/bash /usr/local/nagiosxi/scripts/backup_xi.sh -n nagiosxi.1526984732 -d /store/backups/nagiosxi
nagios 3188 3.0 0.0 116040 1368 ? S 13:38 0:03 tar czfp /store/backups/nagiosxi/nagiosxi.1526984732/nagios.tar.gz /usr/local/nagios
nagios 9613 0.0 0.0 106064 1424 ? S 13:40 0:00 /bin/bash /usr/local/nagiosxi/scripts/backup_xi.sh -n nagiosxi.1526984791 -d /store/backups/nagiosxi
nagios 10418 2.4 0.0 116136 1352 ? S 13:40 0:00 tar czfp /store/backups/nagiosxi/nagiosxi.1526984791/nagios.tar.gz /usr/local/nagios
nagios 14367 0.0 0.0 106064 1424 ? S 13:37 0:00 /bin/bash /usr/local/nagiosxi/scripts/backup_xi.sh -n nagiosxi.1526984672 -d /store/backups/nagiosxi
root 14821 0.0 0.0 103248 888 pts/0 S+ 13:40 0:00 grep backup
nagios 23466 0.0 0.0 106064 1428 ? S 13:39 0:00 /bin/bash /usr/local/nagiosxi/scripts/backup_xi.sh -n nagiosxi.1526984746 -d /store/backups/nagiosxi
nagios 23891 3.0 0.0 116040 1360 ? S 13:39 0:02 tar czfp /store/backups/nagiosxi/nagiosxi.1526984746/nagios.tar.gz /usr/local/nagios
nagios 26629 0.0 0.0 106064 1428 ? S 13:36 0:00 /bin/bash /usr/local/nagiosxi/scripts/backup_xi.sh -n nagiosxi.1526984668 -d /store/backups/nagiosxi

Re: nagiosxi backup_xi.sh reinitiated again and again

Posted: Wed May 23, 2018 12:15 pm
by tmcdonald
Please provide the following information about your XI system:
  • OS and version?
  • Nagios XI version?
  • Screenshot of Admin -> Scheduled Backups -> Local

Re: nagiosxi backup_xi.sh reinitiated again and again

Posted: Thu May 24, 2018 1:26 am
by zaji_nms
OS and version? centos 6 " 2.6.32-504.1.3.el6.x86_64 "
Nagios XI version? 5.2.3
Screenshot of Admin -> Scheduled Backups -> Local : i have modified it but it was ( locally every monday and ssh to remote site daily )

now everything looks ok but i would like to know the reason root cause and in feature if something happen what step do i need to follow ?

Re: nagiosxi backup_xi.sh reinitiated again and again

Posted: Thu May 24, 2018 1:23 pm
by npolovenko
@zaji_nms, Possibly multiple instances of nagios were running at the same time:

Code: Select all

ps -ef | grep nagios.cfg
Or a stuck backup job.

Next time if you see something like this please run:

Code: Select all

service nagios stop	
killall -9 nagios	
service nagios start
Looking into the cmdsubsys log might also help:

Code: Select all

/usr/local/nagiosxi/var/cmdsubsys.log

Re: nagiosxi backup_xi.sh reinitiated again and again

Posted: Sun May 27, 2018 1:12 am
by zaji_nms
ok. if in case you get similar issue in ur lab or from any other customer do let us update with root cause. you may close this case now.

Re: nagiosxi backup_xi.sh reinitiated again and again

Posted: Tue May 29, 2018 8:25 am
by scottwilkerson
Locking thread