Exclusion/filer in file queue monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Exclusion/filer in file queue monitoring

Post 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
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Exclusion/filer in file queue monitoring

Post 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...
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Exclusion/filer in file queue monitoring

Post 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
HAL
Posts: 151
Joined: Thu Sep 27, 2012 7:57 am

Re: Exclusion/filer in file queue monitoring

Post by HAL »

We are suppose to check alerting only for xml files.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Exclusion/filer in file queue monitoring

Post 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
Locked