[Xymon] analysis.cfg ignoring file existence

Mike Burger Mike.Burger at FreedomMortgage.com
Mon Jan 28 17:09:08 CET 2013


I'm currently locating files using the find command in client-local.cfg,
a la:

 

file:`find /path/to/file/locations -type f -name somename*`

 

And alerting if the files exist in analysis.cfg a la:

 

FILE %/path/to/file/locations/somename.* yellow NOEXIST

 

The first command looks in the particular path for a file to appear
starting with somename. So if a file starting with "somename" appears in
the directory as noted, it generates a yellow alert.

 

I would imagine that you could try:

 

file:`find /path/to/file/locations -type f -mtime -1`

 

and

 

FILE %/path/to/file/locations/.* <color> NOEXIST

 

The option in client-local.cfg will cause the remote client to search
for and list anything in the specified path that has an mtime less than
1 day old, and if found/listed, analysis.cfg should generate an alert of
<color> status.

--

Mike Burger

AIX Administrator

 

Phone (317) 537-3680, Fax (317) 537-4680, Cell (317) 797-2040 

E-mail:  Mike.Burger at FreedomMortgage.com

"Once word leaks out that a pirate's gone soft, people begin to disobey
you and then it's nothing but work, work, work, all the time."
--Westley/The Dread Pirate Roberts

 

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of Michael Beatty
Sent: Monday, January 28, 2013 8:24 AM
To: xymon at xymon.com
Subject: [Xymon] analysis.cfg ignoring file existence

 

Is there a way to check an MTIME on a file, AND ignore its existence.

 

In other words, I don't care if the file exists or not, but I want to be
alerted if the file does exists AND was last modified over 24 hours ago.

 

_______________________________________________

Xymon mailing list

Xymon at xymon.com <mailto:Xymon at xymon.com> 

http://lists.xymon.com/mailman/listinfo/xymon
<http://lists.xymon.com/mailman/listinfo/xymon> 




CONFIDENTIALITY NOTICE: This e-mail message, including all attachments, is for
the sole use of the intended recipient(s) and may contain confidential
information. Any unauthorized review, use, disclosure, alteration or
distribution is strictly prohibited and may violate state or federal law. If you
are not the intended recipient, please contact the sender by reply e-mail,
delete this email and destroy all copies of the message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130128/8c996752/attachment.html>


More information about the Xymon mailing list