<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John McLear &#187; nagios</title>
	<atom:link href="http://mclear.co.uk/category/nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://mclear.co.uk</link>
	<description>My mission: To encourage effective use of ICT in Schools. My main focus is on ages 3-11.</description>
	<lastBuildDate>Sat, 04 Feb 2012 14:22:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://primaryblogger.co.uk/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Owl Nagios check plugin &#8211; Basic example inc. Source</title>
		<link>http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/</link>
		<comments>http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/#comments</comments>
		<pubDate>Mon, 17 May 2010 20:54:53 +0000</pubDate>
		<dc:creator>Admin Admin</dc:creator>
				<category><![CDATA[ICT]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://mclear.co.uk/?p=892</guid>
		<description><![CDATA[I wanted to make a nagios check for the OWL energy meter. First thing to note, don&#8217;t run any of the owl stuff while trying to run the check. Secondly, I included the source so feel free to use Visual C# to hack it. Third thing is, well, the OWL sensor software is very slow [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em">
<div class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/10799351@N00/2398908753"><img title="1hr41min 1.563e+010 q19.179 dark green on whit..." src="http://farm4.static.flickr.com/3241/2398908753_c2f008d3fa_m.jpg" alt="1hr41min 1.563e+010 q19.179 dark green on whit..." width="240" height="180" /></a><p class="wp-caption-text">Image by shannonpatrick17 via Flickr</p></div>
</div>
<p>I wanted to make a <a href="http://nagios.org">nagios</a> check for the OWL energy meter.</p>
<p>First thing to note, don&#8217;t run any of the owl stuff while trying to run the check.</p>
<p>Secondly, I included the source so feel free to use Visual C# to hack it.</p>
<p>Third thing is, well, the OWL sensor software is very slow to respond, infact if you don&#8217;t get any response from it after a few minutes I recommend turning the kettle on.  The check may take up to 10 minutes (how lame is that?) so I recommend you increase your time outs.</p>
<p>Finally I&#8217;m not familiar with Visual Studio, that&#8217;s why I did so little in Windows.  I just wanted an output I could work with in a nice dark environment.</p>
<p>The check in <strong>bin\release\sensorapp.exe</strong> waits for a signal from the transmitter then echos it to <a class="zem_slink" title="Command-line interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Command-line_interface">command line</a>.  Do with it what you will.  I&#8217;m pulling it into a simple .bat file.</p>
<p><a href="http://primaryschoolict.com/sensorapp.zip">Grab the files</a></p>
<div class="zemanta-pixie" style="margin-top: 10px;height: 15px"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/013b324f-5da1-41ff-b65e-083a5634533e/"><img class="zemanta-pixie-img" style="border: none;float: right" src="http://img.zemanta.com/reblog_e.png?x-id=013b324f-5da1-41ff-b65e-083a5634533e" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"> </span></div>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Owl+Nagios+check+plugin+-+Basic+example+inc.+Source&amp;link=http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AI%20wanted%20to%20make%20a%20nagios%20check%20for%20the%20OWL%20energy%20meter.%0D%0A%0D%0AFirst%20thing%20to%20note%2C%20don%27t%20run%20any%20of%20the%20owl%20stuff%20while%20trying%20to%20run%20the%20check.%0D%0A%0D%0ASecondly%2C%20I%20included%20the%20source%20so%20feel%20free%20to%20use%20Visual%20C%23%20to%20hack%20it.%0D%0A%0D%0AThird%20thing%20is%2C%20well%2C%20the%20OWL%20sensor%20software%20is%20very%20slow%20to%20resp&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Owl+Nagios+check+plugin+-+Basic+example+inc.+Source&amp;link=http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AI%20wanted%20to%20make%20a%20nagios%20check%20for%20the%20OWL%20energy%20meter.%0D%0A%0D%0AFirst%20thing%20to%20note%2C%20don%27t%20run%20any%20of%20the%20owl%20stuff%20while%20trying%20to%20run%20the%20check.%0D%0A%0D%0ASecondly%2C%20I%20included%20the%20source%20so%20feel%20free%20to%20use%20Visual%20C%23%20to%20hack%20it.%0D%0A%0D%0AThird%20thing%20is%2C%20well%2C%20the%20OWL%20sensor%20software%20is%20very%20slow%20to%20resp&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=Owl+Nagios+check+plugin+-+Basic+example+inc.+Source&amp;link=http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AI%20wanted%20to%20make%20a%20nagios%20check%20for%20the%20OWL%20energy%20meter.%0D%0A%0D%0AFirst%20thing%20to%20note%2C%20don%27t%20run%20any%20of%20the%20owl%20stuff%20while%20trying%20to%20run%20the%20check.%0D%0A%0D%0ASecondly%2C%20I%20included%20the%20source%20so%20feel%20free%20to%20use%20Visual%20C%23%20to%20hack%20it.%0D%0A%0D%0AThird%20thing%20is%2C%20well%2C%20the%20OWL%20sensor%20software%20is%20very%20slow%20to%20resp&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Owl+Nagios+check+plugin+-+Basic+example+inc.+Source&amp;link=http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AI%20wanted%20to%20make%20a%20nagios%20check%20for%20the%20OWL%20energy%20meter.%0D%0A%0D%0AFirst%20thing%20to%20note%2C%20don%27t%20run%20any%20of%20the%20owl%20stuff%20while%20trying%20to%20run%20the%20check.%0D%0A%0D%0ASecondly%2C%20I%20included%20the%20source%20so%20feel%20free%20to%20use%20Visual%20C%23%20to%20hack%20it.%0D%0A%0D%0AThird%20thing%20is%2C%20well%2C%20the%20OWL%20sensor%20software%20is%20very%20slow%20to%20resp&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Owl+Nagios+check+plugin+-+Basic+example+inc.+Source&amp;link=http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AI%20wanted%20to%20make%20a%20nagios%20check%20for%20the%20OWL%20energy%20meter.%0D%0A%0D%0AFirst%20thing%20to%20note%2C%20don%27t%20run%20any%20of%20the%20owl%20stuff%20while%20trying%20to%20run%20the%20check.%0D%0A%0D%0ASecondly%2C%20I%20included%20the%20source%20so%20feel%20free%20to%20use%20Visual%20C%23%20to%20hack%20it.%0D%0A%0D%0AThird%20thing%20is%2C%20well%2C%20the%20OWL%20sensor%20software%20is%20very%20slow%20to%20resp&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Owl+Nagios+check+plugin+-+Basic+example+inc.+Source&amp;link=http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AI%20wanted%20to%20make%20a%20nagios%20check%20for%20the%20OWL%20energy%20meter.%0D%0A%0D%0AFirst%20thing%20to%20note%2C%20don%27t%20run%20any%20of%20the%20owl%20stuff%20while%20trying%20to%20run%20the%20check.%0D%0A%0D%0ASecondly%2C%20I%20included%20the%20source%20so%20feel%20free%20to%20use%20Visual%20C%23%20to%20hack%20it.%0D%0A%0D%0AThird%20thing%20is%2C%20well%2C%20the%20OWL%20sensor%20software%20is%20very%20slow%20to%20resp&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Owl+Nagios+check+plugin+-+Basic+example+inc.+Source&amp;link=http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AI%20wanted%20to%20make%20a%20nagios%20check%20for%20the%20OWL%20energy%20meter.%0D%0A%0D%0AFirst%20thing%20to%20note%2C%20don%27t%20run%20any%20of%20the%20owl%20stuff%20while%20trying%20to%20run%20the%20check.%0D%0A%0D%0ASecondly%2C%20I%20included%20the%20source%20so%20feel%20free%20to%20use%20Visual%20C%23%20to%20hack%20it.%0D%0A%0D%0AThird%20thing%20is%2C%20well%2C%20the%20OWL%20sensor%20software%20is%20very%20slow%20to%20resp&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

<h3>Related Posts</h3>
<ol>
		<li><a href="http://mclear.co.uk/2011/09/20/jquery-autoque-plugin/" rel="bookmark">jQuery autocue plugin</a><!-- (8.4)--></li>
		<li><a href="http://mclear.co.uk/2010/04/27/nagios-php-requirement-workaround/" rel="bookmark">Nagios PHP requirement workaround</a><!-- (8.3)--></li>
		<li><a href="http://mclear.co.uk/2010/09/02/construct-in-the-classroom-the-free-open-source-game-creator/" rel="bookmark">Construct in the classroom &#8211; The free open-source game creator</a><!-- (6.7)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://mclear.co.uk/2010/05/17/owl-nagios-check-plugin-basic-example-inc-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the NRPE client, daemon and nagios plugins on debian</title>
		<link>http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/</link>
		<comments>http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 18:27:00 +0000</pubDate>
		<dc:creator>Admin Admin</dc:creator>
				<category><![CDATA[guide]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nrpe]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://mclear.primaryblogger.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/</guid>
		<description><![CDATA[We assuming have already configured nrpe on your nagios box and you are sudo&#8217;d/root Steps: adduser nagios (set the password)cd /home/nagioswget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz* If this step fails visit http://www.nagios.org/download/addons for the latest URL tar -zxvf nrpe-2.8.tar.gzcd nrpe-2.12apt-get install gcc gawk opensslapt-get install makeapt-get install libssl-devapt-get install nagios-plugins./configuremake allmake install-pluginmake install-daemonmake install-daemon-configecho &#8220;only_from = 0.0.0.1&#8243; >> /usr/local/nagios/etc/nrpe.cfg* [...]]]></description>
			<content:encoded><![CDATA[<p>We assuming have already configured nrpe on your nagios box and you are sudo&#8217;d/root</p>
<p>Steps:</p>
<p>adduser nagios (set the password)<br />cd /home/nagios<br />wget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz<br /><i>* If this step fails visit http://www.nagios.org/download/addons for the latest URL</i></p>
<p>tar -zxvf nrpe-2.8.tar.gz<br />cd nrpe-2.12<br />apt-get install gcc gawk openssl<br />apt-get install make<br />apt-get install libssl-dev<br />apt-get install nagios-plugins<br />./configure<br />make all<br />make install-plugin<br />make install-daemon<br />make install-daemon-config<br />echo &#8220;only_from = 0.0.0.1&#8243; >> /usr/local/nagios/etc/nrpe.cfg<br /><i>* Remember to replace 0.0.0.1 with your the IP address of your nagios server</i></p>
<p>cp init-script.debian /etc/init.d/nrpe<br />chmod 700 /etc/init.d/nrpe<br />/etc/init.d/nrpe start</p>
<p><span><i>You may want to make this script run on start up</i></span><br />update-rc.d nrpe defaults</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+the+NRPE+client%2C+daemon+and+nagios+plugins+on+debian&amp;link=http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/&amp;notes=We%20assuming%20have%20already%20configured%20nrpe%20on%20your%20nagios%20box%20and%20you%20are%20sudo%27d%2FrootSteps%3Aadduser%20nagios%20%28set%20the%20password%29cd%20%2Fhome%2Fnagioswget%20http%3A%2F%2Fprdownloads.sourceforge.net%2Fsourceforge%2Fnagios%2Fnrpe-2.12.tar.gz%2A%20If%20this%20step%20fails%20visit%20http%3A%2F%2Fwww.nagios.org%2Fdownload%2Faddons%20for%20the%20latest%20URLtar%20-&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+the+NRPE+client%2C+daemon+and+nagios+plugins+on+debian&amp;link=http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/&amp;notes=We%20assuming%20have%20already%20configured%20nrpe%20on%20your%20nagios%20box%20and%20you%20are%20sudo%27d%2FrootSteps%3Aadduser%20nagios%20%28set%20the%20password%29cd%20%2Fhome%2Fnagioswget%20http%3A%2F%2Fprdownloads.sourceforge.net%2Fsourceforge%2Fnagios%2Fnrpe-2.12.tar.gz%2A%20If%20this%20step%20fails%20visit%20http%3A%2F%2Fwww.nagios.org%2Fdownload%2Faddons%20for%20the%20latest%20URLtar%20-&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+the+NRPE+client%2C+daemon+and+nagios+plugins+on+debian&amp;link=http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/&amp;notes=We%20assuming%20have%20already%20configured%20nrpe%20on%20your%20nagios%20box%20and%20you%20are%20sudo%27d%2FrootSteps%3Aadduser%20nagios%20%28set%20the%20password%29cd%20%2Fhome%2Fnagioswget%20http%3A%2F%2Fprdownloads.sourceforge.net%2Fsourceforge%2Fnagios%2Fnrpe-2.12.tar.gz%2A%20If%20this%20step%20fails%20visit%20http%3A%2F%2Fwww.nagios.org%2Fdownload%2Faddons%20for%20the%20latest%20URLtar%20-&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+the+NRPE+client%2C+daemon+and+nagios+plugins+on+debian&amp;link=http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/&amp;notes=We%20assuming%20have%20already%20configured%20nrpe%20on%20your%20nagios%20box%20and%20you%20are%20sudo%27d%2FrootSteps%3Aadduser%20nagios%20%28set%20the%20password%29cd%20%2Fhome%2Fnagioswget%20http%3A%2F%2Fprdownloads.sourceforge.net%2Fsourceforge%2Fnagios%2Fnrpe-2.12.tar.gz%2A%20If%20this%20step%20fails%20visit%20http%3A%2F%2Fwww.nagios.org%2Fdownload%2Faddons%20for%20the%20latest%20URLtar%20-&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+the+NRPE+client%2C+daemon+and+nagios+plugins+on+debian&amp;link=http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/&amp;notes=We%20assuming%20have%20already%20configured%20nrpe%20on%20your%20nagios%20box%20and%20you%20are%20sudo%27d%2FrootSteps%3Aadduser%20nagios%20%28set%20the%20password%29cd%20%2Fhome%2Fnagioswget%20http%3A%2F%2Fprdownloads.sourceforge.net%2Fsourceforge%2Fnagios%2Fnrpe-2.12.tar.gz%2A%20If%20this%20step%20fails%20visit%20http%3A%2F%2Fwww.nagios.org%2Fdownload%2Faddons%20for%20the%20latest%20URLtar%20-&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+the+NRPE+client%2C+daemon+and+nagios+plugins+on+debian&amp;link=http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/&amp;notes=We%20assuming%20have%20already%20configured%20nrpe%20on%20your%20nagios%20box%20and%20you%20are%20sudo%27d%2FrootSteps%3Aadduser%20nagios%20%28set%20the%20password%29cd%20%2Fhome%2Fnagioswget%20http%3A%2F%2Fprdownloads.sourceforge.net%2Fsourceforge%2Fnagios%2Fnrpe-2.12.tar.gz%2A%20If%20this%20step%20fails%20visit%20http%3A%2F%2Fwww.nagios.org%2Fdownload%2Faddons%20for%20the%20latest%20URLtar%20-&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+the+NRPE+client%2C+daemon+and+nagios+plugins+on+debian&amp;link=http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/&amp;notes=We%20assuming%20have%20already%20configured%20nrpe%20on%20your%20nagios%20box%20and%20you%20are%20sudo%27d%2FrootSteps%3Aadduser%20nagios%20%28set%20the%20password%29cd%20%2Fhome%2Fnagioswget%20http%3A%2F%2Fprdownloads.sourceforge.net%2Fsourceforge%2Fnagios%2Fnrpe-2.12.tar.gz%2A%20If%20this%20step%20fails%20visit%20http%3A%2F%2Fwww.nagios.org%2Fdownload%2Faddons%20for%20the%20latest%20URLtar%20-&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

<h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://mclear.co.uk/2010/01/18/installing-the-nrpe-client-daemon-and-nagios-plugins-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send_NSCA.exe example</title>
		<link>http://mclear.co.uk/2009/08/11/send_nsca-exe-example/</link>
		<comments>http://mclear.co.uk/2009/08/11/send_nsca-exe-example/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 21:41:00 +0000</pubDate>
		<dc:creator>Admin Admin</dc:creator>
				<category><![CDATA[nagios]]></category>
		<category><![CDATA[nsca]]></category>
		<category><![CDATA[send_nsca]]></category>

		<guid isPermaLink="false">http://mclear.primaryblogger.co.uk/2009/08/11/send_nsca-exe-example/</guid>
		<description><![CDATA[1. Make sure you edit your send_nsca.cfg accordingly 2. Copy to c:\test.vbs Set oArgs = WScript.Arguments.UnnamedSet WshShell = CreateObject(&#8220;WScript.Shell&#8221;)&#8216; 0 = hostname of local machine&#8216; 1 = checkname&#8216; 2 = result, 0 is ok, 1 is warn, 2 is crit&#8216; 3 = notes from the output&#8216; Written by John McLear of Primary Technology 2009exepath = [...]]]></description>
			<content:encoded><![CDATA[<p>1. Make sure you edit your send_nsca.cfg accordingly</p>
<p>2. Copy to c:\test.vbs</p>
<blockquote><p>Set oArgs = WScript.Arguments.Unnamed<br />Set WshShell = CreateObject(&#8220;WScript.Shell&#8221;)<br />&#8216; 0 = hostname of local machine<br />&#8216; 1 = checkname<br />&#8216; 2 = result, 0 is ok, 1 is warn, 2 is crit<br />&#8216; 3 = notes from the output<br />&#8216; Written by John McLear of Primary Technology 2009<br />exepath = &#8220;c:\program files\montitech\nc_net\config\send_nsca.exe&#8221; &#8216; path to exe<br />cfgpath = &#8220;c:\program files\montitech\nc_net\config\send_nsca.cfg&#8221; &#8216; path to cfg<br />host = &#8220;nagios.server.com&#8221; &#8216;host nagios server<br />tab = Chr(9)<br />prefix = &#8220;c:\windows\system32\cmd.exe /q /c echo &#8220;<br />cmd= prefix &#038; oArgs.Item(0) &#038; tab &#038; oArgs.Item(1) &#038; tab &#038; oArgs.Item(2) &#038; tab &#038; oArgs.Item(3) &#038; &#8221; | &#8221; &#038; chr(34) &#038; exepath &#038; chr(34) &#038; &#8221; -H &#8221; &#038; host &#038; &#8221; -c &#8221; &#038; chr(34) &#038; cfgpath &#038; chr(34) <br />wscript.echo cmd<br />&#8216; Remove or rem out above line after debug<br />WshShell.Run(cmd)</p></blockquote>
<p>3. Edit nagios.server.com to your nagios server name.</p>
<p>4. Start &#8211; run &#8211; cmd &#8211; cscript c:\test.vbs Myhostname Mycheckname Status(seebelow) <br />My Example: cscript c:\test.vbs mooocow simsdbversion 0 3.142</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://mclear.co.uk/2009/08/11/send_nsca-exe-example/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Send_NSCA.exe+example&amp;link=http://mclear.co.uk/2009/08/11/send_nsca-exe-example/&amp;notes=1.%20Make%20sure%20you%20edit%20your%20send_nsca.cfg%20accordingly2.%20Copy%20to%20c%3A%5Ctest.vbsSet%20oArgs%20%3D%20WScript.Arguments.UnnamedSet%20WshShell%20%3D%20CreateObject%28%22WScript.Shell%22%29%27%200%20%3D%20hostname%20of%20local%20machine%27%201%20%3D%20checkname%27%202%20%3D%20result%2C%200%20is%20ok%2C%201%20is%20warn%2C%202%20is%20crit%27%203%20%3D%20notes%20from%20the%20output%27%20Written%20by%20John%20McLear%20of%20P&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Send_NSCA.exe+example&amp;link=http://mclear.co.uk/2009/08/11/send_nsca-exe-example/&amp;notes=1.%20Make%20sure%20you%20edit%20your%20send_nsca.cfg%20accordingly2.%20Copy%20to%20c%3A%5Ctest.vbsSet%20oArgs%20%3D%20WScript.Arguments.UnnamedSet%20WshShell%20%3D%20CreateObject%28%22WScript.Shell%22%29%27%200%20%3D%20hostname%20of%20local%20machine%27%201%20%3D%20checkname%27%202%20%3D%20result%2C%200%20is%20ok%2C%201%20is%20warn%2C%202%20is%20crit%27%203%20%3D%20notes%20from%20the%20output%27%20Written%20by%20John%20McLear%20of%20P&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=Send_NSCA.exe+example&amp;link=http://mclear.co.uk/2009/08/11/send_nsca-exe-example/&amp;notes=1.%20Make%20sure%20you%20edit%20your%20send_nsca.cfg%20accordingly2.%20Copy%20to%20c%3A%5Ctest.vbsSet%20oArgs%20%3D%20WScript.Arguments.UnnamedSet%20WshShell%20%3D%20CreateObject%28%22WScript.Shell%22%29%27%200%20%3D%20hostname%20of%20local%20machine%27%201%20%3D%20checkname%27%202%20%3D%20result%2C%200%20is%20ok%2C%201%20is%20warn%2C%202%20is%20crit%27%203%20%3D%20notes%20from%20the%20output%27%20Written%20by%20John%20McLear%20of%20P&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Send_NSCA.exe+example&amp;link=http://mclear.co.uk/2009/08/11/send_nsca-exe-example/&amp;notes=1.%20Make%20sure%20you%20edit%20your%20send_nsca.cfg%20accordingly2.%20Copy%20to%20c%3A%5Ctest.vbsSet%20oArgs%20%3D%20WScript.Arguments.UnnamedSet%20WshShell%20%3D%20CreateObject%28%22WScript.Shell%22%29%27%200%20%3D%20hostname%20of%20local%20machine%27%201%20%3D%20checkname%27%202%20%3D%20result%2C%200%20is%20ok%2C%201%20is%20warn%2C%202%20is%20crit%27%203%20%3D%20notes%20from%20the%20output%27%20Written%20by%20John%20McLear%20of%20P&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Send_NSCA.exe+example&amp;link=http://mclear.co.uk/2009/08/11/send_nsca-exe-example/&amp;notes=1.%20Make%20sure%20you%20edit%20your%20send_nsca.cfg%20accordingly2.%20Copy%20to%20c%3A%5Ctest.vbsSet%20oArgs%20%3D%20WScript.Arguments.UnnamedSet%20WshShell%20%3D%20CreateObject%28%22WScript.Shell%22%29%27%200%20%3D%20hostname%20of%20local%20machine%27%201%20%3D%20checkname%27%202%20%3D%20result%2C%200%20is%20ok%2C%201%20is%20warn%2C%202%20is%20crit%27%203%20%3D%20notes%20from%20the%20output%27%20Written%20by%20John%20McLear%20of%20P&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Send_NSCA.exe+example&amp;link=http://mclear.co.uk/2009/08/11/send_nsca-exe-example/&amp;notes=1.%20Make%20sure%20you%20edit%20your%20send_nsca.cfg%20accordingly2.%20Copy%20to%20c%3A%5Ctest.vbsSet%20oArgs%20%3D%20WScript.Arguments.UnnamedSet%20WshShell%20%3D%20CreateObject%28%22WScript.Shell%22%29%27%200%20%3D%20hostname%20of%20local%20machine%27%201%20%3D%20checkname%27%202%20%3D%20result%2C%200%20is%20ok%2C%201%20is%20warn%2C%202%20is%20crit%27%203%20%3D%20notes%20from%20the%20output%27%20Written%20by%20John%20McLear%20of%20P&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Send_NSCA.exe+example&amp;link=http://mclear.co.uk/2009/08/11/send_nsca-exe-example/&amp;notes=1.%20Make%20sure%20you%20edit%20your%20send_nsca.cfg%20accordingly2.%20Copy%20to%20c%3A%5Ctest.vbsSet%20oArgs%20%3D%20WScript.Arguments.UnnamedSet%20WshShell%20%3D%20CreateObject%28%22WScript.Shell%22%29%27%200%20%3D%20hostname%20of%20local%20machine%27%201%20%3D%20checkname%27%202%20%3D%20result%2C%200%20is%20ok%2C%201%20is%20warn%2C%202%20is%20crit%27%203%20%3D%20notes%20from%20the%20output%27%20Written%20by%20John%20McLear%20of%20P&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

<h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://mclear.co.uk/2009/08/11/send_nsca-exe-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

