[Xymon] Developer question - number of tests?

Andy Smith abs at shadymint.com
Fri Oct 11 20:29:25 CEST 2019


Hi,

Open the trends page for your xymon server and on any chart, edit the 
URL from (say) service=la to service=xymon1 eg:-

    https://foo.bar.com/xymon-cgi/showgraph.sh?host=foo.bar.com&service=xymon1&graph_width=576&graph_height=120&first=1&count=1&disp=foo.bar.com&graph_start=1570644139&graph_end=1570816939&action=menu

You will get a chart showing the number of 'Items', which is actually 
what appears on the xymongen page as 'Status messages', (NB, 
service=xymon displays the number of Hosts ):-


          Fri Oct 11 19:18:20 2019

    xymongen for Xymon version 4.3.28 Statistics:
    Hosts : 34
    Pages : 7
    Status messages : 258

or from the command line :-

    bash-3.2$ xymon 127.0.0.1 'xymondboard fields=hostname test=info' | wc -l
           34
    bash-3.2$ xymon 127.0.0.1 'xymondboard ' | egrep -v '(trends|info)' | awk -F\| '{print $1}' | wc -l
          258

However, if you have Windows powershell clients, this is probably wrong, 
you need to exclude the clientlog test as well:-

    bash-3.2$ xymon 127.0.0.1 'xymondboard ' | egrep -v '(trends|info|clientlog)' | awk -F\| '{print $1}' | wc -l

          242

-- 
Andy

On 11/10/2019 15:40, John Horne wrote:

> Hello,
>
> The xymonnet and xymongen web pages include an entry for the total number of
> hosts being tested. What I was also looking for though was if the total number
> of tests was recorded too?
>
> Tests such as 'procs', which may test for several processes being present,
> should be counted as one test.
>
> I'll carry on looking through the (Terabithia 4.3.30 RPM) code, but if anyone
> knows of a variable already being used to record the number of tests, then I
> would be grateful to know what it is.
>
>
>
> Thanks,
>
> John.
>
> --
> John Horne | Senior Operations Analyst | Technology and Information Services
> University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
> ________________________________
> [http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass>
>
> This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.
> _______________________________________________
> 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/20191011/8b1fb102/attachment.htm>


More information about the Xymon mailing list