NSClient++ Help (#1) - STILL Cannot Get Results for Mounted Drives Using CheckDriveSize (#844) (#855) - Message List
This is a continuation of #844: Trying a repost in the hopes I can get more help (please!):
Hi Again,
OK - I've played with the prior suggestions - but I am still unable to get proper results via either nrpe (active) or nsca (passive) checks. I Do get proper results when I run the following commmand from an "NSCLIENT++.exe /test" session *BUT I CANNOT DETERMINE THE SYNTAX TO MAKE THIS WORK VIA NSC.INI* for either active or passive checks.
NOTE: Drive x: =
radshare1\users
* HERE ARE MY CMD AND RESULTS FOR NSCLIENT++.EXE /TEST *
MAPPED DRIVE:
CheckDriveSize Drive=x: FilterType?=REMOTE
NSClient++.cpp(1073) Injecting: CheckDriveSize: Drive=x:, FilterType?=REMOTE
\checkHelpers.hpp(758) Missing bounds for maxmin-bounds check: x:
NSClient++.cpp(1109) Injected Result: OK 'OK: All drives within bounds.'
NSClient++.cpp(1110) Injected Performance Result: x:'=11160403468288B;0;0; '
OK:OK: All drives within bounds.|'x:'=11160403468288B;0;0;
UNC:
CheckDriveSize Drive=
radshare1\users\ FilterType?=REMOTE
NSClient++.cpp(1073) Injecting: CheckDriveSize: Drive=
radshare1\users\, Filt
erType=REMOTE
\checkHelpers.hpp(758) Missing bounds for maxmin-bounds check:
radshare1\use
rs\
NSClient++.cpp(1109) Injected Result: OK 'OK: All drives within bounds.'
NSClient++.cpp(1110) Injected Performance Result:
radshare1\users\'=111604
17599488B;0;0; 'OK:OK:
All drives within bounds.|'
radshare1\users\'=11160417599488B;0;0;
* HERE IS WHAT I GET WHEN ATTEMPTING TO RUN THIS FROM NSC.INI as an ACTIVE (NRPE)or PASSIVE check (NSCA) WSith the NSCP Service running as the same user as when attepmpted via the NSCP TEST mode. *
(From nsc.ini)
0_TEST_PSV-all-drives_freespace=CheckDriveSize -a Drive=x:\ FilterType?=REMOTE MinWarn=10% MinCrit=5%
(From nsclient.log)
2011-08-29 15:39:32: debug:modules\NSCAAgent\NSCAThread.cpp:191: Executing (from NSCA): 0_TEST_PSV-all-drives_freespace
2011-08-29 15:39:32: debug:NSClient++.cpp:1073: Injecting: CheckDriveSize: -a, Drive=x:\, FilterType?=REMOTE, MinWarn=10%, MinCrit=5% 2011-08-29 15:39:32: debug:NSClient++.cpp:1109: Injected Result: WARNING 'UNKNOWN: Drive does not match the current filter: -a (it is a no_root drive)'
2011-08-29 15:39:32: debug:NSClient++.cpp:1110: Injected Performance Result:
-
Message #2307
My guess (without having looked) is that you are running into the rather common "windows snag" that shared folders are personal. This means if I log in to a server and mounts a shared folder you wont see it...
So in this case 'x:' is most likely mounted by "someone" and 'nsclient++' is run by "some one else".
Best approach around this, run nsclient++ as a specific user which has access to the share, and then do checks via UNC paths (ie.
server\share).Michael Medin
mickem09/08/11 07:03:11 (22 months ago)-
Message #2309
Hi, Thanks for the reply.
I had the same thought - that is why I re-tested this running the NSClient++ Service as the same user that the x-drive was created for.... As indicated by my statement: " HERE IS WHAT I GET WHEN ATTEMPTING TO RUN THIS FROM NSC.INI as an ACTIVE (NRPE)or PASSIVE check (NSCA) WSith the NSCP Service running as the same user as when attepmpted via the NSCP TEST mode."
Any other thoughts?
CaptainRon09/08/11 18:23:41 (22 months ago)
-








