Xymon Mailing List Archive search

monitor a directory size

16 messages in this thread

list Kevin Kelly · Wed, 15 Sep 2010 08:51:30 -0500 ·
I am trying to use the DIR in hobbit-client.cfg, but not having any
luck. Does anyone use this?

 
Xymon server- hobbit-client.cfg

Syntax that I used:

DIR         /var/adm  yellow SIZE>10m track

 
Client- localclient.cfg

DIR /var/adm

 
Any suggestions?


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Steve Holmes · Wed, 15 Sep 2010 09:59:07 -0400 ·
quoted from Kevin Kelly
On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid> wrote:
 I am trying to use the DIR in hobbit-client.cfg, but not having any luck.
Does anyone use this?


Xymon server- hobbit-client.cfg

Syntax that I used:

DIR         /var/adm  yellow SIZE>10m track


Client- localclient.cfg

DIR /var/adm


Any suggestions?

Try putting the word yellow after the SIZE>10m.

Steve
-- 

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)
list Kevin Kelly · Wed, 15 Sep 2010 14:32:01 -0500 ·
That had no effect!

 
From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size
quoted from Steve Holmes

 
On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?

	 
	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track

	 
	Client- localclient.cfg

	DIR /var/adm

	 
	Any suggestions?

	 
Try putting the word yellow after the SIZE>10m. 

 
Steve
-- 

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948) 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Doug Williams · Wed, 15 Sep 2010 15:30:42 -0600 ·
You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if
greater than 10m.  
quoted from Kevin Kelly


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid] 
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!

 
From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size

 
On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?

	 
	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track

	 
	Client- localclient.cfg

	DIR /var/adm

	 
	Any suggestions?

	 
Try putting the word yellow after the SIZE>10m. 

 
Steve
-- 

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948) 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Kevin Kelly · Thu, 16 Sep 2010 07:39:41 -0500 ·
Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC) [mailto:user-2bde7ec54a85@xymon.invalid] 
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if
greater than 10m.  


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid] 
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!

 
From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size

 
On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?

	 
	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track

	 
	Client- localclient.cfg

	DIR /var/adm

	 
	Any suggestions?

	 
Try putting the word yellow after the SIZE>10m. 

 
Steve
-- 

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948) 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Johan Sjöberg · Thu, 16 Sep 2010 14:47:10 +0200 ·
Have you added it to client-local.cfg as well?

/Johan
quoted from Kevin Kelly

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid] 
Sent: den 16 september 2010 14:40
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC) [mailto:user-2bde7ec54a85@xymon.invalid]
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if greater than 10m.  


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!

 
From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf Of Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size

 
On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having any luck. Does anyone use this?

	 
	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track

	 
	Client- localclient.cfg

	DIR /var/adm

	 
	Any suggestions?

	 
Try putting the word yellow after the SIZE>10m. 

 
Steve
-- 

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948) 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email _____________________________________________________________________


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Kevin Kelly · Thu, 16 Sep 2010 08:08:11 -0500 ·
I did add it to client-local.cfg on the client server, is client-local.cfg a different file? 
quoted from Johan Sjöberg

-----Original Message-----
From: Johan Sjöberg [mailto:user-74c177c1220d@xymon.invalid] 
Sent: Thursday, September 16, 2010 7:47 AM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Have you added it to client-local.cfg as well?

/Johan

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid] 
Sent: den 16 september 2010 14:40
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC) [mailto:user-2bde7ec54a85@xymon.invalid]
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if greater than 10m.  


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!

 
From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf Of Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size

 
On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having any luck. Does anyone use this?

	 
	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track

	 
	Client- localclient.cfg

	DIR /var/adm

	 
	Any suggestions?

	 
Try putting the word yellow after the SIZE>10m. 

 
Steve
-- 

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948) 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email _____________________________________________________________________


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Johan Sjöberg · Thu, 16 Sep 2010 15:21:23 +0200 ·
I don't understand exactly what you mean, but you need to add it both to client-local.cfg and to hobbit-clients.cfg. Both these files are located on the Xymon server. Client-local.cfg tells the client to send information about that directory to the Xymon server, and hobbit-clients.cfg tells the server what to alert on in that information.
quoted from Kevin Kelly

