From: Michael Howe Date: Mon, 7 Jan 2013 14:22:12 +0000 (+0000) Subject: Fix smart_raw_ to actually work X-Git-Tag: 0.5~1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=82a45a6b339b637a7924225fa4965533666d89e0;p=packages%2Fm%2Fmunin-plugins-local.git Fix smart_raw_ to actually work --- diff --git a/debian/changelog b/debian/changelog index 9ea7245..65b0684 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +munin-plugins-local (0.5) unstable; urgency=low + + * Fix smart_raw_ to actually work + + -- Michael Howe Mon, 07 Jan 2013 14:21:35 +0000 + munin-plugins-local (0.4) unstable; urgency=low * Add smart_byid_ until munin changeset 492fb56 makes it in to smart_ diff --git a/plugins/smart_raw_ b/plugins/smart_raw_ index 9167b2f..e828d45 100755 --- a/plugins/smart_raw_ +++ b/plugins/smart_raw_ @@ -230,7 +230,7 @@ def print_unknown_from_statefile(hard_drive,smart_values) : def get_hard_drive_name() : global plugin_name try : - name=[plugin_name[string.index(plugin_name,'_')+1:]] + name=[plugin_name[string.index(plugin_name,'raw_')+4:]] if os.uname()[0]=="SunOS" : try : # if hard_drive name starts with "rdsk" or "rmt", try to reconstruct the path