[Xymon] generate eventlog report from shell ?

Jeremy Laidman jeremy at laidman.org
Tue Aug 21 03:46:31 CEST 2018


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:

curl -s -k '

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:

curl -s -k ''

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:

xymoncmd sh -c 'REQUEST_METHOD="" eventlog.cgi'

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:

some-server.example.com" eventlog.cgi'


On 9 August 2018 at 23:28, Bakkies Gatvol <bakgat8 at hotmail.com> wrote:

> 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.
> Bakkies
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20180821/95148a88/attachment.html>

More information about the Xymon mailing list