Service and Host Groups disappear

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Service and Host Groups disappear

Post by MSPk »

Hi,

We are using Nagios XI version 2012R1.0, We have recently restarted our Nagios server and when we were back ON we found that the host Groups and the Service Groups were missing. We had to restore our VM (luckily we have taken one jus before the restart) to get these groups back. Has this problem been reported by anyone else as I dont to find anyone reporting it in the forum...Is this an issue with Nagios or is it supposed to be working this way...!!!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service and Host Groups disappear

Post by lmiltchev »

It is possible that you had a database corruption. This may happen after a power failure or if you shut down your VM improperly. Don't use "right click->power off". Run in terminal:

Code: Select all

shutdown -h now
If you run into a database corruption in the future, try repairing the database by running:

Code: Select all

cd /usr/local/nagiosxi/scripts
./repairmysql.sh nagios
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Service and Host Groups disappear

Post by MSPk »

I see an issue with the downtime scheduled for a host or service group. If we have scheduled a downtime for a host or service group I see that the downtime is created for each host/service in the 'scheduled downtime' window which makes it difficult if we want to delete the downtime - we have delete each downtime id manually. Do we have an oiption to delete the downtime for the entire host, service group in a single shot.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service and Host Groups disappear

Post by scottwilkerson »

We don't at this time but the feature has been requested, feel free to add any related comments you would like to the tracker
http://tracker.nagios.com/view.php?id=267
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service and Host Groups disappear

Post by scottwilkerson »

Mass deletion of downtimes has just been added to the Mass Acknowledge component (v1.6)

http://assets.nagios.com/downloads/nagi ... wledge.zip
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Service and Host Groups disappear

Post by MSPk »

We have Implemented Nagios XI version 2012R1.8 for a client and we will be shuting down this VM tomorrow to add some capacity to it. I'm a little concerned as the clinet is not ready to take a snapshot of the VM. Should I be running through any procedure or a simple shutdown from the cli using the above command is fine? Please let me know the correct process as we cant afford to run into any issues iafter completing half the configuration.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Service and Host Groups disappear

Post by slansing »

Running:

Code: Select all

shutdown -h now
Is sufficient, that will allow your server to shut everything down in it's own order, and in a timely manner as not to kill off random services/processes/jobs etc..
Locked