mirror of
https://github.com/limosek/zaf-plugins.git
synced 2025-01-21 07:25:56 +01:00
New version of fsx plugin with updated template
This commit is contained in:
parent
af41b39533
commit
a1dc95674f
@ -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 <lukas@macura.cz>
|
||||
@ -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."
|
||||
|
||||
|
@ -31,11 +31,11 @@
|
||||
<items/>
|
||||
<discovery_rules>
|
||||
<discovery_rule>
|
||||
<name>ZAF fsx discovery of biggest directories in /var</name>
|
||||
<name>ZAF fsx discovery of biggest directories in {$FSX_DIR}</name>
|
||||
<type>7</type>
|
||||
<snmp_community/>
|
||||
<snmp_oid/>
|
||||
<key>fsx.discovery[{$FSX_USER},/var/,%,100,d,du/-,100]</key>
|
||||
<key>fsx.discovery[{$FSX_USER},{$FSX_DIR},%,100,d,du/-,100]</key>
|
||||
<delay>300</delay>
|
||||
<status>0</status>
|
||||
<allowed_hosts/>
|
||||
@ -61,7 +61,7 @@
|
||||
<conditions/>
|
||||
</filter>
|
||||
<lifetime>30</lifetime>
|
||||
<description>Discover directories under /var</description>
|
||||
<description>Discover directories under {$FSX_DIR}</description>
|
||||
<item_prototypes>
|
||||
<item_prototype>
|
||||
<name>Path {#PATH} disk usage</name>
|
||||
@ -169,7 +169,16 @@
|
||||
<host_prototypes/>
|
||||
</discovery_rule>
|
||||
</discovery_rules>
|
||||
<macros/>
|
||||
<macros>
|
||||
<macro>
|
||||
<macro>{$FSX_USER}</macro>
|
||||
<value>zabbix</value>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$FSX_DIR}</macro>
|
||||
<value>/var/</value>
|
||||
</macro>
|
||||
</macros>
|
||||
<templates/>
|
||||
<screens/>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user