<?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>SurlyJake &#187; Zabbix</title>
	<atom:link href="http://www.surlyjake.com/category/zabbix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 15:28:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Monitoring Flexlm usage with Zabbix</title>
		<link>http://www.surlyjake.com/2010/11/monitoring-flexlm-usage-with-zabbix/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-flexlm-usage-with-zabbix</link>
		<comments>http://www.surlyjake.com/2010/11/monitoring-flexlm-usage-with-zabbix/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 20:16:10 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[gnu tools]]></category>
		<category><![CDATA[license usage]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[lmtools]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=677</guid>
		<description><![CDATA[Flexlm license usage can be a hard thing to accurately measure and monitor. Luckily, the output from lmutil can be used to display license usage. First thing to do is locate the lmutil binary and try to get it to run. I use Flexlm for autodesk on Windows and ESRI on linux(centOS). Windows: This server [...]]]></description>
			<content:encoded><![CDATA[<p>Flexlm <a href="http://www.surlyjake.com/tag/license-usage/" class="st_tag internal_tag" rel="tag" title="Posts tagged with license usage">license usage</a> can be a hard thing to accurately measure and monitor. Luckily, the output from lmutil can be used to display <a href="http://www.surlyjake.com/tag/license-usage/" class="st_tag internal_tag" rel="tag" title="Posts tagged with license usage">license usage</a>. First thing to do is locate the lmutil binary and try to get it to run. I use Flexlm for autodesk on <a href="http://www.surlyjake.com/tag/windows/" class="st_tag internal_tag" rel="tag" title="Posts tagged with windows">Windows</a> and ESRI on <a href="http://www.surlyjake.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">linux</a>(centOS).</p>
<p style="padding-left: 30px;"><strong>Windows:</strong><br />
This server seemed to want the  license file specified. You may need to launch the <a href="http://www.surlyjake.com/tag/lmtools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with lmtools">lmtools</a> GUI tool and  watch the status bar for the path to it. This is what mine looked like:</p>
<pre><code>"c:\program files\autodesk network license manager\lmutil" lmstat -c "c:\program files\autodesk network license manager\license\license.lic" -a</code></pre>
<p style="padding-left: 30px;"><strong>Linux:</strong></p>
<pre><code>/home/esri/arcgis/license10.0/bin/lmutil lmstat -a</code></pre>
<p>That will spit out the current license usage for all your products. To isolate the numbers we want to monitor, we will be piping the output into some other commands like find and cut.<br />
I recommend using the <a href="http://www.surlyjake.com/tag/gnu-tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with gnu tools">GNU tools</a> for windows http://gnuwin32.sourceforge.net/. These examples use the built-in &#8216;find&#8217; utility, and a &#8216;cut.exe&#8217; tool i found googling around. I had overlooked the gnutools when I first set this up. My mistake can be your gain. With gnutools, it will be easy to isolate the output you want using &#8216;grep&#8217; and &#8216;cut&#8217;. First, isolate the line you are looking for with grep. You will have to figure out what feature code you want to monitor. mine looks like this:</p>
<p style="padding-left: 30px;"><strong>Windows:</strong></p>
<pre><code>"c:\program files\autodesk network license manager\lmutil" lmstat -c "c:\program files\autodesk network license manager\license\license.lic" -a | find /i "64300acd_f:"</code></pre>
<p style="padding-left: 30px;"><strong>Linux:</strong></p>
<pre><code>/home/esri/arcgis/license10.0/bin/lmutil lmstat -a | grep ARC/INFO</code></pre>
<p>now that you have the right line,  you can trim the extra characters with &#8216;cut&#8217;. It will take some experimentation to get it right.:</p>
<p style="padding-left: 30px;"><strong>Windows:</strong></p>
<pre><code>"c:\program files\autodesk network license manager\lmutil" lmstat -c "c:\program files\autodesk network license manager\license\license.lic" -a | find /i "64300acd_f:" | cut -c 62-64</code></pre>
<p style="padding-left: 30px;"><strong>Linux:</strong></p>
<pre><code>/home/esri/arcgis/license10.0/bin/lmutil lmstat -a | grep ARC/INFO | cut -c 59-61</code></pre>
<p>The output now should be only the number of licenses being used.</p>
<p>To allow <a href="http://www.surlyjake.com/tag/zabbix/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Zabbix">zabbix</a> to monitor this value, we need to create a &#8216;UserParameter&#8217; read up on it here: <a href="http://www.zabbix.com/documentation/1.8/manual/config/user_parameters">http://www.zabbix.com/documentation/1.8/manual/config/user_parameters</a>. This is what the parameter looks like on my servers:</p>
<p style="padding-left: 30px;"><strong>Windows:</strong></p>
<pre><code>UserParameter=licenses.autocad.used,"c:\program files\autodesk network license manager\lmutil" lmstat -c "c:\program files\autodesk network license manager\license\license.lic" -a | find /i "64300acd_f:" | cut -c 62-64</code></pre>
<p style="padding-left: 30px;"><strong>Linux:</strong></p>
<pre><code>UserParameter=licenses.arcinfo.used,/home/esri/arcgis/license10.0/bin/lmutil lmstat -a | grep ARC/INFO | cut -c 59-61</code></pre>
<p>Once you have the userparameter created on the license server, restart the agent and add an item in zabbix to begin collecting values.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2010/11/monitoring-flexlm-usage-with-zabbix/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2010/11/monitoring-flexlm-usage-with-zabbix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zabbix 1.6 Proxy with Debian</title>
		<link>http://www.surlyjake.com/2008/10/zabbix-16-proxy-with-debian/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zabbix-16-proxy-with-debian</link>
		<comments>http://www.surlyjake.com/2008/10/zabbix-16-proxy-with-debian/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 19:10:21 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[1.6]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=42</guid>
		<description><![CDATA[I set up a Zabbix Proxy today on a little VM. looks to work nicely. Intructions will be kept up to date on this page.]]></description>
			<content:encoded><![CDATA[<p>I set up a <a href="http://www.surlyjake.com/tag/zabbix/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Zabbix">Zabbix</a> <a href="http://www.surlyjake.com/tag/proxy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with proxy">Proxy</a> today on a little VM. looks to work nicely. Intructions will be kept up to date on <a title="this page" href="http://www.zabbix.com/wiki/howto/install/debian/zabbix_proxy_on_debian_sqlite" target="_self">this page</a>.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/10/zabbix-16-proxy-with-debian/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/10/zabbix-16-proxy-with-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uninstall MySQL 5 from Debian</title>
		<link>http://www.surlyjake.com/2008/09/uninstall-mysql-5-from-debian/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uninstall-mysql-5-from-debian</link>
		<comments>http://www.surlyjake.com/2008/09/uninstall-mysql-5-from-debian/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 14:12:32 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=34</guid>
		<description><![CDATA[I completely. completely messed up MySQL. Badly. I wiped out the data directory (/var/lib/mysql in Debian) and the went to remove mysql &#8230; apt-get remove --purge mysql-server That only deleted something like 86K. dissapointing. It looks like &#8220;mysql-server&#8221; is a shortcut pointing to the latest version of the software. The real software is found  under [...]]]></description>
			<content:encoded><![CDATA[<p>I completely. <span style="text-decoration: underline;">completely </span>messed up <a href="http://www.surlyjake.com/tag/mysql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with MySQL">MySQL</a>. Badly. I wiped out the data directory (/var/lib/<a href="http://www.surlyjake.com/tag/mysql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with MySQL">mysql</a> in <a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">Debian</a>) and the went to remove mysql &#8230;<br />
<code><a href="http://www.surlyjake.com/tag/apt/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apt">apt</a>-get remove --purge mysql-server<br />
</code><br />
That only deleted something like 86K. dissapointing. It looks like &#8220;mysql-server&#8221; is a shortcut pointing to the latest version of the software. The real software is found  under the name &#8220;mysql-server-50&#8243;. So what made it happen was:<br />
<code>apt-get remove --purge mysql-server*<br />
</code><br />
That&#8217;ll wipe out whatever mysql install is in place.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/09/uninstall-mysql-5-from-debian/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/09/uninstall-mysql-5-from-debian/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

