<div dir="ltr"><div>Belatedly - what I'm thinking about is how to get metrics reports, over the organization, for example "average time to ack yellows" or "time from ack to resolution"<br><br>I see that the data about color changes is in $XYMONHOME/data/hist stored by host-test , and the data about acks is in $XYMONHOME/log/acknowledge.log<br>
so I'm thinking we can put that together with splunk.<br><br>Alternately, the board knows about color and acktime, so it's possible to get realtime stats as below ("this alert has been yellow for N minutes") but there's nothing to put that together over time, which is why I'm thinking splunk<br>
<br></div>It would be great if xymon's built-in reports knew about "ACK". we've very ack-driven around here <br><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 9:50 AM,  <span dir="ltr"><<a href="mailto:john.r.rothlisberger@accenture.com" target="_blank">john.r.rothlisberger@accenture.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style>I do this in an alert script:<u></u><u></u></span></p>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
<p class="MsoNormal"><span style>ACTIVE=`/home/xymon/server/bin/xymon 0 "xymondlog $BBHOSTSVC"|head -1|awk -F\| '{print"@"$5}'|xargs date -d`<u></u><u></u></span></p>
<p class="MsoNormal"><span style>NOW=`date '+%s'`<u></u><u></u></span></p>
<p class="MsoNormal"><span style>ALERTACTIVE=`/home/xymon/server/bin/xymon 0 "xymondlog $BBHOSTSVC"|head -1|awk -F\| '{print $5}'`<u></u><u></u></span></p>
<p class="MsoNormal"><span style>ACTIVECOLOR=`/home/xymon/server/bin/xymon 0 "xymondlog $BBHOSTSVC"|head -1|awk -F\| '{print $3}'`<u></u><u></u></span></p>
<p class="MsoNormal"><span style>ALERTDIFF=`expr $NOW - $ALERTACTIVE`<u></u><u></u></span></p>
<p class="MsoNormal"><span style>ALERTTIME=`echo - | awk -v S=$ALERTDIFF '{printf "%d hours %d minutes",S/(60*60),S%(60*60)/60}'`<u></u><u></u></span></p>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
<p class="MsoNormal"><span style>Which, eventually shows up like this in our email alert:<u></u><u></u></span></p>
<p class="MsoNormal">Alert Active Since: Tue Nov 12 11:28:52 CST 2013  (Duration of Alert 4 hours 1 minutes)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">You could use the same logic to get what you want.<span style><u></u><u></u></span></p>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">Thanks,
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">John
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">Upcoming PTO:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">None<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">_____________________________________________________________________
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">John Rothlisberger<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">IT Strategy, Infrastructure & Security - Technology Growth Platform<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">TGP for Business Process Outsourcing<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">Accenture<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d"><a href="tel:312.693.3136" value="+13126933136" target="_blank">312.693.3136</a> office<b><u></u><u></u></b></span></p>

<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#1f497d">_____________________________________________________________________
<u></u><u></u></span></p>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Xymon [mailto:<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>Betsy Schwartz<br>
<b>Sent:</b> Wednesday, November 13, 2013 8:20 AM<br>
<b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> [Xymon] Metrics reports on red/yellow duration? Unacked? Splunk?<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">My grand-boss is looking to set some standards for how long we let reds and yellows go un-ACKed
<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">and un-resolved. There's a built in report but it seems to summarize total time red /yellow and what we're really interested in is how long it's taking us to respond.
<br>
<br>
Has anyone done anything with this? <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I'm wondering if feeding the acklogs into splunk would let us work something up. And/or thinking about just trying to scrape this off the board.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Thoughts and code snippets welcome<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div>
</div>
</div></div></div>
</div>
<br>
<hr>
<font color="Gray" face="Arial" size="1">This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the
 original. Any other use of the e-mail by you is prohibited.<br>
<br>
Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance
 with Accenture policy.<br>
<br>
______________________________________________________________________________________<br>
<br>
<a href="http://www.accenture.com" target="_blank">www.accenture.com</a><br>
</font>
</div>

</blockquote></div><br></div>