From a1dc95674f199a5975da06e2a0c02652daab4ad9 Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Tue, 19 Apr 2016 10:41:34 +0200 Subject: [PATCH] New version of fsx plugin with updated template --- fsx/control.zaf | 10 +++++----- fsx/template.xml | 17 +++++++++++++---- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/fsx/control.zaf b/fsx/control.zaf index 0bd49cd..9918adb 100644 --- a/fsx/control.zaf +++ b/fsx/control.zaf @@ -4,7 +4,7 @@ Description:: Plugin which will make deeper look into directory structure using discovery :: -Version: 0.5 +Version: 0.6 Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/fsx Web: https://github.com/limosek/zaf-plugins/ Maintainer: Lukas Macura @@ -49,7 +49,7 @@ asroot|root) aszabbix|zabbix) shift;; esac -. $ZAF_LIB_DIR/preload.sh +{INCLUDES} [ "$#" -lt 6 ] && zaf_err "Bad parameters!" dir="$1" @@ -98,7 +98,7 @@ asroot|root) aszabbix|zabbix) shift;; esac -. $ZAF_LIB_DIR/preload.sh +{INCLUDES} [ -z "$1" ] && zaf_err "Directory must be entered." @@ -126,7 +126,7 @@ asroot|root) aszabbix|zabbix) shift;; esac -. $ZAF_LIB_DIR/preload.sh +{INCLUDES} [ -z "$1" ] && zaf_err "Directory must be entered." @@ -151,7 +151,7 @@ asroot|root) aszabbix|zabbix) shift;; esac -. $ZAF_LIB_DIR/preload.sh +{INCLUDES} [ -z "$1" ] && zaf_err "Directory must be entered." diff --git a/fsx/template.xml b/fsx/template.xml index 9363a4a..f3f86f6 100644 --- a/fsx/template.xml +++ b/fsx/template.xml @@ -31,11 +31,11 @@ - ZAF fsx discovery of biggest directories in /var + ZAF fsx discovery of biggest directories in {$FSX_DIR} 7 - fsx.discovery[{$FSX_USER},/var/,%,100,d,du/-,100] + fsx.discovery[{$FSX_USER},{$FSX_DIR},%,100,d,du/-,100] 300 0 @@ -61,7 +61,7 @@ 30 - Discover directories under /var + Discover directories under {$FSX_DIR} Path {#PATH} disk usage @@ -169,7 +169,16 @@ - + + + {$FSX_USER} + zabbix + + + {$FSX_DIR} + /var/ + +