From 497a124d8afcd1e8fd636b03278061dc1245e047 Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Sun, 24 Apr 2016 05:22:57 +0200 Subject: [PATCH] New fsx version --- fsx/control.zaf | 8 +-- fsx/template.xml | 156 ++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 153 insertions(+), 11 deletions(-) diff --git a/fsx/control.zaf b/fsx/control.zaf index c7bf795..a21e75d 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.7 +Version: 0.8 Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/fsx Web: https://github.com/limosek/zaf-plugins/ Maintainer: Lukas Macura @@ -83,7 +83,7 @@ rm -f $tmpf :: /Item -Item pathinfo_type: +Item type: Description:: Type of discovered path (d,f,l) d - directory @@ -109,7 +109,7 @@ esac :: /Item: -Item pathinfo_du: +Item du: Description:: Disk usage of discovered path in bytes :: @@ -131,7 +131,7 @@ du -sb "$path" | (read sum dir; echo $sum) :: /Item: -Item pathinfo_items: +Item items: Description:: Number of items in discovered path (dirs+files+rest) :: diff --git a/fsx/template.xml b/fsx/template.xml index f3f86f6..63a04da 100644 --- a/fsx/template.xml +++ b/fsx/template.xml @@ -1,7 +1,7 @@ 3.0 - 2016-04-09T10:03:07Z + 2016-04-24T03:21:23Z Templates @@ -30,12 +30,150 @@ + + ZAF fsx discovery of certificates in {$FSX_CERT_DIR} + 7 + + + fsx.discovery[{$FSX_CERT_DIR},%.pem,1,f,name/+,100,{$FSX_USER}] + 300 + 0 + + + + 0 + 0 + + 0 + + + + + 0 + + + + + + + 0 + + + + 30 + Discover certificates {$FSX_CERT_DIR} + + + Certificate path type (should be 'd' anytime) + 7 + + 0 + + fsx.type[{#PATH},{$FSX_USER}] + 600 + 90 + 0 + 0 + 1 + + + 0 + + + 0 + 0 + + 0 + + 1 + + + + 0 + 0 + + + + + + + 0 + + + Filesystems + + + fsx + + + ZAF + + + + + + + + Certificate hash + 7 + + 0 + + vfs.file.md5sum[{#PATH}] + 600 + 90 + 0 + 0 + 1 + + + 0 + + + 0 + 0 + + 0 + + 1 + + + + 0 + 0 + + + + + + + 0 + + + Filesystems + + + fsx + + + ZAF + + + + + + + + + + + ZAF fsx discovery of biggest directories in {$FSX_DIR} 7 - fsx.discovery[{$FSX_USER},{$FSX_DIR},%,100,d,du/-,100] + fsx.discovery[{$FSX_DIR},%,100,d,du/-,100,{$FSX_USER}] 300 0 @@ -69,7 +207,7 @@ 0 - fsx.pathinfo_du[{$FSX_USER},{#PATH}] + fsx.du[{#PATH},{$FSX_USER}] 600 90 365 @@ -119,7 +257,7 @@ 0 - fsx.pathinfo_items[{$FSX_USER},{#PATH}] + fsx.items[{#PATH},{$FSX_USER}] 600 90 365 @@ -170,15 +308,19 @@ - + {$FSX_USER} zabbix - + {$FSX_DIR} /var/ - + + {$FSX_CERT_DIR} + /etc/ssl + +