Page 1 of 1

General Question - Rebooting a Nagios box

Posted: Wed Feb 05, 2014 11:32 am
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!

Re: General Question - Rebooting a Nagios box

Posted: Wed Feb 05, 2014 11:40 am
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.

Re: General Question - Rebooting a Nagios box

Posted: Wed Feb 05, 2014 11:42 am
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

Re: General Question - Rebooting a Nagios box

Posted: Wed Feb 05, 2014 12:01 pm
by and1100
Understood. Thank you.