[Xymon] Developer question - number of tests?
John Horne
john.horne at plymouth.ac.uk
Fri Oct 11 22:48:13 CEST 2019
On Fri, 2019-10-11 at 19:29 +0100, Andy Smith wrote:
> 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
>
Hello,
Okay, thanks for that. However, what I was looking for was something in the
actual source code that provided the number of tests. (I still haven't found
anything, so it probably isn't there.) I'm trying to sort out a request at work
which requires modifying the code a little bit. To resolve it I need to know
the number of tests.
John.
> 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.
> >
> >
--
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.
More information about the Xymon
mailing list