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.
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
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&g...
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.
On Fri, 2019-10-11 at 20:48 +0000, John Horne wrote:
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&g...
...
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.)
Just to say thanks for the reply again. Although I said it wasn't really what I was looking for, it did make me think. The graph has the value I wanted, so where did it get that? This led me to the RRD file (and the relevant field in it), which in turn led me to the RRD file being updated and eventually to xymongen itself. Anyway, I eventually got to the 'statuscount' being set and could see that it was the number of tests - the value I wanted.
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.
participants (2)
-
abs@shadymint.com
-
john.horne@plymouth.ac.uk