Page 2 of 2

Re: NetApp NAS

Posted: Tue Mar 15, 2016 7:31 am
by WillemDH
Weird, for me it says "No files found|'count'=0;0;0"
I'm on 0.5.0.25 atm..

Re: NetApp NAS

Posted: Tue Mar 15, 2016 9:24 am
by jkinning
If I just use path='\\cinnas1p\bloomberg' I get the critical and it says
CRITICAL: 0/86 files

Is there something else I need to add to go down another directory to path='\\cinnas1p\bloomberg\dead'?

Re: NetApp NAS

Posted: Tue Mar 15, 2016 9:37 am
by jkinning
Ok, I had them place a file in the directory and I think this will work as I got a critical alert.

Code: Select all

check_nrpe -H cinzl01p -t 60 -c check_files -a path='\\cinnas1p\bloomberg\dead\' pattern=*.* 'critical=count>0' 'empty-state=ok'
CRITICAL: 0/1 files (test1.txt)|'count'=1;0;0
So, I guess the No drives found|'count'=0;0;0 is normal behavior which I don't really care about. All I want is if there is a file in the directory let the people know.

Thanks for you assistance!

Re: NetApp NAS

Posted: Tue Mar 15, 2016 4:49 pm
by tmcdonald
Will this work out for you? If so, are we alright to close the thread?

Re: NetApp NAS

Posted: Thu Mar 17, 2016 2:24 pm
by jkinning
This is working so feel free to close.