The sample PHP code contains instructions like the following to count
nodes for computing averages:
$series =
"DEF:'num_nodes'='${rrd_dir}/cpu_user.rrd':'num':AVERAGE "
. "DEF:'cpu_user'='${rrd_dir}/cpu_user.rrd':'sum':AVERAGE "
. "CDEF:'ccpu_user'=cpu_user,num_nodes,/ "
This method appears to count "HOSTS UP" as the number of nodes. For a
new gmetric, we need to be able to count total hosts (UP and DOWN), not
just UP.
Is there a recommended method in PHP for getting the total number of
nodes (UP plus DOWN)?
Thanks,
Ron
------------------------------------------------------------------------------
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general