nagiosxi backup_xi.sh reinitiated again and again

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

nagiosxi backup_xi.sh reinitiated again and again

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagiosxi backup_xi.sh reinitiated again and again

Post by tmcdonald »

Please provide the following information about your XI system:
  • OS and version?
  • Nagios XI version?
  • Screenshot of Admin -> Scheduled Backups -> Local
Former Nagios employee
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: nagiosxi backup_xi.sh reinitiated again and again

Post 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 ?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nagiosxi backup_xi.sh reinitiated again and again

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: nagiosxi backup_xi.sh reinitiated again and again

Post 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.
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

Post by scottwilkerson »

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked