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 ...
随机推荐
- EasyUI关于 numberbox,combobox,validatebox 的几个小问题
在最近的项目中,首次使用到了 网页的一个布局框架——EasyUI,感觉这个框架特别牛,兼容性很不错,页面效果也挺不错,可是在使用标题上三个控件过程中遇到几个很奇特的问题,让我头疼不已,所以在此给广大I ...
- Hibernate不能自动建数据表解决办法
首先自己要注意自己的MYSQL版本,然后设置对应的方言 兼容性模式 <property name="hibernate.dialect">org.hibernate.d ...
- 使用clusterprofile做聚类分析
library(clusterProfiler ) #cat test.txt gene_symbol EXOSC10ARHGEF10LVWA5B1SRRM1PTAFRCSMD2SH3GLB1GBP6 ...
- eclipse + maven 搭建springMVC+Spring+mybatis 系统
首先需要下载maven 安装maven插件.自行百度. 1: 创建maven系统 http://huxiaoheihei.iteye.com/blog/1766986 2:添加pom依赖: pom.x ...
- hdu2297Run(凸包的巧妙应用)
链接 很巧妙的一道题,参考 把距离和速度分别作为x和y坐标,以斜率代表追赶速率,简直炫酷~ 具体看上面的博客,画的很清楚,就不再抄写一遍了. #include <iostream> #in ...
- POM.xml 标签详解
pom作为项目对象模型.通过xml表示maven项目,使用pom.xml来实现.主要描述了项目:包括配置文件:开发者需要遵循的规则,缺陷管理系统,组织和licenses,项目的url,项目的依赖性,以 ...
- 20160817_Redis配置操作
ZC: 主要是 做一些配置,使得 java程序能够访问到 redis服务器,主要内容为:ZC: ①.redis服务端服务 重启的命令ZC: ②.取消绑定 本地IP的配置,使得 所有本网段局域网机器都能 ...
- stm32cube--通用定时器--产生pwm波
看了通用定时器的资料,发现内容挺多,挺难看懂,现在还是先掌握使用方法,以后再多看几遍吧. ① ② ③生成mdk工程后,在main.c的while(1)前面加上HAL_TIM_PWM_Start(&am ...
- Android开发之各个语言
Android开发之各个语言 1.进行源码开发遇到一个最基础的问题就是各个语言下的字串翻译,所以我们必须得清楚res文件夹下各个资源文件夹 2.如图:
- linux笔记:shell基础-概述和脚本执行方式
什么是shell: linux使用的默认shell是Bash: shell脚本的后缀名为.sh,shell脚本的第一行#!/bin/bash 不是注释,而是标识这是一个shell脚本,因为linux并 ...