]> git.michaelhowe.org Git - packages/m/munin-plugins-local.git/commitdiff
Fix smart_raw_ to actually work
authorMichael Howe <michael@michaelhowe.org>
Mon, 7 Jan 2013 14:22:12 +0000 (14:22 +0000)
committerMichael Howe <michael@michaelhowe.org>
Mon, 7 Jan 2013 14:22:12 +0000 (14:22 +0000)
debian/changelog
plugins/smart_raw_

index 9ea72454aee68184469fdabcfb0b2e6aecde2f0e..65b0684d7c222d21faa20dbc7fc4a83af3455bd1 100644 (file)
@@ -1,3 +1,9 @@
+munin-plugins-local (0.5) unstable; urgency=low
+
+  * Fix smart_raw_ to actually work 
+
+ -- Michael Howe <michael@michaelhowe.org>  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_
index 9167b2f27980219afaa6ede8f353b7195303544b..e828d458a2a6eea962cf6479330735f51652f57d 100755 (executable)
@@ -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