Xymon Mailing List Archive search

Event start time

2 messages in this thread

list Jason K. Kruse · Wed, 26 Jul 2006 13:18:49 -0500 ·
Is there a way to query the server for the time that a status message
caused a notification?  I use the start time currently as a unique item
to ensure I only open 1 ticket for each notification and have noticed
that time() - $ENV{DOWNSECS} isn't always equal due to processing
timeframes and delays.

Jason
list Henrik Størner · Sat, 29 Jul 2006 23:31:33 +0200 ·
quoted from Jason K. Kruse
On Wed, Jul 26, 2006 at 01:18:49PM -0500, Kruse, Jason K. wrote:
Is there a way to query the server for the time that a status message
caused a notification?  I use the start time currently as a unique item
to ensure I only open 1 ticket for each notification and have noticed
that time() - $ENV{DOWNSECS} isn't always equal due to processing
timeframes and delays.
bb 127.0.0.1 "hobbitdlog HOSTNAME.SERVICE fields=lastchange" | head -1

I'll add an EVENTSTART environment variable with the timestamp for
scripts.


Regards,
Henrik