<div dir="ltr"><div>Bakkies</div><div><br></div>If you don't mind a report in HTML, you can use wget or curl to fetch the required report by copying the URL from a report you've already generated. Something like this:<div><br></div><div>curl -s -k '<a href="https://127.0.0.1/xymon-cgi/eventlog.sh?MAXTIME=&FROMTIME=&TOTIME=&MAXCOUNT=100&HOSTMATCH=some-server.example.com&EXHOSTMATCH=&PAGEMATCH=&PATHLIST=&EXPAGEMATCH=&TESTMATCH=&EXTESTMATCH=&COLORMATCH=&Send=View+log">https://127.0.0.1/xymon-cgi/eventlog.sh?MAXTIME=&FROMTIME=&TOTIME=&MAXCOUNT=100&HOSTMATCH=some-server.example.com&EXHOSTMATCH=&PAGEMATCH=&PATHLIST=&EXPAGEMATCH=&TESTMATCH=&EXTESTMATCH=&COLORMATCH=&Send=View+log</a>'<br></div><div><br></div><div>You don't actually need to define any parameters, and the defaults should give you something. The only thing you need to provide is some kind of variable so that QUERY_STRING exists so this should work:</div><div><br></div><div>

<div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">curl -s -k '<a href="https://127.0.0.1/xymon-cgi/eventlog.sh?-">https://127.0.0.1/xymon-cgi/eventlog.sh?-</a>'<br></div><br class="gmail-Apple-interchange-newline"></div><div>You can query Xymon directly without going through the webserver, using the eventlog.cgi command, with output also in HTML format. It needs a Xymon environment setup (eg run via xymoncmd) and it also needs REQUEST_METHOD to be defined (but can be empty), and it will output a report using defaults:</div><div><br></div><div>xymoncmd sh -c 'REQUEST_METHOD="" eventlog.cgi'<br></div><div><br></div><div>You can define QUERY_STRING to specify the parameters of the report, but unless REQUEST_METHOD is set to "GET", it won't be parsed. For example:</div><div><br></div><div> xymoncmd sh -c 'REQUEST_METHOD="GET" QUERY_STRING="HOSTMATCH=<a href="http://some-server.example.com">some-server.example.com</a>" eventlog.cgi'<br></div><div><br></div><div>Cheers</div><div>Jeremy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 August 2018 at 23:28, Bakkies Gatvol <span dir="ltr"><<a href="mailto:bakgat8@hotmail.com" target="_blank">bakgat8@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-5368196943098849519divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Is there a way to generate an event log report from the shell? I want to email a monthly report of change in status for column X . One of those things where one failure is not alert-worthy, but if the problem keep re-occurring,
 somebody need to look.</p><span class="HOEnZb"><font color="#888888">
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Bakkies<br>
</p>
</font></span></div>
</div>

<br>______________________________<wbr>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/<wbr>mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>