/Johan
-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 15:08
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

I did add it to client-local.cfg on the client server, is client-local.cfg a different
file?

-----Original Message-----
From: Johan Sjöberg [mailto:user-74c177c1220d@xymon.invalid]
Sent: Thursday, September 16, 2010 7:47 AM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Have you added it to client-local.cfg as well?

/Johan

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 14:40
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC) [mailto:user-2bde7ec54a85@xymon.invalid]
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if greater than
10m.


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!


From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size


On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?


	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track


	Client- localclient.cfg

	DIR /var/adm


	Any suggestions?


Try putting the word yellow after the SIZE>10m.


Steve
--

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

list Martin Flemming · Thu, 16 Sep 2010 15:44:09 +0200 (CEST) ·
You've have to add

dir:`du -k /var/adm`

in your client-local.cfg ...

then you've got hte size of your directory
https://it-xymon3.desy.de/xymon/help/manpages/man5/client-local.cfg.5.html

cheers,
 	martin
quoted from Johan Sjöberg

On Thu, 16 Sep 2010, Johan Sjöberg wrote:
I don't understand exactly what you mean, but you need to add it both to client-local.cfg and to hobbit-clients.cfg. Both these files are located on the Xymon server. Client-local.cfg tells the client to send information about that directory to the Xymon server, and hobbit-clients.cfg tells the server what to alert on in that information.

/Johan
-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 15:08
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

I did add it to client-local.cfg on the client server, is client-local.cfg a different
file?

-----Original Message-----
From: Johan Sjöberg [mailto:user-74c177c1220d@xymon.invalid]
Sent: Thursday, September 16, 2010 7:47 AM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Have you added it to client-local.cfg as well?

/Johan

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 14:40
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC) [mailto:user-2bde7ec54a85@xymon.invalid]
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if greater than
10m.


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!


From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size


On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?


	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track


	Client- localclient.cfg

	DIR /var/adm


	Any suggestions?


Try putting the word yellow after the SIZE>10m.


Steve
--

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

list Tony Larco · Thu, 16 Sep 2010 09:44:15 -0400 ·
Try instead of 10m to 10240 w/o the m at the end.  I also do not have
the track directive on the end of mine line and its working here.   Did
you also define the directory in your clients-local.cfg file?  HTH.
quoted from Kevin Kelly

On 09/16/2010 08:39 AM, Kevin Kelly wrote:
Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC) [mailto:user-2bde7ec54a85@xymon.invalid] 
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if
greater than 10m.  


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid] 
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!

 
From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size

 
On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?

	 
	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track

	 
	Client- localclient.cfg

	DIR /var/adm

	 
	Any suggestions?

	 
Try putting the word yellow after the SIZE>10m. 

 
Steve
list Johan Sjöberg · Thu, 16 Sep 2010 16:08:54 +0200 ·
When I read that man-page, I understand it as du is always run on the directory that is specified in dir:DIRECTORYNAME

So you should only add this to the correct host in client-local.cfg.
dir:/var/adm


From the man-page:
"A directory monitoring entry is used to watch the size of a directory and any sub-directories. It looks like this:


    dir:DIRECTORYNAME

The dir:DIRECTORYNAME line defines the filename of the file to monitor. As with the "log:" entries, a filename enclosed in backticks means a command which will generate the filenames dynamically. The Xymon client will run the du(1) command with the directoryname as parameter, and send the output back to the Xymon server."

/Johan
quoted from Martin Flemming
-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: den 16 september 2010 15:44
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size


You've have to add

dir:`du -k /var/adm`

in your client-local.cfg ...

then you've got hte size of your directory

https://it-xymon3.desy.de/xymon/help/manpages/man5/client-
local.cfg.5.html
quoted from Martin Flemming

cheers,
 	martin

On Thu, 16 Sep 2010, Johan Sjöberg wrote:
I don't understand exactly what you mean, but you need to add it both to
client-local.cfg and to hobbit-clients.cfg. Both these files are located on the
Xymon server. Client-local.cfg tells the client to send information about that
directory to the Xymon server, and hobbit-clients.cfg tells the server what
to alert on in that information.
/Johan
-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 15:08
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

