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
nagiosxi backup_xi.sh reinitiated again and again
Re: nagiosxi backup_xi.sh reinitiated again and again
Please provide the following information about your XI system:
- OS and version?
- Nagios XI version?
- Screenshot of Admin -> Scheduled Backups -> Local
Former Nagios employee
Re: nagiosxi backup_xi.sh reinitiated again and again
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 ?
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 ?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: nagiosxi backup_xi.sh reinitiated again and again
@zaji_nms, Possibly multiple instances of nagios were running at the same time:
Or a stuck backup job.
Next time if you see something like this please run:
Looking into the cmdsubsys log might also help:
Code: Select all
ps -ef | grep nagios.cfg
Next time if you see something like this please run:
Code: Select all
service nagios stop
killall -9 nagios
service nagios startCode: Select all
/usr/local/nagiosxi/var/cmdsubsys.logAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: nagiosxi backup_xi.sh reinitiated again and again
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagiosxi backup_xi.sh reinitiated again and again
Locking thread