Joe Griffin wrote:
Hi All,
Is there any similar information on gmetric?
I found a script I would like to use in number 16 of:
http://ganglia.sourceforge.net/gmetric/
However, I cannot get gmetric to print any output.
For example, I tried:
/usr/bin/gmetric --name "Resource_Usage_Rank 2" --value
Proc:gmond_User:nobody _CPU:0.9_Mem:0.0 _Time:0:06 --type
string --units ' '
but no output was printed.
If I "telnet NODE 8649" and then grep for Resource_Usage_Rank
I get:
<METRIC NAME="Resource_Usage_Rank 5" VAL="Proc:ksoftirqd_CPU0_User:root"
TYPE="string" UNITS=" " TN="211" TMAX="60" DMAX="0" SLOPE="both"
SOURCE="gmetric"/>
<METRIC NAME="Resource_Usage_Rank 4" VAL="Proc:keventd_User:root"
TYPE="string" UNITS=" " TN="211" TMAX="60" DMAX="0" SLOPE="both"
SOURCE="gmetric"/>
<METRIC NAME="Resource_Usage_Rank 3" VAL="Proc:init_User:root"
TYPE="string" UNITS=" " TN="211" TMAX="60" DMAX="0" SLOPE="both"
SOURCE="gmetric"/>
<METRIC NAME="Resource_Usage_Rank 2" VAL="Proc:gmond_User:nobody"
TYPE="string" UNITS=" " TN="62" TMAX="60" DMAX="0" SLOPE="both"
SOURCE="gmetric"/>
<METRIC NAME="Resource_Usage_Rank 1" VAL="Proc:top_User:root"
TYPE="string" UNITS=" " TN="211" TMAX="60" DMAX="0" SLOPE="both"
SOURCE="gmetric"/>
But I cannot get gmetric to report anything.
Is there a help page for gmetric?
Looks like gmetric is behaving properly. All it does is create and
transmit an XDR packet. I don't think it actually returns any output
(although it may have a return value ... the code would tell you).
On another note, I've found that XDR packets containing strings longer than
some relatively small magic number don't get parsed correctly by gmond. So
you may well be very disappointed by the results...