I did add it to client-local.cfg on the client server, is client-local.cfg a
different
file?

-----Original Message-----
From: Johan Sjöberg [mailto:user-74c177c1220d@xymon.invalid]
Sent: Thursday, September 16, 2010 7:47 AM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Have you added it to client-local.cfg as well?

/Johan

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 14:40
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC)
[mailto:user-2bde7ec54a85@xymon.invalid]
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if greater
than
10m.


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!


From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf
Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size


On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?


	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track


	Client- localclient.cfg

	DIR /var/adm


	Any suggestions?


Try putting the word yellow after the SIZE>10m.


Steve
--

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

list Patrick Nixon · Thu, 16 Sep 2010 10:52:44 -0400 ·
This is the line from hobbit-clients.cfg that works:
  DIR /u01/app/oracle/diag/tnslsnr/stmmdb2/listener/alert/RED
SIZE<20100100100 TRACK

I don't have a corresponding client-local.cfg due to our environment

--Patrick


On Thu, Sep 16, 2010 at 10:08 AM, Johan Sjöberg <
quoted from Johan Sjöberg
user-74c177c1220d@xymon.invalid> wrote:
When I read that man-page, I understand it as du is always run on the
directory that is specified in dir:DIRECTORYNAME

So you should only add this to the correct host in client-local.cfg.
dir:/var/adm


From the man-page:
"A directory monitoring entry is used to watch the size of a directory and
any sub-directories. It looks like this:


   dir:DIRECTORYNAME

The dir:DIRECTORYNAME line defines the filename of the file to monitor. As
with the "log:" entries, a filename enclosed in backticks means a command
which will generate the filenames dynamically. The Xymon client will run the
du(1) command with the directoryname as parameter, and send the output back
to the Xymon server."

/Johan
-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: den 16 september 2010 15:44
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size


You've have to add

dir:`du -k /var/adm`

in your client-local.cfg ...

then you've got hte size of your directory
https://it-xymon3.desy.de/xymon/help/manpages/man5/client-
local.cfg.5.html

cheers,
      martin

On Thu, 16 Sep 2010, Johan Sjöberg wrote:
I don't understand exactly what you mean, but you need to add it both
to
client-local.cfg and to hobbit-clients.cfg. Both these files are located
on the
Xymon server. Client-local.cfg tells the client to send information about
that
directory to the Xymon server, and hobbit-clients.cfg tells the server
what
to alert on in that information.
/Johan
-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 15:08
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

I did add it to client-local.cfg on the client server, is
client-local.cfg a
different
file?

-----Original Message-----
From: Johan Sjöberg [mailto:user-74c177c1220d@xymon.invalid]
Sent: Thursday, September 16, 2010 7:47 AM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Have you added it to client-local.cfg as well?

/Johan

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 14:40
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC)
[mailto:user-2bde7ec54a85@xymon.invalid]
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if
greater
than
10m.


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!


From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf
Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size


On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

   I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?


   Xymon server- hobbit-client.cfg

   Syntax that I used:

   DIR         /var/adm  yellow SIZE>10m track


   Client- localclient.cfg

   DIR /var/adm


   Any suggestions?


Try putting the word yellow after the SIZE>10m.


Steve
--

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

list Martin Flemming · Thu, 16 Sep 2010 18:47:31 +0200 (CEST) ·
Grmmph, you are right ..

But what'S your exactly problem ...

No alert or no real test and graph  for this directory ?
quoted from Patrick Nixon

cheers,
 	martin

On Thu, 16 Sep 2010, Johan Sjöberg wrote:
When I read that man-page, I understand it as du is always run on the directory that is specified in dir:DIRECTORYNAME

So you should only add this to the correct host in client-local.cfg.
dir:/var/adm


From the man-page:
"A directory monitoring entry is used to watch the size of a directory and any sub-directories. It looks like this:


   dir:DIRECTORYNAME

The dir:DIRECTORYNAME line defines the filename of the file to monitor. As with the "log:" entries, a filename enclosed in backticks means a command which will generate the filenames dynamically. The Xymon client will run the du(1) command with the directoryname as parameter, and send the output back to the Xymon server."

