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!
General Question - Rebooting a Nagios box
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: General Question - Rebooting a Nagios box
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
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 nowRe: General Question - Rebooting a Nagios box
Understood. Thank you.