<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Monitor Windows Performance Counters with Icinga or Nagios</title>
	<atom:link href="http://www.sperrgebiet.org/2010/06/monitor-windows-performance-counters-with-icinga-or-nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sperrgebiet.org/2010/06/monitor-windows-performance-counters-with-icinga-or-nagios/</link>
	<description>penguins (and ducks) are friends, no food</description>
	<lastBuildDate>Fri, 13 Jan 2012 15:13:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mark Levy</title>
		<link>http://www.sperrgebiet.org/2010/06/monitor-windows-performance-counters-with-icinga-or-nagios/comment-page-1/#comment-4455</link>
		<dc:creator>Mark Levy</dc:creator>
		<pubDate>Thu, 03 Feb 2011 20:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=304#comment-4455</guid>
		<description>More info on this issue:  After turning debug on at the client, I just saw the following turn up on nsclient.log:

2011-02-03 14:46:16: debug:NSClient++.cpp:1106: Injecting: CheckCounter: \Processor(_total)\% Processor Time, MaxWarn=70, MaxCrit=85, ShowAll
2011-02-03 14:46:17: debug:NSClient++.cpp:1142: Injected Result: OK &#039;OK: \Processor(_total)\% Processor Time: 3.90625&#039;
2011-02-03 14:46:17: debug:NSClient++.cpp:1143: Injected Performance Result: &#039;&#039;\Processor(_total)\% Processor Time&#039;=3.90625;70;85; &#039;
2011-02-03 14:46:54: debug:modules\NSCAAgent\NSCAThread.cpp:229: Nothing to report, thus not reporting anything...

