Page 1 of 1

DFS path monitoring

Posted: Fri Jan 18, 2019 1:32 am
by udaykumar
HI Team,

Is it possible to monitor DFS path in nagios ?

Re: DFS path monitoring

Posted: Fri Jan 18, 2019 7:17 am
by WillemDH
Hey,

You should be able to do this with NSClient++, but only when the service is running with credentials that have permissions on the dfs path you want to monitor.

For example this is something I'm using to monitor if a folder contains any files:

Code: Select all

/usr/local/nagios/libexec/check_nrpe_v3 -2 -P 10240 -H windows-gateway -p 5666 -t 120 -c check_files -a path='\\dfsroot\junction\folder\ERRORS' pattern=*.* 'critical=count>0' 'empty-state=ok'
No files found|'count'=0;0;0
Grtz

Willem

Re: DFS path monitoring

Posted: Fri Jan 18, 2019 11:28 am
by cdienger
Thanks for the input, @WillemDH!

Does that help resolve your question @udaykumar?