Nagios NSclient Failed to get CPU value: \238(_total)\6: Failed to get mutex :(
一台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.
解决方案:
- 首先查看可以获取的所有系统计数值,数量较多,建议先放到文件。
nscp sys --list --all > a.txt
- 搜索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
...
- 在nsclient.ini中指定cpu使用的计数器
[/settings/system/windows/pdh]
cpu=\Processor Information(_Total)\% Processor Time
- 再检测,正常获取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 :(的更多相关文章
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- lr11 BUG?Failed to send data by channels - post message failed.
问题描述 : http协议,场景运行一会之后,报错! erro信息: Failed to send data by channels - post message failed. 解决方法 :ht ...
- 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 ...
- 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 ...
- 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 ...
随机推荐
- len字符串的长度
#!/usr/bin/env python def fun4(x) : if len(x) > 2 : return print(x[0],x[1]) else: return 0 d = (' ...
- python day1 常用模块
键盘输入: python2.7 raw_input() python3 input() 键盘输入默认为字符串,可通过例如 int(input())方式,实现类型转换. ‘密文’输入: 仅python的 ...
- 12.NFS搭建配置
参考博客:http://www.cnblogs.com/mchina/archive/2013/01/03/2840040.html 1.关闭防火墙和SELINUX $ service iptable ...
- iOS- iPhone App 如何运营?
在质量过硬的情况下,如何运营才能使APP冲上app store的推荐?如何获得公众认可?获得下载量? 睡前简单分享一下最近从书中.互联网中浏览到的一些信息,和自己的一点理解. 首先这个问题很大.就抛砖 ...
- Linq排序,获取前5条数据
_dic = _dic.OrderByDescending(x => x.Value).ToDictionary(x=>x.Key,x=>x.Value); var Num = _d ...
- Android Activity的加载模式和onActivityResult方法之间的冲突
前言 今天在调试程序时,发现在某一Activity上点击返回键会调用该Activity的onActivityResult()方法.我一开始用log,后来用断点跟踪调试半天,还是百思不得其解.因为之前其 ...
- MongoDB:实体对象(javabean)转DBObject
代码仅供练习(反射,泛型): package utils; import java.lang.reflect.Field; import com.mongodb.BasicDBObject; impo ...
- 【原创】Mac os 10.10.3 安装xgboost
大家用的比较多的是Linux和windows,基于Mac os的安装教程不多, 所以在安装的过程中遇到很多问题,经过较长时间的尝试,可以正常安装和使用, [说在前面]由于新版本的Os操作系统不支持op ...
- eclipse改变theme
https://github.com/eclipse-color-theme/eclipse-color-theme.git https://github.com/eclipse-color-them ...
- Java 并发和多线程(三) 多线程的代价 [转]
原文链接:http://tutorials.jenkov.com/java-concurrency/costs.html 作者:Jakob Jenkov 翻译:古圣昌 校对:欧振 ...