1
0
mirror of https://github.com/limosek/zaf-plugins.git synced 2025-05-10 05:24:24 +02:00

New fsx version

This commit is contained in:
Lukas Macura 2016-04-24 05:22:57 +02:00
parent ddd1a14c3a
commit 497a124d8a
2 changed files with 153 additions and 11 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.7 Version: 0.8
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>
@ -83,7 +83,7 @@ rm -f $tmpf
:: ::
/Item /Item
Item pathinfo_type: Item type:
Description:: Description::
Type of discovered path (d,f,l) Type of discovered path (d,f,l)
d - directory d - directory
@ -109,7 +109,7 @@ esac
:: ::
/Item: /Item:
Item pathinfo_du: Item du:
Description:: Description::
Disk usage of discovered path in bytes Disk usage of discovered path in bytes
:: ::
@ -131,7 +131,7 @@ du -sb "$path" | (read sum dir; echo $sum)
:: ::
/Item: /Item:
Item pathinfo_items: Item items:
Description:: Description::
Number of items in discovered path (dirs+files+rest) Number of items in discovered path (dirs+files+rest)
:: ::

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<zabbix_export> <zabbix_export>
<version>3.0</version> <version>3.0</version>
<date>2016-04-09T10:03:07Z</date> <date>2016-04-24T03:21:23Z</date>
<groups> <groups>
<group> <group>
<name>Templates</name> <name>Templates</name>
@ -30,12 +30,150 @@
</applications> </applications>
<items/> <items/>
<discovery_rules> <discovery_rules>
<discovery_rule>
<name>ZAF fsx discovery of certificates in {$FSX_CERT_DIR}</name>
<type>7</type>
<snmp_community/>
<snmp_oid/>
<key>fsx.discovery[{$FSX_CERT_DIR},%.pem,1,f,name/+,100,{$FSX_USER}]</key>
<delay>300</delay>
<status>0</status>
<allowed_hosts/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<delay_flex/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<filter>
<evaltype>0</evaltype>
<formula/>
<conditions/>
</filter>
<lifetime>30</lifetime>
<description>Discover certificates {$FSX_CERT_DIR}</description>
<item_prototypes>
<item_prototype>
<name>Certificate path type (should be 'd' anytime)</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>fsx.type[{#PATH},{$FSX_USER}]</key>
<delay>600</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Filesystems</name>
</application>
<application>
<name>fsx</name>
</application>
<application>
<name>ZAF</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Certificate hash</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>vfs.file.md5sum[{#PATH}]</key>
<delay>600</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Filesystems</name>
</application>
<application>
<name>fsx</name>
</application>
<application>
<name>ZAF</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
</item_prototypes>
<trigger_prototypes/>
<graph_prototypes/>
<host_prototypes/>
</discovery_rule>
<discovery_rule> <discovery_rule>
<name>ZAF fsx discovery of biggest directories in {$FSX_DIR}</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},{$FSX_DIR},%,100,d,du/-,100]</key> <key>fsx.discovery[{$FSX_DIR},%,100,d,du/-,100,{$FSX_USER}]</key>
<delay>300</delay> <delay>300</delay>
<status>0</status> <status>0</status>
<allowed_hosts/> <allowed_hosts/>
@ -69,7 +207,7 @@
<snmp_community/> <snmp_community/>
<multiplier>0</multiplier> <multiplier>0</multiplier>
<snmp_oid/> <snmp_oid/>
<key>fsx.pathinfo_du[{$FSX_USER},{#PATH}]</key> <key>fsx.du[{#PATH},{$FSX_USER}]</key>
<delay>600</delay> <delay>600</delay>
<history>90</history> <history>90</history>
<trends>365</trends> <trends>365</trends>
@ -119,7 +257,7 @@
<snmp_community/> <snmp_community/>
<multiplier>0</multiplier> <multiplier>0</multiplier>
<snmp_oid/> <snmp_oid/>
<key>fsx.pathinfo_items[{$FSX_USER},{#PATH}]</key> <key>fsx.items[{#PATH},{$FSX_USER}]</key>
<delay>600</delay> <delay>600</delay>
<history>90</history> <history>90</history>
<trends>365</trends> <trends>365</trends>
@ -170,15 +308,19 @@
</discovery_rule> </discovery_rule>
</discovery_rules> </discovery_rules>
<macros> <macros>
<macro> <macro>
<macro>{$FSX_USER}</macro> <macro>{$FSX_USER}</macro>
<value>zabbix</value> <value>zabbix</value>
</macro> </macro>
<macro> <macro>
<macro>{$FSX_DIR}</macro> <macro>{$FSX_DIR}</macro>
<value>/var/</value> <value>/var/</value>
</macro> </macro>
</macros> <macro>
<macro>{$FSX_CERT_DIR}</macro>
<value>/etc/ssl</value>
</macro>
</macros>
<templates/> <templates/>
<screens/> <screens/>
</template> </template>