Systems Management (OpenView-OP Mgmt) Practitioners Forum
cancel

Monitoring a directory

teddybear
New Member.

Monitoring a directory

Please can somebody advise how to set up a policy to monitor a folder or directory on a server using OM? Similar to the directory monitor in SiteScope.

 

Example of the kind of thing I mean:

 

Alert if a file drops.

Alert if more then 5 files in the folder.

Alert if files in the folder more then an hour.

 

thanks in advance.

4 REPLIES
pafreire
Honored Contributor.

Re: Monitoring a directory

Hello,

 

You can find a lot of customizing scripts in http://www.ovinternals.com/custompol.htm.

 

 

HTH,

 

Paulo

“The greatest challenge to any thinker is stating the problem in a way that will allow a solution.”
Bertrand Russell
Brandy Reid
Honored Contributor.

Re: Monitoring a directory

Hi Teddybear,

Are you wanting to monitor a Windows or Unix Directory?
http://www.linkedin.com/in/brandyreid
Say "Thanks" by clicking on Kudo's to the left :)
teddybear
New Member.

Re: Monitoring a directory

hi, Its a windows directory. Like to be able to monitor if files are in the folder for over a certain amount of time etc.

thanks!

PKS
Respected Contributor.

Re: Monitoring a directory

No standard out of the box solution for monitoring the directory as you have requested. You have to write a script with OS command like find , dir etc with different switches and call opcmsg or opcmon API if needs to be alerted.