Discussion:
MONITOR FILES IN A FOLDER ON WINDOWS SERVER
gunshift
2012-01-05 17:02:36 UTC
Permalink
gunshift [http://community.zenoss.org/people/gunshift] created the discussion

"MONITOR FILES IN A FOLDER ON WINDOWS SERVER"

To view the discussion, visit: http://community.zenoss.org/message/63563#63563

--------------------------------------------------------------
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 recomendation to me.

Thank you in advance
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63563#63563]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
mwcotton
2012-01-06 23:40:13 UTC
Permalink
mwcotton [http://community.zenoss.org/people/mwcotton] created the discussion

"Re: MONITOR FILES IN A FOLDER ON WINDOWS SERVER"

To view the discussion, visit: http://community.zenoss.org/message/63586#63586

--------------------------------------------------------------
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 )
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63586#63586]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2012-01-07 02:04:08 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: MONITOR FILES IN A FOLDER ON WINDOWS SERVER"

To view the discussion, visit: http://community.zenoss.org/message/63588#63588

--------------------------------------------------------------
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.
http://community.zenoss.org/docs/DOC-3384 http://community.zenoss.org/docs/DOC-3384

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

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63588#63588]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...