/Johan
-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: den 16 september 2010 15:44
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size


You've have to add

dir:`du -k /var/adm`

in your client-local.cfg ...

then you've got hte size of your directory
https://it-xymon3.desy.de/xymon/help/manpages/man5/client-
local.cfg.5.html

cheers,
 	martin

On Thu, 16 Sep 2010, Johan Sjöberg wrote:
I don't understand exactly what you mean, but you need to add it both to
client-local.cfg and to hobbit-clients.cfg. Both these files are located on the
Xymon server. Client-local.cfg tells the client to send information about that
directory to the Xymon server, and hobbit-clients.cfg tells the server what
to alert on in that information.
/Johan
-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 15:08
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

I did add it to client-local.cfg on the client server, is client-local.cfg a
different
file?

-----Original Message-----
From: Johan Sjöberg [mailto:user-74c177c1220d@xymon.invalid]
Sent: Thursday, September 16, 2010 7:47 AM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Have you added it to client-local.cfg as well?

/Johan

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 14:40
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC)
[mailto:user-2bde7ec54a85@xymon.invalid]
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if greater
than
10m.


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!


From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf
Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size


On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?


	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track


	Client- localclient.cfg

	DIR /var/adm


	Any suggestions?


Try putting the word yellow after the SIZE>10m.


Steve
--

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Tony Larco · Thu, 16 Sep 2010 13:34:43 -0400 ·
*I think* there is something in the man page or on the mailing list (i
forget where) that said that if you use the DIR directive, it uses du
and you have to specify the size in bytes, so 10m wont work in this
case.  Check the mailing list archives about this.. there is some help
out there.  HTH

Tony
quoted from Martin Flemming

On 09/16/2010 12:47 PM, Martin Flemming wrote:
Grmmph, you are right ..

But what'S your exactly problem ...

No alert or no real test and graph  for this directory ?

cheers,
    martin

On Thu, 16 Sep 2010, Johan Sjöberg wrote:
When I read that man-page, I understand it as du is always run on the
directory that is specified in dir:DIRECTORYNAME

So you should only add this to the correct host in client-local.cfg.
dir:/var/adm


From the man-page:
"A directory monitoring entry is used to watch the size of a
directory and any sub-directories. It looks like this:


   dir:DIRECTORYNAME

The dir:DIRECTORYNAME line defines the filename of the file to
monitor. As with the "log:" entries, a filename enclosed in backticks
means a command which will generate the filenames dynamically. The
Xymon client will run the du(1) command with the directoryname as
parameter, and send the output back to the Xymon server."

/Johan
-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: den 16 september 2010 15:44
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size


You've have to add

dir:`du -k /var/adm`

in your client-local.cfg ...

then you've got hte size of your directory
https://it-xymon3.desy.de/xymon/help/manpages/man5/client-
local.cfg.5.html

cheers,
     martin

On Thu, 16 Sep 2010, Johan Sjöberg wrote:
I don't understand exactly what you mean, but you need to add it
both to
client-local.cfg and to hobbit-clients.cfg. Both these files are
located on the
Xymon server. Client-local.cfg tells the client to send information
about that
directory to the Xymon server, and hobbit-clients.cfg tells the
server what
to alert on in that information.
/Johan
-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 15:08
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

I did add it to client-local.cfg on the client server, is
client-local.cfg a
different
file?

-----Original Message-----
From: Johan Sjöberg [mailto:user-74c177c1220d@xymon.invalid]
Sent: Thursday, September 16, 2010 7:47 AM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Have you added it to client-local.cfg as well?

/Johan

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 14:40
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC)
[mailto:user-2bde7ec54a85@xymon.invalid]
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if
greater
than
10m.


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!


From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf
Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size


On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

    I am trying to use the DIR in hobbit-client.cfg, but not having
any luck. Does anyone use this?


    Xymon server- hobbit-client.cfg

    Syntax that I used:

    DIR         /var/adm  yellow SIZE>10m track


    Client- localclient.cfg

    DIR /var/adm


    Any suggestions?


Try putting the word yellow after the SIZE>10m.


Steve
-- 

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid

