mirror of
https://github.com/limosek/zaf-plugins.git
synced 2025-10-31 17:47:37 +01:00
Released new zaf plugin version
Added documentation
This commit is contained in:
27
fsx/README.md
Normal file
27
fsx/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Plugin fsx
|
||||
|
||||
This plugin can autodiscover filesystem objects. Please note that this report can be very time consuming. This is only proof of concept.
|
||||
Next to this, zabbix user must have permissions to that directories.
|
||||
General fsx.discovery item has this options:
|
||||
```
|
||||
fsx.discovery[/dir,mask,maxdepth,type]
|
||||
```
|
||||
You must use % instead od * to get globing for mask.
|
||||
|
||||
## Example1
|
||||
This example will discover directories under /var/* (one level) and than it will report their usage.
|
||||
```
|
||||
discovery: fsx.discovery[/var,%,1,d]
|
||||
discovered: fsx.pathinfo_du[/var/mail], fsx.pathinfo_du[/var/spool], fsx.pathinfo_du[/var/log], ...
|
||||
```
|
||||
|
||||
## Example2
|
||||
Find all DEADJOE files in /etc and all subdirs
|
||||
discovery: fsx.discovery[/etc,DEADJOE,,f]
|
||||
discovered: fsx.pathinfo_du[/etc/DEADJOE], fsx.pathinfo_du[/etc/postfix/DEADJOE], ...
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<zabbix_export>
|
||||
<version>3.0</version>
|
||||
<date>2016-04-04T13:01:57Z</date>
|
||||
<date>2016-04-09T10:03:07Z</date>
|
||||
<groups>
|
||||
<group>
|
||||
<name>Templates</name>
|
||||
@@ -17,7 +17,17 @@
|
||||
<name>Templates</name>
|
||||
</group>
|
||||
</groups>
|
||||
<applications/>
|
||||
<applications>
|
||||
<application>
|
||||
<name>Filesystems</name>
|
||||
</application>
|
||||
<application>
|
||||
<name>fsx</name>
|
||||
</application>
|
||||
<application>
|
||||
<name>ZAF</name>
|
||||
</application>
|
||||
</applications>
|
||||
<items/>
|
||||
<discovery_rules>
|
||||
<discovery_rule>
|
||||
@@ -54,7 +64,7 @@
|
||||
<description>Discover directories under /var</description>
|
||||
<item_prototypes>
|
||||
<item_prototype>
|
||||
<name>Path {#PATH} items</name>
|
||||
<name>Path {#PATH} disk usage</name>
|
||||
<type>7</type>
|
||||
<snmp_community/>
|
||||
<multiplier>0</multiplier>
|
||||
@@ -88,7 +98,67 @@
|
||||
<port/>
|
||||
<description/>
|
||||
<inventory_link>0</inventory_link>
|
||||
<applications/>
|
||||
<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>Path {#PATH} items</name>
|
||||
<type>7</type>
|
||||
<snmp_community/>
|
||||
<multiplier>0</multiplier>
|
||||
<snmp_oid/>
|
||||
<key>fsx.pathinfo_items[{#PATH}]</key>
|
||||
<delay>600</delay>
|
||||
<history>90</history>
|
||||
<trends>365</trends>
|
||||
<status>0</status>
|
||||
<value_type>3</value_type>
|
||||
<allowed_hosts/>
|
||||
<units>B</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/>
|
||||
|
||||
Reference in New Issue
Block a user