TECHZEN Zenoss User Community ARCHIVE  

Inverting Ping Events?

Subject: Inverting Ping Events?
Author: Pheripheral Pheripheral
Posted: 2019-08-16 07:03

I was wondering if anyone has a good idea about how to achieve essentially an inversion of the ping events raised when a device does not ping.
I.e we've got a specific device that for the most part is turned off and so the pings fail and raise events. When its turned on, the ping works and the ping failure events are removed.

We really want the opposite of this, so that an event is raised when the ping succeeds and no event is shown when the ping fails (device is off).

Basically to alert the user when the device is on, as under normal operation it would be off.

Any ideas on the easiest way to achive this?

------------------------------
Pheripheral Pheripheral
------------------------------


Subject: RE: Inverting Ping Events?
Author: Chris De Coster
Posted: 2019-08-28 09:29

Hi, in the default ping, I don't see a way of doing this. Only thing is drop the events via a transform in the /status/ping event class.
Then, you can setup your own "ping" and inverse the status output. (in your own eventclass)

------------------------------
Chris
------------------------------

Subject: RE: Inverting Ping Events?
Author: Jane Curry
Posted: 2019-08-31 08:39

As Chris says, you could use an event transform to drop "bad news" events but you may run into problems with spotting the "Clear" event as a clear event that doesn't match a bad news event tends to get silently dropped by zeneventserver so you would need to ensure you change the severity of a "clear" event.

If you are really only interested in alerts to a user, can you leave the events as they are but trigger a notification based on the device, /Status/Ping as the event class, for new events, with a severity of Clear?  If you have a notification for all devices on /Status/Ping "bad news" events, you may want to also modify that to exclude your specific device.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


< Previous
Poskey errors
  Next
Monitoring Template not working
>