]> git.uio.no Git - uio-zabbix.git/commitdiff
Bugfix: rhel5 uses python 2.4 and this version does not support '.. as ..'
authorRafael Martinez <r.m.guerrero@usit.uio.no>
Thu, 5 Nov 2015 13:44:14 +0000 (14:44 +0100)
committerRafael Martinez <r.m.guerrero@usit.uio.no>
Thu, 5 Nov 2015 13:44:14 +0000 (14:44 +0100)
zabbix_filesystem_limits.py
zabbix_filesystems_limits.conf

index 86d72bf4418bae5c3c34b7c81dfa5d92caf79490..c26892520ce8463148885b3161eac5d704ef4d3c 100755 (executable)
@@ -170,7 +170,7 @@ def get_local_filesystem_limits(filesystem,limit_type):
         else:
             print "-1"
 
-    except Exception as e:
+    except Exception,e:
         print e
 
 
@@ -193,6 +193,6 @@ if __name__ == '__main__':
             print 'Format: ' + sys.argv[0] + ' <filesystem> <percent_limit | size_limit>'        
             sys.exit(1)
 
-    except Exception as e:
+    except Exception,e:
         print e
         sys.exit(1)
index c116bce6e0af368e641736ad1099a6a9f5047035..e1bb48f99fabe0f889fa0a015cd035a58a47eb2c 100644 (file)
@@ -22,7 +22,7 @@
 # Only mounted filesystem will be considered when reading filesystems
 # limits definitions in /etc/zabbix_filesystems_limits.conf.
 #
-# One can define <minimun_free_percent_limit> or
+# One can define <max_used_percent_limit> or
 # <minimum_free_size_limit>, or both. Leave the value for a limit
 # empty if you do not want to define it.
 #