Xymon Mailing List Archive search

Multiple TRACK for dir usage

2 messages in this thread

list Deepak Deore · Tue, 11 Jun 2013 17:45:11 +0530 ·
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"

Thanks,
Deepak
list Martin Flemming · Tue, 11 Jun 2013 15:42:58 +0200 (CEST) ·
quoted from Deepak Deore
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