[Xymon] Fun with metrics: can I get an alert recipient programmatically ?

Betsy Schwartz betsy.schwartz at gmail.com
Fri Feb 21 22:28:26 CET 2014


I'm working on metrics to track our response time to yellow alerts.

I can get the current state of the yellows on the board with

/usr/local/xymon/server/bin/xymon localhost "xymondboard color=yellow
fields=hostname,testname
,color,lastchange,acktime

This will tell me f I have an un-acked yellow, and I know how long it's
been yellow.
Now I want to sort these out by which group gets the alerts.
One way to find out is:

/usr/local/xymon/server/bin/xymond_alert --test $hostname $testname
--color=$color --duration=$duration  |grep "Mail alert"

and then parse the result for the destination group. But is there a way I
can get that information directly from xymon? Or is it stored in some deep
memory structure?

Just curious, it'd be cleaner code if the info can come from a query

thanks Betsy

(wishing it were easier to correlate ack info with color change info, the
acklogs are in a separate space and format from the colors)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140221/5d2690d1/attachment.html>


More information about the Xymon mailing list