On Tue, Oct 28, 2008 at 05:30:25PM +1100, Adam Mitchell wrote:
> 
>    #!/bin/bash
>    VALUE=$(df /home/ | grep /home |awk '{print $3 }')
>    gmetric --name disk_nfs_used --value $VALUE --type uint32 --units Bytes

not relevant for your problem but units here should be "KB"

>    gmond is running on the head node. However, there doesn't seem to be any
>    rrd's being produced.

the rrd are generated by gmetad, which in turns reads them from your gmond.
for that to work on your setup you need to configure (/etc/gmond.conf) the
gmond in your head node with the same cluster name (shiva) and collector
than your work nodes, and then confirm that your gmetad is configured
(/etc/gmetad.conf) to pull the status for your cluster (shiva) including your
new metric.

telnet to port 8649 in your collector (any gmond if using multicast, or the
one that your gmetad is pointing to if using unicast) should dump an XML
description of your cluster and include the new metric you just created with
gmetric inside a host definition from your head node.

>    I  have added the flowing lines to the cluster_view.tpl
>    <IMG HEIGHT="147" WIDTH="395" ALT="{cluster} DISK"
>       
>    
> SRC="./graph.php?c=shiva&amp;h=shiva.edag.cluster&amp;v=233.904&amp;m=disk_nfs_used&amp;r=hour&amp;z=medium&amp;jr=&amp;js=&amp;st=1225161877&vl=GB">
>    </TD>

v, st, z, r are better pulled from the environment as you will be
otherwise hardcoding some of the values for your graph.

since you are trying to import a metric graph in a cluster view, that might
not work correctly anyway and so changes to graph.php might be needed too.

Carlo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to