[mrtg] Re: Monitoring of a directory for files
Jason Humes
jhumes at acs.on.ca
Wed Aug 6 19:04:38 MEST 2003
Could you please give me an example batch file showing how I could perform
the check/delete of the file and the resulting action. Thanks
-----Original Message-----
From: Jerry Heidtke [mailto:jheidtke at fmlh.edu]
Sent: Wednesday, August 06, 2003 12:13 PM
To: Jason Humes; whatsup_forum at list.ipswitch.com; MRTG Mailing List
Subject: RE: [mrtg] Monitoring of a directory for files
If this is a Windows server, check out System Integrity Monitor from
GFI, http://www.gfi.com/lansim/. Excellent product, and you can't beat
the price.
Otherwise, you could write a simple batch file to check for the file,
delete it, and send an email or other kind of alert if it's not there,
and use the task scheduler to run it every two hours.
If it's not a Windows server, a simple shell script run through cron
should do the trick.
-----Original Message-----
From: Jason Humes [mailto:jhumes at acs.on.ca]
Sent: Wednesday, August 06, 2003 11:00 AM
To: 'whatsup_forum at list.ipswitch.com'; 'MRTG Mailing List'
Subject: [mrtg] Monitoring of a directory for files
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
Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.
--
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