TECHZEN Zenoss User Community ARCHIVE  

System Rebooted Trigger

Subject: System Rebooted Trigger
Author: Matt Carter
Posted: 2019-01-15 20:14

Hi,

Trying to figure out the best way to write a trigger that will eventually send a notification if a server reboots.

Currently, I have the ping response method up and working, but its not exactly a reliable way to positively identify a reboot.

I was thinking something along of the lines of a system uptime rule that would set a flag if it were less than, say 10 minutes.

The other thought I had was to pull system logs and trigger on the system was restarted event. 

Anyone that could point me in the right direction or suggest another reliable method to accomplish this would be much appreciated

------------------------------
Matt
------------------------------


Subject: RE: System Rebooted Trigger
Author: Ryan Matte
Posted: 2019-02-21 11:33

To my knowledge there aren't really any simple ways to do what you're describing.  The methods you described are the ones that I typically see used to perform that type of monitoring.  Basing it on the collected uptime value is probably your best bet and the method I see used the most.  That datapoint is a gauge by default so you should be able to just use a min max threshold with a min threshold set so that it triggers if the value isn't at a certain minimum level.  In theory that should work fine (you'd have to test it of course to make sure it's working the way you're wanting).

------------------------------
Ryan Matte
------------------------------


< Previous
Controlling ping cycle in Zenoss 5 / 6
  Next
zen.ZenModeler doesn't finish
>