<?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>The Lazy Sys Admin&#187; Nagios</title>
	<atom:link href="http://www.thelazysysadmin.net/category/nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thelazysysadmin.net</link>
	<description>Why do things the hard way?</description>
	<lastBuildDate>Mon, 07 Jun 2010 22:24:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Monitor Mitel 3300 ICP with Nagios</title>
		<link>http://www.thelazysysadmin.net/2009/07/monitor-mitel-3300-icp-with-nagios/</link>
		<comments>http://www.thelazysysadmin.net/2009/07/monitor-mitel-3300-icp-with-nagios/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 09:01:04 +0000</pubDate>
		<dc:creator>Jon Smith</dc:creator>
				<category><![CDATA[Mitel]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[Alarms]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[PABX]]></category>
		<category><![CDATA[SNMP]]></category>

		<guid isPermaLink="false">http://www.thelazysysadmin.net/?p=578</guid>
		<description><![CDATA[I have a cluster of Mitel 3300 ICP PABX&#8217;s across several offices internationally and have been looking for a monitoring solution that can send alerts whenever an alarm is triggered on any one of the PABX controllers. Mitel already have a monitoring solution called Enterprise Manager, but this didn&#8217;t do what I wanted it to [...]]]></description>
			<content:encoded><![CDATA[<p>I have a cluster of Mitel 3300 ICP PABX&#8217;s across several offices internationally and have been looking for a monitoring solution that can send alerts whenever an alarm is triggered on any one of the PABX controllers. Mitel already have a monitoring solution called Enterprise Manager, but this didn&#8217;t do what I wanted it to do. Enterprise Manager will send out emails based on certain policies and allow for issue escalation but its features are a little limited. I already have an extensive Nagios setup that will SMS and email for alerts, so I looked at integrating with this system.</p>
<p><span id="more-578"></span>I have developed a script that will check the Mitel system via SNMP to check the current alarm level, if there is an alarm it will then make another SNMP call to the alarm categories table and list the current list of alarms as part of the alert. The script requires the perl module Net::SNMP and can be downloaded from the download section at the bottom of this post.</p>
<p>Usage:</p>
<pre class="brush: plain;">Usage: ./check_mitel.pl hostname [snmp community: Defaults to &quot;public&quot;]
            [snmp port: Defaults to &quot;161&quot;]</pre>
<p>Check Command Definition:</p>
<pre class="brush: plain;">define command{
        command_name    mitelalarm
        command_line    $USER1$/check_mitel.pl $HOSTADDRESS$ $ARG1$
}</pre>
<p>Service Template Definition:</p>
<pre class="brush: plain;">define service {
        name mitelalarm
        use base
        check_command mitelalarm
        register 0
}</pre>
<p>Service Definition (replace &#8220;public&#8221; with the SNMP Community set on your Mitel controller):</p>
<pre class="brush: plain;">define service {
        use base
        service_description Mitel Alarm Check
        check_command mitelalarm!public
        host_name mitelcontroller1
}</pre>
<p><strong>Download</strong>:</p>
<ul>
<li><a href="http://www.thelazysysadmin.net/wp-content/uploads/2009/07/check_mitel.pl">check_mitel.pl</a></li>
</ul>
<p>I have also been working on Cacti graphs of the Bandwidth management details, more on that early next month <img src='http://www.thelazysysadmin.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thelazysysadmin.net/2009/07/monitor-mitel-3300-icp-with-nagios/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitor Exchange Storage Groups in Nagios</title>
		<link>http://www.thelazysysadmin.net/2009/07/monitor-exchange-storage-groups-in-nagios/</link>
		<comments>http://www.thelazysysadmin.net/2009/07/monitor-exchange-storage-groups-in-nagios/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 06:30:54 +0000</pubDate>
		<dc:creator>Jon Smith</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[check_nt]]></category>
		<category><![CDATA[Information Store]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Storage Groups]]></category>

		<guid isPermaLink="false">http://www.thelazysysadmin.net/?p=564</guid>
		<description><![CDATA[I had a failure in one of my Exchange Storage Groups last night and the Storage Group had dismounted itself. However the Information Store service was still running and so were the other three Storage Groups on the server. So that got me to thinking, how do I monitor the individual Storage Groups for failures [...]]]></description>
			<content:encoded><![CDATA[<p>I had a failure in one of my Exchange Storage Groups last night and the Storage Group had dismounted itself. However the Information Store service was still running and so were the other three Storage Groups on the server. So that got me to thinking, how do I monitor the individual Storage Groups for failures with Nagios?</p>
<p><span id="more-564"></span>The solution involves using the check_nt plugin for Nagios and the Nagios pNSClient for windows, the following may work for any one of the Nagios Windows clients but you will have to test it for yourself.</p>
<p>Firstly the check command (Please click the View Source button in the code windows below to see the whole line)</p>
<pre class="brush: plain;">
define command{
  command_name    check_exchange_storage_group
  command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -w 1 -c 0 -v COUNTER -d SHOWALL -l &quot;\\MSExchangeIS Mailbox($ARG1$)\Client Logons&quot;,&quot;$ARG1$ Logons: %.f&quot;
}
</pre>
<p>$USER19$ on my installation is set to the port that Nagios Client for Windows uses. You will need to modify this to suit your needs.</p>
<p>Next define a Service Template</p>
<pre class="brush: plain;">
define service {
        name check_exchange_storage_group
        use base
        check_command check_exchange_storage_group
        register 0
}
</pre>
<p>Then define the service for each host you want to monitor</p>
<pre class="brush: plain;">
define service {
        use check_exchange_storage_group
        service_description Exch Storage Group - First Storage Group
        check_command check_exchange_storage_group!First Storage Group-Mailbox Store (ARCMAIL)
        host_name arcmail
}
</pre>
<p>The following line is the important part, this is what tells Nagios which storage group to monitor</p>
<p><em>check_command check_exchange_storage_group!First Storage Group-Mailbox Store (ARCMAIL)</em></p>
<p>To find out what you need to put after the ! (Exclamation Point) on the check command line check out your Exchange System Manager</p>
<p><a href="http://www.thelazysysadmin.net/wp-content/uploads/2009/07/ExchangeMonitoring.jpg"><img class="alignnone size-full wp-image-570" title="Exchange System Manager" src="http://www.thelazysysadmin.net/wp-content/uploads/2009/07/ExchangeMonitoring.jpg" alt="Exchange System Manager" width="398" height="373" /></a></p>
<p>And under &#8220;Administrative Group -&gt; &lt;&lt;Admin Group Name&gt;&gt; -&gt; Servers -&gt; &lt;&lt;Server Name&gt;&gt;&#8221; should be your storage groups (In most cases it should look very similar to above, it will be different if you have a large Exchange installation).</p>
<p>You need to put the names of the Storage Group and Mailbox store together separated by a dash, the Storage Group name required to function for the installation shown above is:</p>
<p><strong><em>First Storage Group-Mailbox Store (ARCMAIL)</em></strong></p>
<p>You need to put the whole name in there otherwise the check command will return critical as it cant find the storage group you are trying to monitor.</p>
<p>That should be all that is required to monitor your individual Exchange Storage Groups. A possible caveat is that when some backup software backs up Exchange it will dismount the storage group and hence cause an alarm, if this is the case you will need to put in some exemption times into your Nagios installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thelazysysadmin.net/2009/07/monitor-exchange-storage-groups-in-nagios/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>iPhone Development</title>
		<link>http://www.thelazysysadmin.net/2009/07/iphone-development/</link>
		<comments>http://www.thelazysysadmin.net/2009/07/iphone-development/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 03:32:40 +0000</pubDate>
		<dc:creator>Jon Smith</dc:creator>
				<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Alerts]]></category>
		<category><![CDATA[APNS]]></category>
		<category><![CDATA[Pager]]></category>
		<category><![CDATA[Push]]></category>

		<guid isPermaLink="false">http://www.thelazysysadmin.net/?p=482</guid>
		<description><![CDATA[For some strange, but unknown reason I decided to purchase a Mac Mini to try some iPhone Development. I have a few apps that I would like on my iPhone that are currently not available.]]></description>
			<content:encoded><![CDATA[<p>For some strange, but unknown reason I decided to purchase a Mac Mini to try some iPhone Development. I have a few apps that I would like on my iPhone that are currently not available.</p>
<p>My first app will be for a Nagios Pager service that will utilise the Push Notification features just released in iPhone OS 3.0. There will be two versions, Nagios Pager and Nagios Pager Pro. Nagios Pager will be a stand alone application that will talk to a backend service for delivering Push Notifications for Nagios alerts, Nagios Pager Pro will contain all the features of Nagios Pager as well as an iPhone based Nagios client.</p>
<p><span id="more-482"></span>The standard version will be released in the App Store for free and the Pro version will be for a small cost. There will also be various access methods for the backend service required for the Apple Push Notification Service (APNS). A free subscription to the backend will allow for one phone to access one nagios backend, while a paid subscription will allow for multiple phones access to multiple backends.</p>
<p>If you are interested in this service or you are interested in entering the beta program let me know via a comment and I will get in contact with you. Stay tuned for more development news.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thelazysysadmin.net/2009/07/iphone-development/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
