diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2012-02-15 02:52:31 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2012-02-15 02:52:31 +0000 |
commit | a7ca2ad457f6d73669b3959e8f2864a6341765e5 (patch) | |
tree | 986fd4bc96d64d21ae0230888394068b898e6a26 | |
parent | 59de3d8bda56d666d59dadba7c41e1f82dbbd5e1 (diff) | |
download | sitesummary-a7ca2ad457f6d73669b3959e8f2864a6341765e5.tar.gz sitesummary-a7ca2ad457f6d73669b3959e8f2864a6341765e5.tar.bz2 sitesummary-a7ca2ad457f6d73669b3959e8f2864a6341765e5.tar.xz |
Correct generated label names used by Munin plugin
munin-plugin-agesinceseen, and start with _ to make sure the first
character is never a digit.
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | munin-plugin-agesinceseen | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 83a5a64..2acacea 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,9 @@ sitesummary (0.1.3) UNRELEASED; urgency=low this time. Check for dhcpd3 on Lenny and dhcpd on Squeeze++. * Make sure to restart nagios-nrpe-server when sitesummary-client is upgraded, to tell it to discover any new NRPE rules. + * Correct generated label names used by Munin plugin + munin-plugin-agesinceseen, and start with _ to make sure the first + character is never a digit. -- Petter Reinholdtsen <pere@debian.org> Mon, 13 Feb 2012 11:04:46 +0100 diff --git a/munin-plugin-agesinceseen b/munin-plugin-agesinceseen index 0d83291..9cd5f09 100755 --- a/munin-plugin-agesinceseen +++ b/munin-plugin-agesinceseen @@ -25,7 +25,7 @@ sub label2key { my $label = shift; $label =~ s/[^a-zA-Z0-9_]+/_/g; $label =~ s/^_+//; - return $label; + return "_$label"; } if (!$ARGV[0]) { |