Package: ekeyd
Version: 1.1.1-1
Severity: normal
Tags: patch

Hi,

First: who came up with the idea that using special characters in a
serial number, if you're going to be using that serial number for all
sorts of things afterward (such as filenames), would be a good idea? ;-)

Anyway: my entropykey is one of those, and the munin temperature plugin
didn't work. The following patch fixes that for me.

Note that I didn't check the whole munin plugin, just the code that's
relevant for the bits that happened to break for me.

--- ekeyd_stat_ 2009-11-17 12:53:16.000000000 +0100
+++ /usr/share/munin/plugins/ekeyd_stat_        2009-12-09 12:20:42.000000000 
+0100
@@ -162,13 +162,15 @@
        # details for each key 
        foreach my $keyline (@result) {
            my @elmnt = split(/\t/, $keyline);
-           print "stats" . $elmnt[5] . ".label " . $elmnt[5] . "\n";
+           my $name = $elmnt[5];
+           $name =~ s,/,_,g;
+           print "stats" . $name . ".label " . $elmnt[5] . "\n";
 
            # set the graph type
            if (defined $graph_type{$statistic}) {
-               print "stats" . $elmnt[5] . ".type " . $graph_type{$statistic} 
. "\n";
+               print "stats" . $name . ".type " . $graph_type{$statistic} . 
"\n";
            } else {
-               print "stats" . $elmnt[5] . ".type GAUGE\n";
+               print "stats" . $name . ".type GAUGE\n";
            }
 
        }

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/2 CPU cores)
Locale: lang=nl_be.iso-8859...@euro, lc_ctype=nl_be.iso-8859...@euro 
(charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages ekeyd depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  liblua5.1-0                   5.1.3-1    Simple, extensible, embeddable pro
ii  liblua5.1-socket2             2.0.2-3    TCP/UDP socket library for Lua 5.1
ii  lua5.1                        5.1.3-1    Simple, extensible, embeddable pro

Versions of packages ekeyd recommends:
ii  udev                      0.125-7+lenny3 /dev/ and hotplug management daemo

Versions of packages ekeyd suggests:
ii  munin-node               1.2.6-10~lenny1 network-wide graphing framework (n

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to