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 ...
随机推荐
- 后勤数据抽取流程图 Logistic Data Extraction
声明:原创作品,转载时请注明文章来自SAP师太技术博客( 博/客/园www.cnblogs.com):www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将 ...
- linux下route命令使用实战
配置路由表: 第一步: sudo route add -net 172.30.6.0 netmask 255.255.255.0 eth0 执行后可以使用命令route -n查看,查看内容如下: 17 ...
- 16s及宏基因组测序公司资源--20161104
锐羿基因: http://www.realbio.cn/index.php?c=list&cs=keyandongtai& 科研动态更新及时 青岛过程能源所: http://www.c ...
- python走起之第一话
Python介绍 python的创始人为吉多·范罗苏姆(Guido van Rossum).1989年的圣诞节期间,吉多·范罗苏姆为了在阿姆斯特丹打发时间,决心开发一个新的脚本解释程序,作为ABC语言 ...
- js 排序Json数组
由于对用java处理数据需要各种数据类型的转换,非常郁闷,个人更偏向于用js做数据处理,直接上code,希望对你有帮助: function sortJsonArr(jsonArr, sortName, ...
- JavaScript笔记三两个
JavaScript定义变量: var num;变量的类型不知道,当给num赋值后,根据值类型来确定类型. var num = 3; //数值类型 var str = "hello,worl ...
- zabbix3.0.4 部署之六 (zabbix3.0.4安装)
1. 新建zabbix用户,新建mysql zabbix数据库,并授权. groupadd zabbix #创建用户组zabbix useradd zabbix -g zabbix -s /bin/f ...
- MySQL 循环执行kill语句杀掉连接
mysql中创建索引时,一直卡住不动,刚开始以为可能是数据量太大导致的,可是一直等了很久还是一样没有反应,看来操作的表被锁住了,执行show processlist 果然发现有大量的lock,使用ki ...
- Svn与Git的一些区别(转载)
把第一条理解到位思想到位了做起来才会有的放矢,其他几条都是用的时候才能体会到 1) 最核心的区别Git是分布式的,而Svn不是分布的.能理解这点,上手会很容易,声明一点Git并不是目前唯一的分布式版本 ...
- Asp.net图片文件上传
对课本上的代码进行了一点的优化 1.获取文件的名称和文件的后缀名 引用了System.IO, 用Path.GetFileNamehe()取得文件名和Path.GetExtension获取文件的后缀 2 ...