General Question - Rebooting a Nagios box

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

General Question - Rebooting a Nagios box

Post by and1100 »

Hi,

I was wondering, what were to happen if I needed to power cycle a VM running Nagios in regards to the acked messages, disabled notifications, and overall service status? Would it save its state or would it need to recheck the services?

Unfortunately, I am not in a position to test this so I was wondering if anyone has had experience performing the reboot.

Thank you!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: General Question - Rebooting a Nagios box

Post by sreinhardt »

If you have enabled options to retain state data, they should be maintained between system and service reboots. However if you do not, it would be started from unknown, as if they were freshly added.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: General Question - Rebooting a Nagios box

Post by slansing »

To expand on the above as long as your retention.dat file is functioning properly "not corrupt in some way" then your states and status's should persist through a re-boot. I do believe acknowledgements will persist as they are labeled in the retention file as well. Just make sure you properly shut down the VM:

Code: Select all

shutdown -h now
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: General Question - Rebooting a Nagios box

Post by and1100 »

Understood. Thank you.
Locked