Page 2 of 2
Re: issue with Windows Agent
Posted: Thu Sep 12, 2013 9:14 am
by slansing
Can you send a copy of your nsclient.log file? It should be in your installation directory. Also, what version of Windows is this, and have you verified it is NOT 64-bit?
Re: issue with Windows Agent
Posted: Thu Sep 12, 2013 9:56 am
by jwu
is there any permissions to setup?
in this thread
http://nsclient.org/nscp/discussion/message/2073
it mentioned that it was a permissions issue...
Re: issue with Windows Agent
Posted: Thu Sep 12, 2013 9:58 am
by jwu
it is MS Windows Server 2003 R2
I verified it is 32 bit, I got it working on another identical machine...
here is the log entry
===
2013-09-11 15:24:55: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.327 2011-08-16
2013-09-11 15:24:55: debug:CACHENSClient++.cpp:557: Attempting to start NSCLient++ - 0.3.9.327 2011-08-16
2013-09-11 15:24:55: message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: C:\Program Files\NSClient++\\nsclient.log
2013-09-11 15:24:55: error:CACHEmodules\CheckSystem\PDHCollector.cpp:140: Failed to open performance counters: LoadLibrary for PDH failed: 126: The specified module could not be found.
2013-09-11 15:24:55: error:CACHEmodules\CheckSystem\PDHCollector.cpp:185: Failed to open performance counters: LoadLibrary for PDH failed: 126: The specified module could not be found.
2013-09-11 15:24:55: error:modules\CheckSystem\PDHCollector.cpp:219: No performance counters were found we will not wait for the end instead...
2013-09-11 15:27:17: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: <UN ATTACHED>: No value has been collected yet
2013-09-11 15:40:07: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.327 2011-08-16
2013-09-11 15:40:07: debug:CACHENSClient++.cpp:557: Attempting to start NSCLient++ - 0.3.9.327 2011-08-16
2013-09-11 15:40:07: message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: C:\Program Files\NSClient++\\nsclient.log
2013-09-11 15:40:07: error:CACHEmodules\CheckSystem\PDHCollector.cpp:140: Failed to open performance counters: LoadLibrary for PDH failed: 126: The specified module could not be found.
2013-09-11 15:40:07: error:CACHEmodules\CheckSystem\PDHCollector.cpp:185: Failed to open performance counters: LoadLibrary for PDH failed: 126: The specified module could not be found.
2013-09-11 15:40:07: error:modules\CheckSystem\PDHCollector.cpp:219: No performance counters were found we will not wait for the end instead...
2013-09-11 15:41:31: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: <UN ATTACHED>: No value has been collected yet
2013-09-11 15:42:31: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: <UN ATTACHED>: No value has been collected yet
2013-09-11 15:42:35: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:34:25: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:35:25: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:35:28: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:36:25: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:36:28: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:36:31: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:37:25: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:37:28: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:37:31: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:38:25: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:38:28: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:38:31: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:39:28: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:39:31: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:39:45: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.327 2011-08-16
2013-09-12 09:39:45: debug:CACHENSClient++.cpp:557: Attempting to start NSCLient++ - 0.3.9.327 2011-08-16
2013-09-12 09:39:45: message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: C:\Program Files\NSClient++\\nsclient.log
2013-09-12 09:39:45: error:CACHEmodules\CheckSystem\PDHCollector.cpp:140: Failed to open performance counters: LoadLibrary for PDH failed: 126: The specified module could not be found.
2013-09-12 09:39:45: error:CACHEmodules\CheckSystem\PDHCollector.cpp:185: Failed to open performance counters: LoadLibrary for PDH failed: 126: The specified module could not be found.
2013-09-12 09:39:45: error:modules\CheckSystem\PDHCollector.cpp:219: No performance counters were found we will not wait for the end instead...
2013-09-12 09:40:17: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:40:22: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2013-09-12 09:40:27: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
===
I tried resetting my counters 'lodctr /R' and install the last stable version agent, but same results
Re: issue with Windows Agent
Posted: Thu Sep 12, 2013 10:39 am
by sreinhardt
Is your nsclient user a part of the performance counter group?
Re: issue with Windows Agent
Posted: Thu Sep 12, 2013 11:03 am
by jwu
no, I have Performance Log Users and Performance Monitor Users,
I have another server that replicates this server, they both have the same setup....
the other server does work, and I'm using the Local System Account to run nsclient
Re: issue with Windows Agent
Posted: Thu Sep 12, 2013 2:26 pm
by lmiltchev
Actually, run the following from the command prompt:
http://support.microsoft.com/kb/300956
Open the Performance Monitor and re-add the counters you need. Lastly, restart the nsclient++ service.
Let us know if this helped.