Archived community.zenoss.org | full text search
Skip navigation
2533 Views 2 Replies Latest reply: Jan 6, 2012 9:04 PM by dpetzel RSS
gunshift Rank: White Belt 7 posts since
Jan 18, 2010
Currently Being Moderated

Jan 5, 2012 12:03 PM

MONITOR FILES IN A FOLDER ON WINDOWS SERVER

Is it possible to monitor some files in a directory on Windows server 2003/2208?

 

- Number of each filetype (zip, etc..)

- Number of files

- Size of each files

 

Please give a recommendation to me.

 

Thank you in advance

  • mwcotton Rank: Brown Belt 563 posts since
    Apr 23, 2008
    Currently Being Moderated
    1. Jan 6, 2012 6:40 PM (in response to gunshift)
    Re: MONITOR FILES IN A FOLDER ON WINDOWS SERVER

    You could probably write a powershell program to do what you want when your error conditions are met, insert a event into the local windows event log and use zenoss to alert when that event appears.

     

    ( or perl , I would use perl but windows fellas would probably use powershell )

  • dpetzel Rank: Brown Belt 1,141 posts since
    Oct 17, 2010
    Currently Being Moderated
    2. Jan 6, 2012 9:04 PM (in response to mwcotton)
    Re: MONITOR FILES IN A FOLDER ON WINDOWS SERVER

    If you don't want a local script on the server(s) in question and/or rely on event log monitoring you could leverage WMI. Looks like there is an older ZenPack that used to do this. It may or may not work in 3.x, but the WMI query it leverages probably still applies.

    docs/DOC-3384

     

    With a little digging you can probably extract the WMI query and roll your own template

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points