i just put v1.0.1 of the ganglia php/rrd web client on sourceforge
http://sourceforge.net/project/showfiles.php?group_id=43021
(the tarball will be available as soon as sourceforge processes my
request)

this releases fixes a bug brought to my attention by Philippe Namias.
v1.0.0 would not except any custom metric names that had characters other
than [a-zA-Z0-9_].  this limitation was not caused by the ganglia
monitoring core but rather a limitation of the round robin database tool.
rrdtool can only accept data source (DS) names that contain [a-zA-Z0-9_].

my workaround...

i'm sorry but i had to change the database structure to work around this
limitation.  the data you have collected over the last week will be
incompatible with the new system.  i have changed the DS from the metric
name to "ganglia" for each of the metrics.

for people who already have the web frontend running.. here is how you
upgrade (assuming you installed the php scripts in
/var/www/html/ganglia)...

1. remove you old databases
  rm /var/log/ganglia/rrds/*
2. copy graph.php and index.php to your web server (only files to change)
  cp ./web/graph.php /var/www/html/ganglia/graph.php (for example)
  cp ./web/index.php /var/www/html/ganglia/index.php (for example)
3. install the new ganglia-rrd.pl daemon
  cp ./ganglia-rrd.pl /var/log/ganglia
4. restart the ganglia-rrd.pl daemon
  /etc/rc.d/init.d/ganglia-php-rrd stop
  /etc/rc.d/init.d/ganglia-php-rrd start

that's it.

again.. i'm really sorry that you will lose the data that you collected
over the last week.  i don't forsee any more changes that need to be made
to the database structure.  we can thank Philippe for catching this
problem early.  in the future, if major database restructuring is needed
i'll make a conversion utility.

now you can call you metrics what ever you like without strict character
limitations.

-matt


Reply via email to