Package: munin-node
Version: 1.2.4-1
Severity: normal

The sensors plugin incorrectly assumes that in the output of sensors(1)
there will always be whitespace after the colon separating label from
value. This can cause it to ignore some items. Patch attached.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-amd64-k8-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages munin-node depends on:
ii  adduser                      3.87        Add and remove users and groups
ii  libnet-server-perl           0.90-1      An extensible, general perl server
ii  lsb-base                     3.1-10      Linux Standard Base 3.1 init scrip
ii  perl                         5.8.8-6     Larry Wall's Practical Extraction 
ii  procps                       1:3.2.6-2.2 /proc file system utilities

Versions of packages munin-node recommends:
pn  libnet-snmp-perl              <none>     (no description available)

-- no debconf information
--- /usr/share/munin/plugins/sensors_
+++ /usr/share/munin/plugins/sensors_
@@ -64,21 +64,21 @@
 my $SENSORS = $ENV{'sensors'} || 'sensors';
 my %config = (
 	       fan => {
-		         regex => qr/^(\S[^:]*)\s*:\s+\+?(\d+) RPM.*?(\d+) RPM/m,
+		         regex => qr/^(\S[^:]*)\s*:\s*\+?(\d+) RPM.*?(\d+) RPM/m,
 			 title => 'Fans',
 			 vtitle => 'RPM',
 			 print_threshold => \&fan_threshold,
 			 graph_args => '--base 1000 -l 0'
 	               },
 	       temp => {
-			 regex => qr/^(\S[^:]*)\s*:\s+\+?(\d+(?:\.\d+)?)[° ]C(?:\s+\((?:high|limit)\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C,\s*hyst(?:eresis)?\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C\))?/m,
+			 regex => qr/^(\S[^:]*)\s*:\s*\+?(\d+(?:\.\d+)?)[° ]C(?:\s+\((?:high|limit)\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C,\s*hyst(?:eresis)?\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C\))?/m,
 			 title => 'Temperatures',
 			 vtitle => 'Celsius',
 			 print_threshold => \&temp_threshold,
 			 graph_args => '--base 1000 -l 0'
 	               },
 	       volt => {
-			 regex => qr/^(\S[^:]*)\s*:\s+\+?(-?\d+(?:\.\d+)?) V(?:\s+\(min\s*=\s*\+?(-?\d+(?:\.\d+)?) V,\s*max\s*=\s*\+?(-?\d+(?:\.\d+)?) V\))/m,
+			 regex => qr/^(\S[^:]*)\s*:\s*\+?(-?\d+(?:\.\d+)?) V(?:\s+\(min\s*=\s*\+?(-?\d+(?:\.\d+)?) V,\s*max\s*=\s*\+?(-?\d+(?:\.\d+)?) V\))/m,
 			 title => 'Voltages',
 			 vtitle => 'Volt',
 			 print_threshold => \&volt_threshold,

Reply via email to