Xymon Mailing List Archive search

Current status + availability reports

2 messages in this thread

list Tracy di Marco White · Mon, 22 Sep 2014 17:30:41 -0500 ·
I'd like to have a page that has the current status of a set of combo tests
(all called 'health') and next to that columns for yesterday's availability
report, last 30 days, last month, and year to date.

Has anyone done something like that already?

-Tracy
list Ralph Mitchell · Mon, 22 Sep 2014 21:46:34 -0400 ·
I have a cgi script that uses the xymon xymondboard command to get a list
of the servers that have the sslcert column, extracts the certificate
information and constructs a table of the urls, certificates and expiry
dates.  I don't have the script handy here, but essentially it does
something like this:

    xymon localhost "xymondboard  test=sslcert fields=hostname" | while
read hostname
    do
        MSG=`xymon localhost "xymondlog $hostname.sslcert"`
        [ do stuff to process $MSG ]
    done
    [ post process the collected data ]

It doesn't create a Xymon page, it just emits the necessary headers for a
browser to receive a page, followed by a a big html <table>, with options
to sort by different columns, or download as a CSV.

This is all done on-demand, whenever anyone visits the CGI link.  Obviously
something similar could be run from cron, stuffing the extracted
information into a database for later queries to generate monthly,
quarterly and yearly reports.

Ralph Mitchell


On Mon, Sep 22, 2014 at 6:30 PM, Tracy Di Marco White <user-4d3c8321d54f@xymon.invalid>
quoted from Tracy di Marco White
wrote:
I'd like to have a page that has the current status of a set of combo
tests (all called 'health') and next to that columns for yesterday's
availability report, last 30 days, last month, and year to date.

Has anyone done something like that already?

-Tracy