[NSClient++] Topic #762 - CheckCPU not returning performance data http://www.nsclient.org/nscp/discussion/topic/762 <p> CheckCPU not returning performance data </p> en-us NSClient++ /trac/nswide.png http://www.nsclient.org/nscp/discussion/topic/762 Trac 1.0beta1 - DiscussionPlugin Lyle Tue, 29 Mar 2011 22:45:34 GMT Topic #762 - CheckCPU not returning performance data http://www.nsclient.org/nscp/discussion/topic/762#topic http://www.nsclient.org/nscp/discussion/topic/762#topic <p> Hello all: </p> <p> I've got NSClient++ 0.3.8.76 installed on a Windows Server 2008 R2 box. </p> <p> I need to get "% cpu used" and "% memory used" back to Nagios and RRD/PNP so I can get trending graphs. </p> <p> Using Nagios Core 3.0.3, I do a couple of queries interactively: </p> <pre class="wiki">#&gt; ./check_nrpe -H 172.20.8.26 -c CheckMem -a MaxWarn=80% MaxCrit=90% type=physical ShowAll=long OK: physical memory: Total: 4G - Used: 1.37G (34%) - Free: 2.63G (66%)|'physical memory %'=34%;80;90; 'physical memory'=1.36G;3.;3.;0;4; #&gt; #&gt; ./check_nrpe -H 172.20.8.26 -c CheckCPU -a warn=80% crit=90% ShowAll=long OK CPU Load ok. </pre><p> The memory check seems to be working fine, but the CPU check doesn't seem to return performance data. It's like it's not following the plug-in development guidelines, ie nothing after the "|". </p> <p> Am I using the wrong parameters? Do I have to go to an external plugin to check this? </p> <p> Thanks for any advice...Lyle </p> Topic Lyle Wed, 06 Apr 2011 15:28:42 GMT Reply #2140 to topic #762 - CheckCPU not returning performance data http://www.nsclient.org/nscp/discussion/message/2140#message2140 http://www.nsclient.org/nscp/discussion/message/2140#message2140 <p> Thanks, Michael, that was it. Never noticed the Time parameter. </p> <p> ...Lyle </p> Message mickem Wed, 06 Apr 2011 05:03:34 GMT Reply #2139 to topic #762 - CheckCPU not returning performance data http://www.nsclient.org/nscp/discussion/message/2139#message2139 http://www.nsclient.org/nscp/discussion/message/2139#message2139 <p> Sorry... I just saw your check. There is no "time" specified so thus it does nothing. I should improve the error message I guess... </p> <p> <em> Michael Medin </em></p> Message Lyle Wed, 06 Apr 2011 00:01:19 GMT Reply #2138 to topic #762 - CheckCPU not returning performance data http://www.nsclient.org/nscp/discussion/message/2138#message2138 http://www.nsclient.org/nscp/discussion/message/2138#message2138 <p> A bit of information that may help with my original request: </p> <p> I found the NRPE_NT_Perf package on Monitoring Exchange. Seemed like it had been around for a while, and was the top download for cpu performance on Windows (sans SNMP). From that, I pulled "cpuload_nrpe_nt.exe", the plugin for monitoring cpu load. </p> <p> cpuload_nrpe_nt.exe reported correctly when I ran it interactively on my XP laptop. But I moved it to one of the Windows 2008 clients I'm trying to monitor, and it only reports 0% cpu usage, though I've loaded the system with tasks. </p> <p> I checked this plugin on a totally unrelated Windows 2008 box (hardware vs the previous VM one) and it also reports 0% cpu usage. </p> <p> I'm wondering if there's anything odd about Windows 2008 R2 that keeps this plugin and NSCP from reporting correctly. </p> <p> Thanks....Lyle </p> Message Lyle Tue, 05 Apr 2011 21:57:28 GMT Reply #2137 to topic #762 - CheckCPU not returning performance data http://www.nsclient.org/nscp/discussion/message/2137#message2137 http://www.nsclient.org/nscp/discussion/message/2137#message2137 <p> I'm still in need of collecting cpu performance data from a Windows client. Load or %Idle/%Used, either would work. </p> <p> If I found a plugin, I could call it from nscp, and that would get me by until the native call gets fixed. But the only plugins I've found on Nagios Exchange are made for snmp; maybe they would work with nscp too, I don't know. </p> <p> Maybe I could try installing Cygwin and using a shell script plugin, but that's a chunk of work too. </p> <p> Thanks for any advice....Lyle </p> Message Lyle Wed, 30 Mar 2011 16:44:27 GMT Reply #2124 to topic #762 - CheckCPU not returning performance data http://www.nsclient.org/nscp/discussion/message/2124#message2124 http://www.nsclient.org/nscp/discussion/message/2124#message2124 <p> Thanks for the reply, Michael, and thanks for the development work you do. </p> <p> I've filed a bug report. It's probably not the highest priority for most, but it's critical for me at this point. </p> <p> As a temporary workaround, is there an external script you could recommend to return "% cpu time" idle or used? </p> <p> I looked at using the check_nt transport with CPULOAD, but it looks like it only returns load, not % used. </p> <p> ...Lyle </p> Message mickem Wed, 30 Mar 2011 06:07:39 GMT Reply #2122 to topic #762 - CheckCPU not returning performance data http://www.nsclient.org/nscp/discussion/message/2122#message2122 http://www.nsclient.org/nscp/discussion/message/2122#message2122 <p> I actually noticed a but related to this when fixing some stuff the other day so it is on my todo list... I have never noticed it myself but this could be one of them "random" things... </p> <p> SO let me get back to you, and feel free to file a ticket in the mean time... </p> <p> <em> Michael Medin </em></p> Message