1
0
mirror of https://github.com/limosek/zaf-plugins.git synced 2024-11-01 08:17:19 +01:00
limosek-zaf-plugins/fsx
2016-04-14 10:00:20 +02:00
..
control.zaf fsx: precache is working now and discovering most direcories usage 2016-04-14 10:00:20 +02:00
README.md Released new zaf plugin version 2016-04-09 12:23:40 +02:00
template.xml Updated fsx plugin with precache and testparms 2016-04-13 16:04:57 +02:00

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], ...