一台Windows Server 2012的nsclient出现以下的错误,表示无法获得CPU信息

2016-08-08 10:31:33: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:223: Failed to get CPU value: \238(_total)\6: Failed to get mutex :(

从而造成大量的报警,在本地执行nrpe,返回的结果如下。

C:\Program Files\NSClient++>nscp nrpe -H 127.0.0.1 -c check_server_cpu_load
ERROR: Could not get data for 5m please check log for details

使用sys命令可以得到CPU的信息。

C:\Program Files\NSClient++>nscp sys --version
NSClient++, version: 0,4,1,102 2013-07-15, Platform: x64 C:\Program Files\NSClient++>nscp sys --validate
Listing configured counters
---------------------------
cpu = \238(_total)\6: ok-rate(0)
memory commit bytes = \4\26: ok(3.88834e+009)
memory commit limit = \4\30: ok(5.03005e+009)
uptime = \2\674: ok(3.54579e+006)
---------------------------
Listed 4 of 4 counters.

解决方案:

  1. 首先查看可以获取的所有系统计数值,数量较多,建议先放到文件。
nscp sys --list --all > a.txt
  1. 搜索Processor相关信息。
\Processor Information(_Total)\Performance Limit Flags
\Processor Information(_Total)\% Performance Limit
\Processor Information(_Total)\% Privileged Utility
\Processor Information(_Total)\% Processor Utility
\Processor Information(_Total)\% Processor Performance
\Processor Information(_Total)\Idle Break Events/sec
\Processor Information(_Total)\Average Idle Time
\Processor Information(_Total)\Clock Interrupts/sec
\Processor Information(_Total)\Processor State Flags
\Processor Information(_Total)\% of Maximum Frequency
\Processor Information(_Total)\Processor Frequency
\Processor Information(_Total)\Parking Status
\Processor Information(_Total)\% Priority Time
\Processor Information(_Total)\C3 Transitions/sec
\Processor Information(_Total)\C2 Transitions/sec
\Processor Information(_Total)\C1 Transitions/sec
\Processor Information(_Total)\% C3 Time
\Processor Information(_Total)\% C2 Time
\Processor Information(_Total)\% C1 Time
\Processor Information(_Total)\% Idle Time
\Processor Information(_Total)\DPC Rate
\Processor Information(_Total)\DPCs Queued/sec
\Processor Information(_Total)\% Interrupt Time
\Processor Information(_Total)\% DPC Time
\Processor Information(_Total)\Interrupts/sec
\Processor Information(_Total)\% Privileged Time
\Processor Information(_Total)\% User Time
\Processor Information(_Total)\% Processor Time
\Processor Information(0,_Total)\Performance Limit Flags
\Processor Information(0,_Total)\% Performance Limit
\Processor Information(0,_Total)\% Privileged Utility
\Processor Information(0,_Total)\% Processor Utility
\Processor Information(0,_Total)\% Processor Performance
\Processor Information(0,_Total)\Idle Break Events/sec
\Processor Information(0,_Total)\Average Idle Time
\Processor Information(0,_Total)\Clock Interrupts/sec
\Processor Information(0,_Total)\Processor State Flags
\Processor Information(0,_Total)\% of Maximum Frequency
\Processor Information(0,_Total)\Processor Frequency
\Processor Information(0,_Total)\Parking Status
\Processor Information(0,_Total)\% Priority Time
\Processor Information(0,_Total)\C3 Transitions/sec
\Processor Information(0,_Total)\C2 Transitions/sec
\Processor Information(0,_Total)\C1 Transitions/sec
\Processor Information(0,_Total)\% C3 Time
\Processor Information(0,_Total)\% C2 Time
\Processor Information(0,_Total)\% C1 Time
\Processor Information(0,_Total)\% Idle Time
\Processor Information(0,_Total)\DPC Rate
\Processor Information(0,_Total)\DPCs Queued/sec
\Processor Information(0,_Total)\% Interrupt Time
\Processor Information(0,_Total)\% DPC Time
\Processor Information(0,_Total)\Interrupts/sec
\Processor Information(0,_Total)\% Privileged Time
\Processor Information(0,_Total)\% User Time
\Processor Information(0,_Total)\% Processor Time
\Processor Information(0,15)\Performance Limit Flags
\Processor Information(0,15)\% Performance Limit
...
  1. 在nsclient.ini中指定cpu使用的计数器
[/settings/system/windows/pdh]
cpu=\Processor Information(_Total)\% Processor Time
  1. 再检测,正常获取CPU信息。
C:\Program Files\NSClient++>nscp nrpe -H 127.0.0.1 -c check_server_cpu_load
OK CPU Load ok.|'5m'=1%;90;95

Nagios NSclient Failed to get CPU value: \238(_total)\6: Failed to get mutex :(的更多相关文章

  1. Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs f

    今天调试安卓程序遇到的问题Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching fa ...

  2. Failed to issue method call: Unit httpd.service failed to load: No such file or directory.

    centos7修改httpd.service后运行systemctl restart httpd.service提示 Failed to issue method call: Unit httpd.s ...

  3. Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugAidl'.的问题解答

    Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for ta ...

  4. QA:Failed to deploy artifacts from/to snapshots XX Failed to transfer file Return code is: 405, ReasonPhrase:Method Not Allowed.

    QA: Failed to deploy artifacts from/to snapshots XX Failed to transfer file Return code is: 405, Rea ...

  5. FAILURE: Build failed with an exception. Crunching Cruncher screen.png failed

    自己测试ionic的模板项目cutePuppyPics时,按照https://github.com/driftyco/ionic/blob/2.0/CHANGELOG.md#angular-updat ...

  6. lr11 BUG?Failed to send data by channels - post message failed.

    问题描述   : http协议,场景运行一会之后,报错! erro信息: Failed to send data by channels - post message failed. 解决方法 :ht ...

  7. Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for details

    Android Studio 编译中断.... Error:Execution failed for task ':app:mergeDebugResources'. > Some file c ...

  8. Failed to issue method call: Unit mysql.service failed to load: No such file or directory解决的方式

    Failed to issue method call: Unit mysql.service failed to load: No such file or directory解决的方式 作者:ch ...

  9. rdesktop ERROR: CredSSP: Initialize failed, do you have correct kerberos tgt initialized ? Failed to connect, CredSSP required by server

    错误信息: ERROR: CredSSP: Initialize failed, do you have correct kerberos tgt initialized ? Failed to co ...

随机推荐

  1. Linux下内存占用和CPU占用的计算

    ->使用free命令查看内存使用情况: 1.echo 3 > /proc/sys/vm/drop_caches 2.free 或者使用cat /proc/yourpid/status 来查 ...

  2. Eclipse 修改API

    真机调试时报错,提示application api 21,device api 10 Automatic Target Mode: Unable to detect device compatibil ...

  3. iOS开发之滤镜的使用技巧(CoreImage)

    一.滤镜的内容和效果是比较多并且复杂的 ,学习滤镜需要技巧 如下: 两个输出语句解决滤镜的属性选择问题: 1.查询效果分类中包含什么效果按住command 点击CIFilter 进入接口文件 找到第1 ...

  4. myeclipse maven pom.xml 配置错误

    http://www.oschina.net/question/2265006_219341#tags_nav maven pom.xml 配置文件错误       腾讯云消息队列CMQ架构解析> ...

  5. VB6.0对鼠标滚轮不支持的解决方法[转]已经测试work

    今天要修改一个老DLL文件,安装了vb6,用起来很不爽. VB6编辑器 和 VBA编辑器 (Office 中的VB编辑器)都不支持鼠标滚动. 但 MS 已经提供了补丁http://download.m ...

  6. I/O多路复用 SELECT POLL -- 内核实现

    等待队列 先补充个基础知识――等待队列 认识 定义 wait_queue_head_t wait_queue; 初始化 init_waitqueue_head(&wait_queue); 等待 ...

  7. 转载---Java集合对象的深度复制与普通复制

    原博文:http://blog.csdn.net/qq_29329775/article/details/49516247 最近在做算法作业时出现了错误,原因是没有弄清楚java集合的深度复制和浅度复 ...

  8. guava--Joiner、Splitter、MapJoinner、MapSplitter

    Joiner: List<String> stringList = new ArrayList<String>(); stringList.add("aa" ...

  9. 0506--Scrum项目1.0

    应用NABCD模型,分析你们初步选定的项目,充分说明你们选题的理由. 录制为演说视频,上传到视频网站,并把链接发到团队博客上. 团队项目选题  四则运算 NABCD 模型 1) N (Need 需求) ...

  10. iOS开发网络篇—NSURLConnection基本使用

    iOS开发网络篇—NSURLConnection基本使用 一.NSURLConnection的常用类 (1)NSURL:请求地址 (2)NSURLRequest:封装一个请求,保存发给服务器的全部数据 ...