File existence monitoring

Stuffle, David (Corporate) David.Stuffle at adesa.com
Tue Nov 27 21:58:38 CET 2007


Hi,

I'm wanting to check the existence of specific files in a directory and
that they are at leat 1K in size.  I have this in the hobbit-clients.cfg
file:

 

HOST=hostname1

        PROC httpd

        FILE %^sdc_.* MTIME<3600 TIME=W:0730:2200 red

        FILE %^dcs1xaz9saotnw713cmtaut8c_6w3j.* red size>1K
TIME=*:0730:1800

        FILE %^dcsaplg0kbotnwvrj16x28msg_1i2n.* red size>1K
TIME=*:0730:1800

        FILE %^dcsdq1p60cotnw32xcywlbisg_9i5q.* red size>1K
TIME=*:0730:1800

        FILE %^dcsmnj8yecotnwbcevyym9t8c_4d7i.* red size>1K
TIME=*:0730:1800

        FILE %^dcsp6ro5kbotnwvjh6yh0dmsg_3j1y.* red size>1K
TIME=*:0730:1800

        FILE %^dcsu5rokrbotnwb01tmd19mat_4w7s.* red size>1K
TIME=*:0730:1800

 

And this in client-local.cfg:

 

[hostname1]

file:`find /usr/local/webtrends/sdc/weblog -type f | xargs ls -1tr |
tail -1`

file:`ls -1 /usr/local/scripts/logs/dcs1xaz9saotnw713cmtaut8c_6w3j*`

file:`ls -1 /usr/local/scripts/logs/dcsaplg0kbotnwvrj16x28msg_1i2n*`

file:`ls -1 /usr/local/scripts/logs/dcsdq1p60cotnw32xcywlbisg_9i5q*`

file:`ls -1 /usr/local/scripts/logs/dcsmnj8yecotnwbcevyym9t8c_4d7i*`

file:`ls -1 /usr/local/scripts/logs/dcsp6ro5kbotnwvjh6yh0dmsg_3j1y*`

file:`ls -1 /usr/local/scripts/logs/dcsu5rokrbotnwb01tmd19mat_4w7s*`

 

 

They all show up under the files column.  To test it, I deleted the file
specified in the last line from the directory, but all Hobbit does is
remove it from displaying.  I want it to go red saying that the file
does not exist.

 

The man pages says "By default, a warning is triggered for files that
have a FILE entry, but which do not exist."  But, I'm not seeing this
occur.

 

Any ideas?

 

D. Stuffle   

DISCLAIMER:
The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged material.
Any review, retransmission, dissemination or other use of, or taking of
any action in reliance upon, this information by persons or entities other
than the intended recipient is prohibited. If you received this in error,
please contact the sender and destroy any copies of this document and
any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20071127/95adf81d/attachment.html>


More information about the Xymon mailing list