Subject: munin-plugins-extra: ipmi_sensor_ plugin broken: NameError: name 'os' is not defined Package: munin-plugins-extra Version: 2.0.6-1~bpo60+1 Severity: normal
*** Please type your report below this line *** After upgrading from 2.0.0-1~bpo60+1 to 2.0.6-1~bpo60+1 munin-node.log began reporting the following plugin errors: 2012/09/07-14:10:22 [28794] Error output from ipmi_sensor_u_degrees_c: 2012/09/07-14:10:22 [28794] Traceback (most recent call last): 2012/09/07-14:10:22 [28794] File "/etc/munin/plugins/ipmi_sensor_u_degrees_c", line 73, in <module> 2012/09/07-14:10:22 [28794] CACHEDIR = os.environ['MUNIN_PLUGSTATE'] 2012/09/07-14:10:22 [28794] NameError: name 'os' is not defined 2012/09/07-14:10:22 [28794] Service 'ipmi_sensor_u_degrees_c' exited with status 1/0. Looks like with the new plugin-state layout in this upgrade some code changes went untested. I fixed the bug by adding 'import os' to the Python script. -- System Information: Debian Release: 6.0.5 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages munin-plugins-extra depends on: ii munin-common 2.0.6-1~bpo60+1 network-wide graphing framework (c ii perl 5.10.1-17squeeze3 Larry Wall's Practical Extraction munin-plugins-extra recommends no packages. Versions of packages munin-plugins-extra suggests: pn libnet-netmask-perl <none> (no description available) pn libnet-telnet-perl <none> (no description available) ii python 2.6.6-3+squeeze7 interactive high-level object-orie -- no debconf information -- Gerald Turner Email: gtur...@unzane.com JID: gtur...@unzane.com GPG: 0xFA8CD6D5 21D9 B2E8 7FE7 F19E 5F7D 4D0C 3FA0 810F FA8C D6D5
pgpYGR9EeSX1C.pgp
Description: PGP signature