author | Eddy Petrișor <eddy.petrisor@gmail.com> | |
Wed, 22 Aug 2007 15:15:34 +0000 (17:15 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 22 Aug 2007 15:15:34 +0000 (17:15 +0200) | ||
commit | a095d4f8e3917cca8a989bf1d8f0a6979a3d9652 | |
tree | 3e9ce9dfde5a6270f6c2359f0632be63739172c4 | tree | snapshot |
parent | 4b1af5819e5574e49c3f94c88d1c7cb4682ae941 | commit | diff |
contrib/collectd2html.pl: Allow generation of graphs from remote hosts or in an alternative directory.
In the contribs area of the package there is a nice collectd2html.pl script
which assumes that the data is present in /var/lib/collectd and infers the
hostname. All fine and dandy, but there is no way to override this. This is
useful if one generates the data on a machine, but generates the graphs on
another one.
With the attached patch now is possible to specify a different host and/or a
different directory for the data.
The added options are '--host-is' and '--data-dir'.
An invocation for a remote host whose rrd files have been placed in
/var/tmp/collectd-remoteh looks like:
collectd2html.pl --host-is=remoteh --data-dir=/var/tmp/collectd-remoteh
In the contribs area of the package there is a nice collectd2html.pl script
which assumes that the data is present in /var/lib/collectd and infers the
hostname. All fine and dandy, but there is no way to override this. This is
useful if one generates the data on a machine, but generates the graphs on
another one.
With the attached patch now is possible to specify a different host and/or a
different directory for the data.
The added options are '--host-is' and '--data-dir'.
An invocation for a remote host whose rrd files have been placed in
/var/tmp/collectd-remoteh looks like:
collectd2html.pl --host-is=remoteh --data-dir=/var/tmp/collectd-remoteh
contrib/collectd2html.pl | diff | blob | history |