Fun with metrics: can I get an alert recipient programmatically ?
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)
participants (1)
-
betsy.schwartz@gmail.com