NSClient++ Help (#1) - Problème checkCPU sous windows 2003 SP2 (#924) - Message List
Bonjour,
j'ai un problème sur certains serveurs en windows 2003 et XP .
Je n'arrive pas à superviser la charge CPU, ainsi que l'uptime.
Dans la log de NSClient (v 0.3.9.329) j'ai les messages suivants: 2012-03-09 16:55:40: debug:CACHENSClient++.cpp:557: Attempting to start NSCLient++ - 0.3.9.329 2011-09-02 2012-03-09 16:55:40: message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: C:\supervision\NSClient++\\nsclient.log 2012-03-09 16:55:40: error:CACHEmodules\CheckSystem\PDHCollector.cpp:140: Failed to open performance counters: \펰ćŸć(_total)\ŸćŸć: PdhAddCounter failed: L'objet spécifié n'a pas été trouvé sur le système. (C0000BB8) 2012-03-09 16:55:40: error:CACHEmodules\CheckSystem\PDHCollector.cpp:185: Failed to open performance counters: \Memory\Commit Limit: PdhAddCounter failed: L'objet spécifié n'a pas été trouvé sur le système. (C0000BB8) 2012-03-09 16:55:40: error:CACHEmodules\CheckSystem\PDHCollector.cpp:219: No performance counters were found we will not wait for the end instead... 2012-03-09 16:55:40: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: \Processor(_total)\% Processor Time: No value has been collected yet
est-ce que quelqu'un a déjà rencontré le problème et l'a résolu? j'ai 294 serveurs windows supervisés dont la majeure partie en w2003 (les autres sont en XP, W2000 ou w2008) et n'ai le problème que sur certains d'entre eux. la configuration nsclient est strictement la même d'un serveur à l'autre.
Merci de vos retours. cordialenemt, Cmeschin
-
Message #2435
Dont really understand french at all but guessing your counters dont work? Have you tried the "index fix thingy" in the FAQ?
Also do the counters work with normal perf mon?
Michael Medin
mickem03/12/12 09:09:15 (15 months ago)-
Message #2439
Hi Michael,
I don't understand French at all either, but I'm thinking cmeschin may be having the same issue I am.
I updated to RC3 today and I'm seeing issues with CheckCPU. I went back to RC1 to ensure CheckCPU works with it on ths same server. So I don't think it's an issue with a corrupt performance counter.
Below is the debug output using a config file that has nothing but CheckSystem and Scheduler loading.
RC3 Output:
C:\Program Files\NSClient++>nscp.exe test --debug ? ..\..\..\trunk\service\NSClient++.cpp:554 NSClient++ 0,4,0,143 2012-03-13 x64 booting... d ttings_manager\settings_manager_impl.cpp:170 No entries found looking in (adding default): C:/Program Files/NSClient++//boot.ini d ttings_manager\settings_manager_impl.cpp:179 Boot order: old://${exe-path}/nsc.ini, ini://${shared-path}/nsclient.ini d ttings_manager\settings_manager_impl.cpp:182 Activating: ini://${shared-path}/nsclient.ini d ttings_manager\settings_manager_impl.cpp:73 Creating instance for: ini://${shared-path}:80/nsclient.ini d \trunk\include\settings/settings_ini.hpp:268 Reading INI settings from: C:/Program Files/NSClient++//nsclient.ini d \trunk\include\settings/settings_ini.hpp:234 Loading: C:/Program Files/NSClient++//nsclient.ini from ini://${shared-path}/nsclient.ini ? ..\..\..\trunk\service\NSClient++.cpp:559 Booted settings subsystem... d ..\..\..\trunk\service\NSClient++.cpp:620 On crash: restart: NSClientpp d ..\..\..\trunk\service\NSClient++.cpp:632 Archiving crash dumps in: C:/Program Files/NSClient++//crash-dumps d ..\..\..\trunk\service\NSClient++.cpp:699 booting::loading plugins d ..\..\..\trunk\service\NSClient++.cpp:404 Found: CheckSystem d ..\..\..\trunk\service\NSClient++.cpp:404 Found: Scheduler d ..\..\..\trunk\service\NSClient++.cpp:710 Processing plugin: CheckSystem.dll d ..\..\..\trunk\service\NSClient++.cpp:1034 addPlugin(C:/Program Files/NSClient++//modules/CheckSystem.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:710 Processing plugin: Scheduler.dll d ..\..\..\trunk\service\NSClient++.cpp:1034 addPlugin(C:/Program Files/NSClient++//modules/Scheduler.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:1010 Loading plugin: CheckSystem d ..\..\..\trunk\service\NSClient++.cpp:1010 Loading plugin: Scheduler d ude\settings/settings_interface_impl.hpp:391 Get sections for: /settings/scheduler/schedules d ..\trunk\modules\Scheduler\Scheduler.cpp:79 Thread count: 5 d ..\..\..\trunk\service\NSClient++.cpp:767 NSClient++ - 0,4,0,143 2012-03-13 Started! ? rce\nscp\trunk\service\simple_client.hpp:33 Enter command to inject or exit to terminate... d unk\modules\CheckSystem\PDHCollector.cpp:91 Loading counters... d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: cpu = \238(_total)\6 d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: memory commit bytes = \4\26 d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: memory commit limit = \4\30 d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: uptime = \2\674 e unk\modules\CheckSystem\PDHCollector.cpp:143 Failed to query performance counters: \238(_total)\6: PdhGetFormattedCounterValue failed: -1073738819: A required argument is missing or not correct. e unk\modules\CheckSystem\PDHCollector.cpp:143 Failed to query performance counters: \238(_total)\6: PdhGetFormattedCounterValue failed: -1073738819: A required argument is missing or not correct. e unk\modules\CheckSystem\PDHCollector.cpp:143 Failed to query performance counters: \238(_total)\6: PdhGetFormattedCounterValue failed: -1073738819: A required argument is missing or not correct. e unk\modules\CheckSystem\PDHCollector.cpp:143 Failed to query performance counters: \238(_total)\6: PdhGetFormattedCounterValue failed: -1073738819: A required argument is missing or not correct. CheckCPU warn=80 crit=90 time=10s d ..\..\..\trunk\service\NSClient++.cpp:1128 Injecting: checkcpu... e unk\modules\CheckSystem\PDHCollector.cpp:232 Failed to get CPU value: \238(_total)\6: No value has been collected yet d ..\..\..\trunk\service\NSClient++.cpp:1152 Result checkcpu: WARNING ? rce\nscp\trunk\service\simple_client.hpp:12 WARNING:ERROR: Could not get data for 10s perhaps we don't collect data this far back?I have made sure that the agent was running longer than 10 seconds.
The "Failed to query performance counters: \238(_total)\6" line continues to occur every few seconds, if I let it continue to run.
RC1 Output:
C:\Program Files\NSClient++>nscp.exe test --debug l ..\..\..\trunk\service\NSClient++.cpp:548 NSClient++ 0,4,0,129 2012-01-21 x64 booting... d ttings_manager\settings_manager_impl.cpp:170 No entries found looking in (adding default): C:/Program Files/NSClient++//boot.ini d ttings_manager\settings_manager_impl.cpp:179 Boot order: old://${exe-path}/nsc.ini, ini://${shared-path}/nsclient.ini d ttings_manager\settings_manager_impl.cpp:182 Activating: ini://${shared-path}/nsclient.ini d ttings_manager\settings_manager_impl.cpp:73 Creating instance for: ini://${shared-path}:80/nsclient.ini d \trunk\include\settings/settings_ini.hpp:252 Reading INI settings from: C:/Program Files/NSClient++//nsclient.ini d \trunk\include\settings/settings_ini.hpp:226 Loading: C:/Program Files/NSClient++//nsclient.ini from ini://${shared-path}/nsclient.ini l ..\..\..\trunk\service\NSClient++.cpp:553 Booted settings subsystem... d ..\..\..\trunk\service\NSClient++.cpp:614 On crash: restart: NSClientpp d ..\..\..\trunk\service\NSClient++.cpp:626 Archiving crash dumps in: C:/Program Files/NSClient++//crash-dumps d ..\..\..\trunk\service\NSClient++.cpp:693 booting::loading plugins d ..\..\..\trunk\service\NSClient++.cpp:398 Found: CheckSystem d ..\..\..\trunk\service\NSClient++.cpp:398 Found: Scheduler d ..\..\..\trunk\service\NSClient++.cpp:704 Processing plugin: CheckSystem.dll d ..\..\..\trunk\service\NSClient++.cpp:1019 addPlugin(C:/Program Files/NSClient++//modules/CheckSystem.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:704 Processing plugin: Scheduler.dll d ..\..\..\trunk\service\NSClient++.cpp:1019 addPlugin(C:/Program Files/NSClient++//modules/Scheduler.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:995 Loading plugin: CheckSystem d ..\..\..\trunk\service\NSClient++.cpp:995 Loading plugin: Scheduler d ude\settings/settings_interface_impl.hpp:388 Get sections for: /settings/scheduler/schedules d ..\trunk\modules\Scheduler\Scheduler.cpp:78 Thread count: 5 d ..\..\..\trunk\service\NSClient++.cpp:761 NSClient++ - 0,4,0,129 2012-01-21 Started! l rce\nscp\trunk\service\simple_client.hpp:34 Enter command to inject or exit to terminate... d unk\modules\CheckSystem\PDHCollector.cpp:91 Loading counters... d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: cpu = \238(_total)\6 d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: memory commit bytes = \4\26 d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: memory commit limit = \4\30 d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: uptime = \2\674 e ..\trunk\modules\Scheduler\Scheduler.cpp:153 Nothing is scheduled to run e ..\trunk\modules\Scheduler\Scheduler.cpp:153 Nothing is scheduled to run e ..\trunk\modules\Scheduler\Scheduler.cpp:153 Nothing is scheduled to run e ..\trunk\modules\Scheduler\Scheduler.cpp:153 Nothing is scheduled to run CheckCPU warn=80 crit=90 time=10s d ..\..\..\trunk\service\NSClient++.cpp:1114 Injecting: checkcpu... d ..\..\..\trunk\service\NSClient++.cpp:1139 Result checkcpu: OK l rce\nscp\trunk\service\simple_client.hpp:12 OK:OK CPU Load ok. l rce\nscp\trunk\service\simple_client.hpp:12 Performance data: '10s'=1%;80;90Thanks.
mikep
mikep03/15/12 02:35:15 (15 months ago)-
Message #2441
Could you please see if Build 144 solves this?
Michael Medin
mickem03/16/12 06:32:34 (15 months ago)-
Message #2443
Yep, it looks like you fixed it.
CheckCPU warn=80 crit=90 time=10s d ..\..\..\trunk\service\NSClient++.cpp:1128 Injecting: checkcpu... d ..\..\..\trunk\service\NSClient++.cpp:1152 Result checkcpu: OK ? rce\nscp\trunk\service\simple_client.hpp:12 OK:OK CPU Load ok. ? rce\nscp\trunk\service\simple_client.hpp:12 Performance data: '10s'=1%;80;90
Thanks.
mikep
mikep03/16/12 07:30:53 (15 months ago)
-
-
-








