Alerts for server reboot
Alerts for server reboot
I want to be able to send an alert when servers are rebooted, but I don't see any plugin that can do that. in the past I used the uptime monitor and sent an alert if uptime was below 5 minutes, but I don't see any uptime plugins with a threshold to set. I am monitoring Linux servers using snmp.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Alerts for server reboot
You can do this with the SNMP wizard
check the Uptime box, in the critical field enter
This will alert if uptime is less than 5 minutes as returned by SNMP
check the Uptime box, in the critical field enter
Code: Select all
30000:Re: Alerts for server reboot
I configured one like that and it worked. I copied that check out to all servers and about half are failing with this error "External command error: snmpget: Unknown user name (Sub-id not found: (top) -> sysUpTime)"
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Alerts for server reboot
Can you post the config for one of the services that isn't working?
Re: Alerts for server reboot
I figured it out.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Alerts for server reboot
Great!jodonnell wrote:I figured it out.
Locking thread