[mrtg] monitoring of a directory for a new file
Jason Humes
jhumes at acs.on.ca
Wed Aug 6 18:09:23 MEST 2003
Hello
I was wondering if anyone knows of any way in which I can monitor a
directory on my server for the addition of a file on an hourly basis. For
example, I have a script setup to send a file to a directory every 2 hours
and if this file arrives in the directory, then our entire monitoring system
is functioning properly, but if the new file is not added on the 2 hour
mark, then there has been some problem with the system and therefore must be
acted upon. So, every two hours, check this directory for either a new
file, or 1 more file than was there on the previous check would be "System
OK" and if there was the same number of files or no new file in the
directory, then "System Fail". Hopefully I've made my goal clear to
everyone. Please, any help would be greatly appreciated. Maybe, check the
directory for the file and if it is there, then OK and then automatic delete
the file, and then the next check in two hours only has to check to see if
there is a file in the directory again, if there is, OK and delete and if
not, then FAIL. Thanks again.
Jason D. Humes
Applied Computer Solutions Inc.
3020 St. Etienne Blvd.
Windsor, Ontario
Phone: (519) 944-4300 x211
Fax : (519) 944-4247
Email : jhumes at acs.on.ca <mailto:jhumes at acs.on.ca>
**********************************************************************
Confidentiality Notice:
The information contained in this e-mail and any attachments may be legally
privileged and confidential. If you are not an intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
e-mail and any attachments is strictly prohibited. If you received this
e-mail in error, please notify the sender and permanently delete the e-mail
and any attachments immediately. You should not retain, copy or use this
e-mail or any attachment for any purpose, nor disclose all or any part of
the contents to any other person.
Thank you.
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list