Linux Server Reboot Notification

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
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Linux Server Reboot Notification

Post by rlinux57 »

How to get linux server reboot notification ?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Linux Server Reboot Notification

Post by Box293 »

You could check the system uptime and alert if it is less than a certain value.

You could use a plugin that does this via check_nrpe or check_by_ssh.

http://exchange.nagios.org/index.php?op ... x%20uptime

Or you could do this using SNMP.

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 10.25.4.1  -o sysUpTime.0 -C public -P 2c -c 8640000:0
8640000 = 1 day
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Linux Server Reboot Notification

Post by rlinux57 »

I have resolved the issue, please marked as close.
Locked