NSClient++ Help (#1) - Problem with checkfilesize2 and networkpath (#707) - Message List

Problem with checkfilesize2 and networkpath

im having troubles with Checkfile2 and network pathes:

ad 1) via UNC path

./check_nrpe -H aserver -c CheckFile2 -a path='
aserver\data\3101_Incoming_Invoice_Office\Scan' pattern=*.pdf filter+written=\>2m MaxCrit=1 "syntax=%path%%filename%"

2010-11-24 21:52:10: debug:NSClient++.cpp:1106: Injecting: CheckFile2: path=\\lybefile01\data\3101_Incoming_Invoice_Office\Scan, pattern=*.pdf, filter+written=>2m, MaxCrit=1, syntax=%path%%filename%
2010-11-24 21:52:10: error:modules\CheckDisk\CheckDisk.cpp:375: Invalid file specified: \\lybefile01\data\3101_Incoming_Invoice_Office\Scan
2010-11-24 21:52:10: debug:modules\CheckDisk\CheckDisk.cpp:397: Looking for: path: \\lybefile01\data\3101_Incoming_Invoice_Office, pattern: Scan
2010-11-24 21:52:10: debug:modules\CheckDisk\CheckDisk.cpp:134: File was NOT found!
2010-11-24 21:52:10: debug:NSClient++.cpp:1142: Injected Result: WARNING 'Check contains error. Check log for details (or enable show_errors in nsc.ini)'
2010-11-24 21:52:10: debug:NSClient++.cpp:1143: Injected Performance Result: ''

strange enough?! why pattern scan? OK trailing backslash and patter ...

./check_nrpe -H aserver -c CheckFile2 -a path='
aserver\data\3101_Incoming_Invoice_Office\Scan\' pattern='*.pdf' filter+written=\>2m MaxCrit=1 "syntax=%path%%filename%"

2010-11-24 21:55:49: debug:NSClient++.cpp:1106: Injecting: CheckFile2: path=\\lybefile01\data\3101_Incoming_Invoice_Office\Scan\, pattern=*.pdf, filter+written=>2m, MaxCrit=1, syntax=%path%%filename%
2010-11-24 21:55:49: error:modules\CheckDisk\CheckDisk.cpp:375: Invalid file specified: \\lybefile01\data\3101_Incoming_Invoice_Office\Scan\
2010-11-24 21:55:49: debug:modules\CheckDisk\CheckDisk.cpp:397: Looking for: path: \\lybefile01\data\3101_Incoming_Invoice_Office\Scan, pattern:
2010-11-24 21:55:49: debug:modules\CheckDisk\CheckDisk.cpp:134: File was NOT found!
2010-11-24 21:55:49: debug:NSClient++.cpp:1142: Injected Result: WARNING 'Check contains error. Check log for details (or enable show_errors in nsc.ini)'
2010-11-24 21:55:49: debug:NSClient++.cpp:1143: Injected Performance Result: ''

ok now mounting this unc to a network drive: same result

Who can help please?

  • Message #2010

    The first thing is a bit odd... looks like a bug actually.

    But the important question is does the service user have access to the share? That is usually the problem with these things.

    Michael Medin

Subscriptions