1
0
mirror of https://github.com/limosek/zaf-plugins.git synced 2025-01-21 23:45:56 +01:00

New version of fsx plugin with updated template

This commit is contained in:
Lukas Macura 2016-04-19 10:41:34 +02:00
parent af41b39533
commit a1dc95674f
2 changed files with 18 additions and 9 deletions

View File

@ -4,7 +4,7 @@ Description::
Plugin which will make deeper look into directory structure using discovery 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 Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/fsx
Web: https://github.com/limosek/zaf-plugins/ Web: https://github.com/limosek/zaf-plugins/
Maintainer: Lukas Macura <lukas@macura.cz> Maintainer: Lukas Macura <lukas@macura.cz>
@ -49,7 +49,7 @@ asroot|root)
aszabbix|zabbix) aszabbix|zabbix)
shift;; shift;;
esac esac
. $ZAF_LIB_DIR/preload.sh {INCLUDES}
[ "$#" -lt 6 ] && zaf_err "Bad parameters!" [ "$#" -lt 6 ] && zaf_err "Bad parameters!"
dir="$1" dir="$1"
@ -98,7 +98,7 @@ asroot|root)
aszabbix|zabbix) aszabbix|zabbix)
shift;; shift;;
esac esac
. $ZAF_LIB_DIR/preload.sh {INCLUDES}
[ -z "$1" ] && zaf_err "Directory must be entered." [ -z "$1" ] && zaf_err "Directory must be entered."
@ -126,7 +126,7 @@ asroot|root)
aszabbix|zabbix) aszabbix|zabbix)
shift;; shift;;
esac esac
. $ZAF_LIB_DIR/preload.sh {INCLUDES}
[ -z "$1" ] && zaf_err "Directory must be entered." [ -z "$1" ] && zaf_err "Directory must be entered."
@ -151,7 +151,7 @@ asroot|root)
aszabbix|zabbix) aszabbix|zabbix)
shift;; shift;;
esac esac
. $ZAF_LIB_DIR/preload.sh {INCLUDES}
[ -z "$1" ] && zaf_err "Directory must be entered." [ -z "$1" ] && zaf_err "Directory must be entered."

View File

@ -31,11 +31,11 @@
<items/> <items/>
<discovery_rules> <discovery_rules>
<discovery_rule> <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> <type>7</type>
<snmp_community/> <snmp_community/>
<snmp_oid/> <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> <delay>300</delay>
<status>0</status> <status>0</status>
<allowed_hosts/> <allowed_hosts/>
@ -61,7 +61,7 @@
<conditions/> <conditions/>
</filter> </filter>
<lifetime>30</lifetime> <lifetime>30</lifetime>
<description>Discover directories under /var</description> <description>Discover directories under {$FSX_DIR}</description>
<item_prototypes> <item_prototypes>
<item_prototype> <item_prototype>
<name>Path {#PATH} disk usage</name> <name>Path {#PATH} disk usage</name>
@ -169,7 +169,16 @@
<host_prototypes/> <host_prototypes/>
</discovery_rule> </discovery_rule>
</discovery_rules> </discovery_rules>
<macros/> <macros>
<macro>
<macro>{$FSX_USER}</macro>
<value>zabbix</value>
</macro>
<macro>
<macro>{$FSX_DIR}</macro>
<value>/var/</value>
</macro>
</macros>
<templates/> <templates/>
<screens/> <screens/>
</template> </template>