<?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 McLearnagios | John McLear</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>Thu, 17 May 2012 21:14:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://primaryblogger.co.uk/?v=3.3.2</generator>
		<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 rel="nofollow" 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 rel="nofollow" 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="nofollow" 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 rel="nofollow" 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]" rel="nofollow" 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>
<p class="wp-report-this"><a href="http://mclear.co.uk?moderation_action=report_form&object_type=post&object_id=892&width=250&height=300" class="thickbox" title="Report This Post">Report This Post</a></p><p class="relatedP">Related posts:<ol>
<li class="relatedP"><a href='http://mclear.co.uk/2011/09/20/jquery-autoque-plugin/' rel='bookmark' title='jQuery autocue plugin'>jQuery autocue plugin</a> <small>I have been working on a autocue/teleprompter jQuery plugin.  An autocue...</small></li>
<li class="relatedP"><a href='http://mclear.co.uk/2010/04/27/nagios-php-requirement-workaround/' rel='bookmark' title='Nagios PHP requirement workaround'>Nagios PHP requirement workaround</a> <small>Nagios is server monitoring software used by many schools worldwide,...</small></li>
<li class="relatedP"><a href='http://mclear.co.uk/2010/09/02/construct-in-the-classroom-the-free-open-source-game-creator/' rel='bookmark' title='Construct in the classroom &#8211; The free open-source game creator'>Construct in the classroom &#8211; The free open-source game creator</a> <small>Scirra Construct is an game construction tool that looks like...</small></li>
</ol></p>]]></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>
<p class="wp-report-this"><a href="http://mclear.co.uk?moderation_action=report_form&object_type=post&object_id=282&width=250&height=300" class="thickbox" title="Report This Post">Report This Post</a></p><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>
<p class="wp-report-this"><a href="http://mclear.co.uk?moderation_action=report_form&object_type=post&object_id=105&width=250&height=300" class="thickbox" title="Report This Post">Report This Post</a></p><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>

