]> git.uio.no Git - uio-zabbix.git/commitdiff
Change variable name expanded_files -> expanded_paths
authorRafael Martinez Guerrero <rafael@postgresql.org.es>
Wed, 25 Nov 2015 15:13:23 +0000 (16:13 +0100)
committerRafael Martinez Guerrero <rafael@postgresql.org.es>
Wed, 25 Nov 2015 15:13:23 +0000 (16:13 +0100)
zabbix_filesystem_limits.py

index ffca0be8a70a0e2c6cd5a443bd0e7857ea11d87a..71566b368f735492c83f96ce16170bdcb697d0ad 100755 (executable)
@@ -132,7 +132,7 @@ def get_local_filesystem_limits(filesystem, limit_type):
                         # matches the character '?'.
                         #
 
-                        expanded_files = glob.glob(defined_fs)
+                        expanded_paths = glob.glob(defined_fs)
 
                         #
                         # Only mounted filesystem will be considered when
@@ -140,7 +140,7 @@ def get_local_filesystem_limits(filesystem, limit_type):
                         # /etc/zabbix_filesystems_limits.conf.
                         #
 
-                        for expanded_fs in expanded_files:
+                        for expanded_fs in expanded_paths:
                             if os.path.ismount(expanded_fs):
                                 defined_filesystems[expanded_fs] = [percent_limit, size_limit]
 
@@ -169,8 +169,8 @@ def get_local_filesystem_limits(filesystem, limit_type):
         else:
             print "-1"
 
-    except Exception, e:
-        print e
+    except Exception, exc:
+        raise exc
 
 
 # ############################################