Xymon Mailing List Archive search

Multiple TRACK for dir usage

list Martin Flemming
Tue, 11 Jun 2013 15:42:58 +0200 (CEST)
Message-Id: <user-a67fa2634662@xymon.invalid>

On Tue, 11 Jun 2013, deepak deore wrote:
I am using below configuration in analysis.cfg (we dont want any alert). Just wanted to know is there a way to do it in
one line ?

Suppose I have 10 dir to check usage for then i will have to add 10 DIR lines which I wanted to avoid.

DIR /tmp TRACK="tmp"
DIR /var TRACK="var"
Hi !

Something like

in analysis.cfg

HOST=mystphi
DIR %^/scratch/.* TRACK

and in client-local.cfg

[mystphi]
dir:`find /scratch -maxdepth 1 -type d`

should work

Cheers,
 	martin