<div dir="ltr"><div><div>Or even easier would be to do a find -mtime in the histlogs file, and parse them each separately to produce one-liners from the status line, but I was hoping there was something even simpler.<br></div>
<div>If I do put a script together, I will pop it on the list, but I really don't want to reinvent the wheel.<br><br></div><div>Cheers<br></div><div>V<br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 18 April 2013 09:17, Novosielski, Ryan <span dir="ltr"><<a href="mailto:novosirj@umdnj.edu" target="_blank">novosirj@umdnj.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">
Well, for one, you could do what the GUI form does and use wget or maybe curl on the command line pointed at the CGI script URL to get what you need (my guess is with http POST to select the 72 hours portion). I don't know if you could then choose HTML or something else (don't recall how it works). Otherwise I'd poke around in the section of the manual that deals with the reports for clues. Another place I'd look is the xymon command itself. "xymonboard" is the name of the command to send to get the current status, perhaps there's another for history?<br>
 </font><br> <br>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<font style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<b>From</b>: Vernon Everett [mailto:<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>]
<br><b>Sent</b>: Wednesday, April 17, 2013 08:13 PM<br><b>To</b>: Xymon mailinglist <<a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a>>
<br><b>Subject</b>: [Xymon] CLI Event Report
<br></font> <br></div><div class="HOEnZb"><div class="h5">
<div dir="ltr"><div><div><div><div><div>Hi guys<br><br></div>I know this has been asked before, and probably answered, but I can't seem to find it on the list.<br></div>I would like to pull a list of past events for the last 24 hours (or 72 for Monday) of events using the CLI.<br>

</div>Management is looking for the incident list, and pulling it out manually from the GUI every day offends my sense of laziness. (I believe it is morally wrong for you to do any repetitive task the computer is perfectly capable of doing for itself.)<br>

<br></div>Thanks<br></div>Vernon<br clear="all"><div><div><div><div><div><div><div><br>-- <br><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div>


</div></div></div></div></div></div></div></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div>
</div>