Page 1 of 1

Exclusion/filer in file queue monitoring

Posted: Thu Aug 01, 2013 7:26 am
by HAL
we are looking for some way to exclude DohaChangeXMLStylesheet.vbs file which should be always there under:D:\middleware\messages\JapanForwarder\BillOfLadingInstruction\Pending

As of now we have configured this:
check_DohaCustoms_Out=scripts\check_winfile.exe --target D:\middleware\messages\JapanForwarder\BillOfLadingInstruction\Pending --filter "age lt -30 minutes" --rootonly --critical 0

It is working fine in terms of file age reporting, but the problem is it is always prompting critical alert due to existence of file DohaChangeXMLStylesheet.vbs under D:\middleware\messages\JapanForwarder\BillOfLadingInstruction\Pending

Re: Exclusion/filer in file queue monitoring

Posted: Thu Aug 01, 2013 7:28 am
by HAL
I was trying filters like --filter "name match DohaChangeXMLStylesheet.vbs". Then I made apply configuration of relevant nagios service, but no help.

Is there a need to restart agent service too on monitored host in this regard?

please suggest.


thanks...

Re: Exclusion/filer in file queue monitoring

Posted: Thu Aug 01, 2013 8:20 am
by HAL
I tried with below one, seems its working for me, please comment.

check_DohaAndQaterCustomsOut_age=scripts\check_winfile.exe --target D:\middleware\messages\DohaCustoms\Out --filter "age lt -30 minutes" --filter "name match \.xml$" --rootonly --critical 0

Re: Exclusion/filer in file queue monitoring

Posted: Thu Aug 01, 2013 9:05 am
by HAL
We are suppose to check alerting only for xml files.

Re: Exclusion/filer in file queue monitoring

Posted: Thu Aug 01, 2013 9:38 am
by yancy
HAL,

Did you try useing the --filter name command to exclude DohaChangeXMLStylesheet.vbs from the results?

for example

Code: Select all

 --filter "name match DohaChangeXMLStylesheet.vbs"

-Yancy