So it appears that the nagios console IS sending at least some of the requests to the client, however I don&#039;t know if the client isn&#039;t responding or why the services don&#039;t show up in the console.</description>
		<content:encoded><![CDATA[<p>More info on this issue:  After turning debug on at the client, I just saw the following turn up on nsclient.log:</p>
<p>2011-02-03 14:46:16: debug:NSClient++.cpp:1106: Injecting: CheckCounter: \Processor(_total)\% Processor Time, MaxWarn=70, MaxCrit=85, ShowAll<br />
2011-02-03 14:46:17: debug:NSClient++.cpp:1142: Injected Result: OK &#8216;OK: \Processor(_total)\% Processor Time: 3.90625&#8242;<br />
2011-02-03 14:46:17: debug:NSClient++.cpp:1143: Injected Performance Result: &#8221;\Processor(_total)\% Processor Time&#8217;=3.90625;70;85; &#8216;<br />
2011-02-03 14:46:54: debug:modules\NSCAAgent\NSCAThread.cpp:229: Nothing to report, thus not reporting anything&#8230;</p>
<p>So it appears that the nagios console IS sending at least some of the requests to the client, however I don&#8217;t know if the client isn&#8217;t responding or why the services don&#8217;t show up in the console.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Levy</title>
		<link>http://www.sperrgebiet.org/2010/06/monitor-windows-performance-counters-with-icinga-or-nagios/comment-page-1/#comment-4454</link>
		<dc:creator>Mark Levy</dc:creator>
		<pubDate>Thu, 03 Feb 2011 20:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=304#comment-4454</guid>
		<description>Oops, I should have also added the verification (/usr/sbin/nagios -v /etc/nagios/nagios.cfg completes with no warnings or errors, and the nagios reload completes with no errors either.

Thanks again!

Mark</description>
		<content:encoded><![CDATA[<p>Oops, I should have also added the verification (/usr/sbin/nagios -v /etc/nagios/nagios.cfg completes with no warnings or errors, and the nagios reload completes with no errors either.</p>
<p>Thanks again!</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Levy</title>
		<link>http://www.sperrgebiet.org/2010/06/monitor-windows-performance-counters-with-icinga-or-nagios/comment-page-1/#comment-4453</link>
		<dc:creator>Mark Levy</dc:creator>
		<pubDate>Thu, 03 Feb 2011 20:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=304#comment-4453</guid>
		<description>I wanted to thank you for this tutorial!  Until I found your posting here, I was feeling like the &quot;SouthPark&quot; kids when dealing with the &quot;Underpants Gnomes:&quot;  I saw the start of the procedure, and knew what was supposed to happen, but I couldn&#039;t quite figure out how to set up the service definition, so Thank You So Much!

However, I&#039;m still having a problem here:  I think that there&#039;s still a problem with getting the service to be seen by the Nagios console screen.  I added the command definition to the commands.cfg file, and for testing, I added the service definition to a specific host cfg file.  

When running from the command line, I get good results, but the nagios console just doesn&#039;t show the new services...

I&#039;m wondering if there&#039;s something that I&#039;m missing.  The hostfile &quot;levym.cfg&quot; seems to be OK, since it does show 7 other services running on the system.

Here&#039;s what I&#039;ve found, and I&#039;m hoping you can spot something I missed:

From &quot;commands.cfg&quot;

define command{
	command_name	check_perfcounter
	command_line	$USER1$/check_nrpe -H $HOSTADDRESS$ -p $ARG1$ -c CheckCounter -a $ARG5$ $ARG2$Warn=$ARG3$ $ARG2$Crit=$ARG4$ ShowAll
}


From hostfile &quot;levym.cfg&quot;

##########################
# Test Service to check processor time from PerfMon
##########################

define service{
        use             generic-service
        host_name       levym
        service_description     PerfMon Processor Counter
        check_command   check_perfcounter!5666!Max!70!85!&quot;\\Processor(_total)\\% Processor Time&quot;
}

define service{
        use             generic-service
        host_name       levym
        service_description     PerfMon Avg Disk Queue Length
        check_command   check_perfcounter!5666!Max!3!9!&quot;\\PhysicalDisk(_Total)\\Avg. Disk Queue Length&quot;
}

Command line results:

mhl-sles11:/usr/lib/nagios/plugins # ./check_nrpe -H 192.168.150.230 -p 5666 -c CheckCounter -a &quot;\\Processor(_total)\\% Processor Time&quot; MaxWarn=70 MaxCrit=85
OK all counters within bounds.&#124;&#039;\Processor(_total)\% Processor Time&#039;=0;70;85; 


mhl-sles11:/usr/lib/nagios/plugins # ./check_nrpe -H 192.168.150.230 -p 5666 -c CheckCounter -a &quot;\\PhysicalDisk(_Total)\\Avg. Disk Queue Length&quot; MaxWarn=70 MaxCrit=85
OK all counters within bounds.&#124;&#039;\PhysicalDisk(_Total)\Avg. Disk Queue Length&#039;=0.27468140000000002;70;85; 
mhl-sles11:/usr/lib/nagios/plugins # 

thanks again for all your help!!!

Mark</description>
		<content:encoded><![CDATA[<p>I wanted to thank you for this tutorial!  Until I found your posting here, I was feeling like the &#8220;SouthPark&#8221; kids when dealing with the &#8220;Underpants Gnomes:&#8221;  I saw the start of the procedure, and knew what was supposed to happen, but I couldn&#8217;t quite figure out how to set up the service definition, so Thank You So Much!</p>
<p>However, I&#8217;m still having a problem here:  I think that there&#8217;s still a problem with getting the service to be seen by the Nagios console screen.  I added the command definition to the commands.cfg file, and for testing, I added the service definition to a specific host cfg file.  </p>
<p>When running from the command line, I get good results, but the nagios console just doesn&#8217;t show the new services&#8230;</p>
<p>I&#8217;m wondering if there&#8217;s something that I&#8217;m missing.  The hostfile &#8220;levym.cfg&#8221; seems to be OK, since it does show 7 other services running on the system.</p>
<p>Here&#8217;s what I&#8217;ve found, and I&#8217;m hoping you can spot something I missed:</p>
<p>From &#8220;commands.cfg&#8221;</p>
<p>define command{<br />
	command_name	check_perfcounter<br />
	command_line	$USER1$/check_nrpe -H $HOSTADDRESS$ -p $ARG1$ -c CheckCounter -a $ARG5$ $ARG2$Warn=$ARG3$ $ARG2$Crit=$ARG4$ ShowAll<br />
}</p>
<p>From hostfile &#8220;levym.cfg&#8221;</p>
<p>##########################<br />
# Test Service to check processor time from PerfMon<br />
##########################</p>
<p>define service{<br />
        use             generic-service<br />
        host_name       levym<br />
        service_description     PerfMon Processor Counter<br />
        check_command   check_perfcounter!5666!Max!70!85!&#8221;\\Processor(_total)\\% Processor Time&#8221;<br />
}</p>
<p>define service{<br />
        use             generic-service<br />
        host_name       levym<br />
        service_description     PerfMon Avg Disk Queue Length<br />
        check_command   check_perfcounter!5666!Max!3!9!&#8221;\\PhysicalDisk(_Total)\\Avg. Disk Queue Length&#8221;<br />
}</p>
<p>Command line results:</p>
<p>mhl-sles11:/usr/lib/nagios/plugins # ./check_nrpe -H 192.168.150.230 -p 5666 -c CheckCounter -a &#8220;\\Processor(_total)\\% Processor Time&#8221; MaxWarn=70 MaxCrit=85<br />
OK all counters within bounds.|&#8217;\Processor(_total)\% Processor Time&#8217;=0;70;85; </p>
<p>mhl-sles11:/usr/lib/nagios/plugins # ./check_nrpe -H 192.168.150.230 -p 5666 -c CheckCounter -a &#8220;\\PhysicalDisk(_Total)\\Avg. Disk Queue Length&#8221; MaxWarn=70 MaxCrit=85<br />
OK all counters within bounds.|&#8217;\PhysicalDisk(_Total)\Avg. Disk Queue Length&#8217;=0.27468140000000002;70;85;<br />
mhl-sles11:/usr/lib/nagios/plugins # </p>
<p>thanks again for all your help!!!</p>
<p>Mark</p>
]]></content:encoded>
	</item>
</channel>
</rss>

