NSClient++ Help (#1) - installation problems - NSClient++ doesn't listen (#437) - Message List
I have a problem with NSClient++ 0.3.6 installation/configuration on a Windows 2003 server.
I installed and configured it; it should listen on port 12489.
I start the client with:
C:\Dokumente und Einstellungen\tomekadmin\Desktop\NSClient++-0.3.6>"NSClient++.exe" /test Launching test mode - client mode d NSClient++.cpp(1106) Enabling debug mode... d NSClient++.cpp(494) Attempting to start NSCLient++ - 0.3.6.818 2009-06-14 d NSClient++.cpp(897) Loading plugin: CheckDisk... l NSClient++.cpp(600) NSCLient++ - 0.3.6.818 2009-06-14 Started! l NSClient++.cpp(402) Using settings from: INI-file l NSClient++.cpp(403) Enter command to inject or exit to terminate...
However when I run "netstat -anb", I don't see the client listening (or the port it should listen on) in the output.
Is there a way to debug this?
-
Message #1365
Uhmm...
Is the configuration correct? Looks like you haven't loaded the proper modules?
Michael Medin
mickem08/11/09 15:52:21 (4 years ago)-
Message #1366
Indeed - I only had "CheckDisk.dll" loaded, but not "NSClientListener.dll".
Now, when I start the client with /test flag, it listens, but shows some errors:
Failed to query user token: 1314: Dem Client fehlt ein erforderliches Recht.
"Dem Client fehlt ein erforderliches Recht" means "the client lacks necessary permissions".
I start the client as an Administrator. Ideas what privileges I might lack?
C:\Dokumente und Einstellungen\tomekadmin\Desktop\NSClient++-0.3.6>"NSClient++.exe" /test
Launching test mode - client mode
d NSClient++.cpp(1106) Enabling debug mode...
d NSClient++.cpp(494) Attempting to start NSCLient++ - 0.3.6.818 2009-06-14
l NSClient++.cpp(512) Enabling shared session...
l NSClient++.cpp(514) Starting shared session...
l \nsclient_session.hpp(459) Created new master session: channel-server= {Global \NSClientPP_channel_server_write, Global\NSClientPP_channel_server_signal, Globa l\NSClientPP_channel_server_memory}
e \nsclient_session.hpp(265) Starting session responder for: server
d NSClient++.cpp(631) Found 4 sessions
d NSClient++.cpp(633) Found session: 0 state: 0
l \nsclient_session.hpp(754) Creating session for: 0
e NSClient++.cpp(70) Failed to query user token: 1314: Dem Client fehlt ein erfo rderliches Recht.
e NSClient++.cpp(647) Failed to start session (0): 1314: Dem Client fehlt ein er forderliches Recht.
d NSClient++.cpp(633) Found session: 65536 state: 6
d NSClient++.cpp(633) Found session: 2 state: 0
l \nsclient_session.hpp(754) Creating session for: 2
e NSClient++.cpp(70) Failed to query user token: 1314: Dem Client fehlt ein erfo rderliches Recht.
e NSClient++.cpp(647) Failed to start session (2): 1314: Dem Client fehlt ein er forderliches Recht.
d NSClient++.cpp(633) Found session: 1 state: 4
d NSClient++.cpp(897) Loading plugin: CheckDisk...
d NSClient++.cpp(897) Loading plugin: NSClient server...
l NSClient++.cpp(600) NSCLient++ - 0.3.6.818 2009-06-14 Started!
d \Socket.h(675) Bound to: 0.0.0.0:12489
l NSClient++.cpp(402) Using settings from: INI-file
l NSClient++.cpp(403) Enter command to inject or exit to terminate...
mangoo08/11/09 16:18:38 (4 years ago)
-
-
Message #1457
Enter your message here...
I'm trying to do something similar. Bear in mind I'm brand new to NSClient++
I have the basic config working and I can call it from a Linux nagios server via check_nt -H ... -p 12489 -s ... -v USEDDISKSPACE -l C -w 70 -c 90
But what if I want to define my own remote command? What do I need to add to the nsc.ini? and how do I call it on the Linux side?
In particular, I was trying to have the above check the disk-space on a network drive. The above does a segmentation vault if I give it a mapped letter
TIA
mashtin10/09/09 18:21:14 (4 years ago)








