locked
How to monitor a file age only with extention in scom 2007 RRS feed

  • Question

  • Hi all,

    i have a query, i would like to monitor a file age, i have only extention(.txt) of the file,

     

    any one please help me.

     

    thanks in advance

    Kiran

     

    Thursday, February 17, 2011 11:19 AM

Answers

  • Hi Kiran,

    Does the following information help?

    How can I get SCOM to generate an alert whenever a file exists in a certain set of sub-folders with a file creation date older than 30 minutes?

    http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_24460984.html

    Please Note: Since above web sites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information

    Scroll down to the end of the above page and you will get useful information.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by kiran369 Wednesday, February 23, 2011 4:45 AM
    Monday, February 21, 2011 8:34 AM

All replies

  • Hi

    You can use the  filesystemobject within a VBScript to query the properties of a file including datecreated:

    http://www.webreference.com/js/column71/8.html

    There are a variety of examples on the internet for this including:

    http://www.corelan.be/index.php/2008/04/05/monitor-file-age-with-operations-manager-2007-vbscript-monitor/

    http://contoso.se/blog/?p=1367

    You'd need to tweak the scripts if you want to be able to specify a folder and have it check all .txt files in the folder but the enumeration of the files isn't difficult (though it could be resource intensive if there are lots of files and especially if sub folders need searching.

    Cheers

    Graham


    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
    Thursday, February 17, 2011 11:46 AM
  • Hi Graham,

    Thanks for your reply....

     

    my requirement is,

    We would like to setup monitoring on the below two folders on the server.

    D:\arch-file-in
    D:\arch-file-out

    We need your assistance in setting up the monitoring in the following manner.

    1. Poll the above two directories and say every 10 mins.
    2. Look for the existence of the file and if any file is present for more than 30 mins in the same directory we need to be alerted via an email

    file name will change every time.

    Thanks,

    Kiran

    • Marked as answer by kiran369 Wednesday, February 23, 2011 4:45 AM
    • Unmarked as answer by kiran369 Wednesday, February 23, 2011 4:45 AM
    Friday, February 18, 2011 5:28 AM
  • Hi Kiran,

    Does the following information help?

    How can I get SCOM to generate an alert whenever a file exists in a certain set of sub-folders with a file creation date older than 30 minutes?

    http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_24460984.html

    Please Note: Since above web sites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information

    Scroll down to the end of the above page and you will get useful information.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by kiran369 Wednesday, February 23, 2011 4:45 AM
    Monday, February 21, 2011 8:34 AM
  • Hi Kiran

    I don't have time to do up a walk through but you might want to try this community MP to see if it fits the bill:

    http://www.systemcentercentral.com/PackCatalog/PackCatalogDetails/tabid/145/IndexId/13064/Default.aspx

    Cheers

    Graham

     


    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
    • Proposed as answer by jOniSa Thursday, May 2, 2013 2:48 PM
    • Unproposed as answer by jOniSa Thursday, May 2, 2013 2:48 PM
    Monday, February 21, 2011 3:09 PM
  • Hi Graham,

    Sorry for the delay...

    Thank you very much for your reply.

     

    Thanks,

    Kiran

    Wednesday, February 23, 2011 4:47 AM