issue with Windows Agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: issue with Windows Agent

Post 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?
jwu
Posts: 81
Joined: Wed Jul 24, 2013 2:54 pm

Re: issue with Windows Agent

Post 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...
jwu
Posts: 81
Joined: Wed Jul 24, 2013 2:54 pm

Re: issue with Windows Agent

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: issue with Windows Agent

Post by sreinhardt »

Is your nsclient user a part of the performance counter group?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
jwu
Posts: 81
Joined: Wed Jul 24, 2013 2:54 pm

Re: issue with Windows Agent

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: issue with Windows Agent

Post by lmiltchev »

Actually, run the following from the command prompt:

Code: Select all

cd\windows\system32
lodctr /R
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked