No announcement yet.

script needed to notify me when file stops increasing in size

  • Filter
  • Time
  • Show
Clear All
new posts

  • script needed to notify me when file stops increasing in size

    I am not a programmer and just know enough carry on a half-way intelligent conversation. I am learning and going through a few self help programming guides though my primary strengths are networking and computer hardware.

    That being said, I need help writing a script for a project I am working on at work. I need to monitor a log file that is constantly increasing in size and be notified (preferably through email) if the file stops increasing in size. I thought maybe one way would be to monitor the timestamp attribute and if, for example, it is older than say 30 seconds or 1 minute to send the notification. Does this make sense or would there be a better way to do this?

    What I was thinking was doing something like this:

    check file stored -file c:\files\logs\monkeylog.log -timestamp
    if timestamp > 1 min then alert

    Can someone please help me write this script?

    Thank you!

  • #2
    Can you tell us what operating system you are using (and any preferences on scripting language)?
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    IT Trainer / Consultant
    Ossian Ltd

    ** Remember to give credit where credit is due and leave reputation points where appropriate **