list Kevin Kelly · Thu, 16 Sep 2010 14:15:11 -0500 ·
I finally got it to work with the following 

In hobbit-clients.cfg
	HOST=testserver
	   DIR	/var/adm  SIZE<1g yellow track

In client-local.cfg
	[testserver]
	dir:/var/adm

Now the files column shows up yellow when /var/adm grows over 1g in size and also graphs.

Thanks to those who helped!
quoted from Martin Flemming

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] 
Sent: Thursday, September 16, 2010 11:48 AM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size


Grmmph, you are right ..

But what'S your exactly problem ...

No alert or no real test and graph  for this directory ?

cheers,
 	martin

On Thu, 16 Sep 2010, Johan Sjöberg wrote:
When I read that man-page, I understand it as du is always run on the 
directory that is specified in dir:DIRECTORYNAME

So you should only add this to the correct host in client-local.cfg.
dir:/var/adm


From the man-page:
"A directory monitoring entry is used to watch the size of a directory and any sub-directories. It looks like this:


   dir:DIRECTORYNAME

The dir:DIRECTORYNAME line defines the filename of the file to monitor. As with the "log:" entries, a filename enclosed in backticks means a command which will generate the filenames dynamically. The Xymon client will run the du(1) command with the directoryname as parameter, and send the output back to the Xymon server."

/Johan
-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: den 16 september 2010 15:44
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size


You've have to add

dir:`du -k /var/adm`

in your client-local.cfg ...

then you've got hte size of your directory
https://it-xymon3.desy.de/xymon/help/manpages/man5/client-
local.cfg.5.html

cheers,
 	martin

On Thu, 16 Sep 2010, Johan Sjöberg wrote:
I don't understand exactly what you mean, but you need to add it 
both to
client-local.cfg and to hobbit-clients.cfg. Both these files are 
located on the Xymon server. Client-local.cfg tells the client to 
send information about that directory to the Xymon server, and 
hobbit-clients.cfg tells the server what to alert on in that information.

/Johan
-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 15:08
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

I did add it to client-local.cfg on the client server, is 
client-local.cfg a
different
file?

-----Original Message-----
From: Johan Sjöberg [mailto:user-74c177c1220d@xymon.invalid]
Sent: Thursday, September 16, 2010 7:47 AM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Have you added it to client-local.cfg as well?

/Johan

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: den 16 september 2010 14:40
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

Still nothing!

-----Original Message-----
From: Williams, Doug (Consultant-RIC)
[mailto:user-2bde7ec54a85@xymon.invalid]
Sent: Wednesday, September 15, 2010 4:31 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

You need to reverse  SIZE>10m to SIZE<10m  if wanting to alert if 
greater
than
10m.


-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Wednesday, September 15, 2010 3:32 PM
To: xymon at xymon.com
Subject: RE: [xymon] monitor a directory size

That had no effect!


From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf
Of
Steve Holmes
Sent: Wednesday, September 15, 2010 8:59 AM
To: xymon at xymon.com
Subject: Re: [xymon] monitor a directory size


On Wed, Sep 15, 2010 at 9:51 AM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

	I am trying to use the DIR in hobbit-client.cfg, but not having 
any luck. Does anyone use this?


	Xymon server- hobbit-client.cfg

	Syntax that I used:

	DIR         /var/adm  yellow SIZE>10m track


	Client- localclient.cfg

	DIR /var/adm


	Any suggestions?


Try putting the word yellow after the SIZE>10m.


Steve
--

Truth never damages a cause that is just. -Mohandas Karamchand 
Gandhi
(1869-1948)


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 

Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid

This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Henrik Størner · Thu, 23 Sep 2010 12:39:49 +0000 (UTC) ·
quoted from Kevin Kelly
In <user-84a79da95871@xymon.invalid> "Kevin Kelly" <user-46671a9fcf56@xymon.invalid> writes:
I am trying to use the DIR in hobbit-client.cfg, but not having any
luck. Does anyone use this?
Xymon server- hobbit-client.cfg
DIR         /var/adm  yellow SIZE>10m track
Client- localclient.cfg
DIR /var/adm
Should be 
dir:/var/adm


Regards,
Henrik