Hi all
Just a quick question.. I have a new gmetric value that is based on
testing whether a specific application is running.
here it is...
#!/bin/csh
set VALUE=`ps -aux | grep "[m]dru." | wc -l`
gmetric -t string -n MDRUN -v $VALUE
Here's the problem
(1) if you are on the client, you can use the 'telnet localhost 8649'
and it will report the XML file with the proper value for the string.
(2) if you are on the server gmond machine (i.e. the one that provides
the web page), sometimes the data is there in the XML file and
sometimes it's not... (but when I mean not, it would say read "MDRUN
VAL=0" rather than MDRUN VAL = 2" etc, etc..). The gmond server does
report all OTHER stock ganglia parameters properly
This doesn't happen on all the clients, nor does it happen all the
time. What I can confirm is that if you telnet into the localhost
client, it will report the correct value.. it's just that the server
does not always report the correct value so if you are on the WWW page
- note this is specific to this particular call. The other machine
parameters i.e. the stock settings are all reported correctly..
Am I missing something?
Thanks
Chris
Christopher M. Yip, Ph.D., P.Eng.
Associate Professor - Canada Research Chair in Molecular Imaging
Department of Chemical Engineering and Applied Chemistry
Department of Biochemistry
Institute of Biomaterials and Biomedical Engineering
University of Toronto
407 Rosebrugh Building
4 Taddle Creek Rd
Toronto, Ontario, CANADA M5S 3G9
(416) 978-7853
(416) 978-4317 (fax)
[EMAIL PROTECTED]
http://bigten.ibme.utoronto.ca