<?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>Carlos&#039; Corner &#187; 3i</title>
	<atom:link href="http://cars.lostroncos.org/tag/3i/feed/" rel="self" type="application/rss+xml" />
	<link>http://cars.lostroncos.org</link>
	<description>The tired geek-dad in the corner</description>
	<lastBuildDate>Wed, 12 May 2010 19:46:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nagios ESX3i Scripts and ESX4i</title>
		<link>http://cars.lostroncos.org/2009/06/29/nagios-esx3i-scripts-and-esx4i/</link>
		<comments>http://cars.lostroncos.org/2009/06/29/nagios-esx3i-scripts-and-esx4i/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 22:57:09 +0000</pubDate>
		<dc:creator>cars</dc:creator>
				<category><![CDATA[NAgios]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[3i]]></category>
		<category><![CDATA[4i]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[esx3i]]></category>
		<category><![CDATA[esx4i]]></category>
		<category><![CDATA[esxi]]></category>

		<guid isPermaLink="false">http://cars.lostroncos.org/?p=193</guid>
		<description><![CDATA[<p>This is just an update, but the scripts I wrote for use with Nagios and ESX3i seem to work just fine with ESX4i (at least in my home lab environment using Dell Poweredge 2850s).</p>
]]></description>
			<content:encoded><![CDATA[<p>This is just an update, but the <a href="http://cars.lostroncos.org/2008/03/07/updated-esx-3i-scripts-for-nagios/">scripts I wrote for use with Nagios and ESX3i</a> seem to work just fine with ESX4i (at least in my home lab environment using Dell Poweredge 2850s).</p>
]]></content:encoded>
			<wfw:commentRss>http://cars.lostroncos.org/2009/06/29/nagios-esx3i-scripts-and-esx4i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Monitoring Items in Zabbix for Nagios plugins &#8211; part 1 (Log data)</title>
		<link>http://cars.lostroncos.org/2008/04/03/creating-monitoring-items-in-zabbix-for-nagios-plugins-part-1-log-data/</link>
		<comments>http://cars.lostroncos.org/2008/04/03/creating-monitoring-items-in-zabbix-for-nagios-plugins-part-1-log-data/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 05:11:12 +0000</pubDate>
		<dc:creator>cars</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[zabbix]]></category>
		<category><![CDATA[3i]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[external check]]></category>

		<guid isPermaLink="false">http://cars.lostroncos.org/2008/04/03/creating-monitoring-items-in-zabbix-for-nagios-plugins-part-1-log-data/</guid>
		<description><![CDATA[<p style="margin-left: 1pt">One of the things I wanted to check in looking at Zabbix was how hard it would be to use the Nagios plugins I wrote/modified for monitoring ESX 3i in Zabbix.</p>
<p style="margin-left: 1pt">It turns out that they are usable pretty much as is though there is a minor modification that needs to be [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-left: 1pt">One of the things I wanted to check in looking at Zabbix was how hard it would be to use the <a href="http://cars.lostroncos.org/2008/03/07/updated-esx-3i-scripts-for-nagios/">Nagios plugins</a> I wrote/modified for monitoring ESX 3i in Zabbix.</p>
<p style="margin-left: 1pt">It turns out that they are usable pretty much as is though there is a minor modification that needs to be made on how they accept/expect parameters. There are however a couple of ways to approach setting them up. Zabbix supports maintaining a couple of different kinds of data for external checks (as well as in general). These include:</p>
<ul>
<li>
<p style="margin-left: 28pt">Float</p>
</li>
<li>
<p style="margin-left: 28pt">Integer</p>
</li>
<li>
<p style="margin-left: 28pt">Text</p>
</li>
<li>
<p style="margin-left: 28pt">Log</p>
</li>
<li>
<p style="margin-left: 28pt">Character</p>
</li>
</ul>
<p style="margin-left: 1pt">The Nagios plugins I &#8216;m concerned in looking at will probably work with either the Log type or Integer. The external check &#8220;Item&#8221; type is just that a check. In and of itself it doesn&#8217;t make anything happen in terms of alerting or notifications. For that we need to set up &#8220;Triggers.&#8221; I&#8217;ll cover setting up an Item using Log type data in this post.</p>
<p style="margin-left: 1pt"><span id="more-76"></span></p>
<p style="margin-left: 1pt">I&#8217;ve created a template in Zabbix for my 3i boxes to which I&#8217;ll be attaching these &#8220;Items&#8221; so that they&#8217;re available for anything built off this template.</p>
<p style="margin-left: 1pt">To start we&#8217;ll need to log into the Zabbix web console, select &#8220;Configuration&#8221; and then Items. Then we need to narrow down object we&#8217;re working on using the Group and Host dropdowns. Here I&#8217;ve used the group GO_ESX and the template Template_GO_ESX_3i. Next click &#8220;Create Item&#8221;</p>
<p style="margin-left: 1pt"><img src="http://cars.lostroncos.org/wp-content/uploads/2008/04/040408-0510-creatingmon1.png" /><span style="font-size: 12pt; font-family: Times New Roman"><br />
</span></p>
<p style="margin-left: 1pt"><img src="http://cars.lostroncos.org/wp-content/uploads/2008/04/040408-0510-creatingmon2.png" /><span style="font-size: 12pt; font-family: Times New Roman"><br />
</span></p>
<p style="margin-left: 1pt">We need to fill in the &#8220;description&#8221; field with something meaningful to us. In this case we&#8217;re going to be using the script <strong><em>check_3i_sensors</em></strong> which returns info about the various sensors in the machine (of particular interest are the power supplies and their redundancy) So we&#8217;ll use &#8220;Check 3i Sensors&#8221; as the description. The &#8220;Type&#8221; needs to be changed to External Check. The key in this case is actually the name of the script to run and any parameters. For external checks the format is:</p>
<p style="margin-left: 28pt">Script(parameters)</p>
<p style="margin-left: 28pt">Where:</p>
<p style="margin-left: 55pt">script &#8211; is the name of the script</p>
<p style="margin-left: 55pt">Parameters is the list of command line parameters</p>
<p style="margin-left: 1pt">Zabbix will execute the script from the directory specified by the ExternalScripts option in zabbix_server.conf. (By default this /etc/zabbix/externalscripts) Zabbix will add the hostname as the first parameter and then append the list specified in the (parameters) piece of the definition. As an example:</p>
<table border="0" style="border-collapse: collapse">
<tr>
<td style="border: #a3a3a3 1pt solid; padding: 5px"><span style="font-size: 10pt">Example 1: </span></td>
<td style="border-right: #a3a3a3 1pt solid; border-top: #a3a3a3 1pt solid; border-left: medium none; border-bottom: #a3a3a3 1pt solid; padding: 5px"><span style="font-size: 10pt">Execute script check_oracle.sh with parameters &#8220;-h 192.168.1.4&#8243;.<br />
</span><span style="font-size: 10pt">Host name &#8216;www1.company.com&#8217;.</span></td>
</tr>
</table>
<p style="margin-left: 28pt"><span style="font-size: 10pt; font-family: Courier New">check_oracle.sh[-h 192.168.1.4]<br />
</span></p>
<p style="margin-left: 28pt"><span style="font-size: 10pt">ZABBIX will execute:<br />
</span></p>
<p style="margin-left: 28pt"><span style="font-size: 10pt; font-family: Courier New">check_oracle.sh www1.company.com -h 192.168.1.4.<br />
</span></p>
<p style="margin-left: 28pt">&nbsp;</p>
<p style="margin-left: 1pt"><em>[ Here is where one of the drawbacks of Zabbix appears when compared to Nagios. I haven't yet found a way to alter the parameters that are sent to the script on a per host basis. It is of course possible to set up the checks on each host rather than using the template, but the template should in theory be used to save us some of that repetitive work. If we were to go forward with this it ought to be possible to automate the process. If we define our process to include creating a monitoring user on each ESX host with the same name and password then using the template becomes much more feasible ]<br />
</em></p>
<p style="margin-left: 1pt">So for the sensors script we would enter the following for the key: check_3i_sensors( &#8211;username zabbix &#8211;password zabbix)</p>
<p style="margin-left: 1pt">Since zabbix already includes the hostname for us we don&#8217;t need to specify it. (But this is where the modification to the nagios plugins becomes necessary to properly handle the way the argument is passed) On my test ESX 3i server I&#8217;ve created a local user called &#8216;zabbix&#8217; which has read-only privileges to use for connecting and running the external check.</p>
<p style="margin-left: 1pt">In the &#8220;Type of information&#8221; field select &#8220;Log&#8221; via the dropdown menu. This will cause the fields on the screen to change. Specify a value for the update interval (I usually use 60 seconds) and any flexible intervals if necessary as well as the number of days to keep history and trend data (see image below) Then click the &#8220;Save&#8221; button.</p>
<p style="margin-left: 1pt"><img src="http://cars.lostroncos.org/wp-content/uploads/2008/04/040408-0510-creatingmon3.png" /><span style="font-size: 12pt; font-family: Times New Roman"><br />
</span></p>
<p style="margin-left: 1pt">This needs to be repeated for any other plugins that are applicable to the template. As show below I&#8217;ve created two External checks, one for Sensor data, one for Storage status.</p>
<p style="margin-left: 1pt"><img src="http://cars.lostroncos.org/wp-content/uploads/2008/04/040408-0510-creatingmon4.png" /><span style="font-size: 12pt; font-family: Times New Roman"><br />
</span></p>
<p style="margin-left: 1pt">Next you&#8217;ll need to create a host based on your template. Here I&#8217;ve created a host call &#8220;Steve_ESX_2950&#8243; based on the template. Next if you wait a few minutes and then go the &#8220;Monitoring&#8221; tab and select overview (and if necessary narrow down the show servers to see your new host) you should see something like the image below:</p>
<p style="margin-left: 1pt"><img src="http://cars.lostroncos.org/wp-content/uploads/2008/04/040408-0510-creatingmon5.png" /><span style="font-size: 12pt; font-family: Times New Roman"><br />
</span></p>
<p style="margin-left: 1pt">Looking at this we can tell out external check has run and in this particular case it appears the sensor status is &#8220;GREEN&#8221;. If you click on the field you can see the last couple of hundred values for that particular item. You&#8217;ll notice the &#8220;Severity&#8221; is not classified. What we need to do next (in the next post) is to set up a trigger based on the Value of the Item (i.e. when it&#8217;s not &#8220;Green&#8221;).</p>
<p style="margin-left: 1pt"><img src="http://cars.lostroncos.org/wp-content/uploads/2008/04/040408-0510-creatingmon6.png" /><span style="font-size: 12pt; font-family: Times New Roman"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://cars.lostroncos.org/2008/04/03/creating-monitoring-items-in-zabbix-for-nagios-plugins-part-1-log-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
