Package: munin-plugins-extra
Version: 2.0.6-4+deb7u1
Severity: normal

with version 2.0.6-4 of munin-plugins-extra, I get the following stack trace
when running the ipmi_sensor_ script:

    munin-run ipmi_sensor_u_degrees_c 
    Traceback (most recent call last):
      File "/etc/munin/plugins/ipmi_sensor_u_degrees_c", line 73, in <module>
        CACHEDIR = os.environ['MUNIN_PLUGSTATE']
    NameError: name 'os' is not defined


it would seem the script imports different things for the os library with "from
os import xyz" but does not import the library directly. so near the beginning
when it tries to get a variable from then environment, if crashes.

simple fix would be to add a line "import os" before line 73 like this:

--------- >8 -------------
--- /usr/share/munin/plugins/ipmi_sensor_       2013-06-09 11:41:52.000000000 
-0400
+++ ipmi_sensor_        2013-11-06 00:04:15.689850272 -0500
@@ -63,6 +63,7 @@
 
 
 from subprocess import Popen, PIPE
+import os
 from os import stat, access, R_OK, F_OK
 from os.path import join
 from stat import ST_MTIME
---------- 8< ------------

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

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_CA.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages munin-plugins-extra depends on:
ii  munin-common  2.0.6-4+deb7u1
ii  perl          5.14.2-21+deb7u1

munin-plugins-extra recommends no packages.

Versions of packages munin-plugins-extra suggests:
pn  libnet-netmask-perl  <none>
pn  libnet-telnet-perl   <none>
ii  python               2.7.3-4+deb7u1

-- 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