<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Introducing mysql-snmp!</title>
	<atom:link href="http://www.masterzen.fr/2009/04/13/introducing-mysql-snmp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masterzen.fr/2009/04/13/introducing-mysql-snmp/</link>
	<description>Journey in a software world...</description>
	<lastBuildDate>Thu, 29 Jul 2010 10:06:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: masterzen</title>
		<link>http://www.masterzen.fr/2009/04/13/introducing-mysql-snmp/comment-page-1/#comment-319</link>
		<dc:creator>masterzen</dc:creator>
		<pubDate>Fri, 04 Dec 2009 21:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.masterzen.fr/?p=35#comment-319</guid>
		<description>@adrian,

First: better open an issue here:
http://github.com/masterzen/mysql-snmp/issues
if you want to get support.

While I don&#039;t exactly know why it behaves like that for you, make sure you at least SNMP v2c or v3 to query mysql-snmp otherwise it won&#039;t answer correctly 64bits counter and will stop scanning the table when encountering a 64 bit value.

You can configure opennms to query less oid per requests (see maxVarsPerPdu in datacollection-config.xml).

Still on the same subject, make sure to use a recent net-snmp on which you should add the following patch:
http://sourceforge.net/tracker/?func=detail&amp;aid=2890931&amp;group_id=12694&amp;atid=312694

This patch (which I originally contributed but wasn&#039;t correctly applied uptream) fixes how counter 64 are handled in perl.

Also, I plan to release 1.0 soon, make sure to try the current 1.0rc2 (from the github repository or download section).

Note: I tried your snmpgetnext command successfully on my own servers and it displays the correct results (with 1.0rc2) and net-snmp 5.4.1 (patched) under debian lenny.
Of course with -v2c it reports the correct result and doesn&#039;t choke on the last oid.
What net-snmp version are you running?</description>
		<content:encoded><![CDATA[<p>@adrian,</p>
<p>First: better open an issue here:<br />
<a href="http://github.com/masterzen/mysql-snmp/issues" onclick="javascript:pageTracker._trackPageview('/outbound/comment/github.com');" rel="nofollow">http://github.com/masterzen/mysql-snmp/issues</a><br />
if you want to get support.</p>
<p>While I don&#8217;t exactly know why it behaves like that for you, make sure you at least SNMP v2c or v3 to query mysql-snmp otherwise it won&#8217;t answer correctly 64bits counter and will stop scanning the table when encountering a 64 bit value.</p>
<p>You can configure opennms to query less oid per requests (see maxVarsPerPdu in datacollection-config.xml).</p>
<p>Still on the same subject, make sure to use a recent net-snmp on which you should add the following patch:<br />
<a href="http://sourceforge.net/tracker/?func=detail&#038;aid=2890931&#038;group_id=12694&#038;atid=312694" onclick="javascript:pageTracker._trackPageview('/outbound/comment/sourceforge.net');" rel="nofollow">http://sourceforge.net/tracker/?func=detail&#038;aid=2890931&#038;group_id=12694&#038;atid=312694</a></p>
<p>This patch (which I originally contributed but wasn&#8217;t correctly applied uptream) fixes how counter 64 are handled in perl.</p>
<p>Also, I plan to release 1.0 soon, make sure to try the current 1.0rc2 (from the github repository or download section).</p>
<p>Note: I tried your snmpgetnext command successfully on my own servers and it displays the correct results (with 1.0rc2) and net-snmp 5.4.1 (patched) under debian lenny.<br />
Of course with -v2c it reports the correct result and doesn&#8217;t choke on the last oid.<br />
What net-snmp version are you running?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adrian</title>
		<link>http://www.masterzen.fr/2009/04/13/introducing-mysql-snmp/comment-page-1/#comment-316</link>
		<dc:creator>adrian</dc:creator>
		<pubDate>Fri, 04 Dec 2009 17:47:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.masterzen.fr/?p=35#comment-316</guid>
		<description>I have found this very useful for the last few months.  Unfortunately, when I upgraded to OpenNMS 1.6.7, it quit working.

After some effort, I came up with a workaround, though I haven&#039;t yet found the actual problem.  It appears that when OpenNMS sends a lot of requests in one packet, mysql-agent responds to all of them, and passes the response back to net-snmp, without any apparent problem.  But net-snmp doesn&#039;t like the response and produces an error and unregisters the mysql-agent (which automatically reregisters itself after a few seconds).  I was able to reproduce the problem by doing:

snmpgetnext -r0 -t 5 -m &quot;+:/usr/share/snmp/mibs/MYSQL-SERVER-MIB.txt&quot; -v1  -c public hostname   .1.3.6.1.4.1.20267.200.1.1 .1.3.6.1.4.1.20267.200.1.2 .1.3.6.1.4.1.20267.200.1.3 .1.3.6.1.4.1.20267.200.1.4 .1.3.6.1.4.1.20267.200.1.5 .1.3.6.1.4.1.20267.200.1.6 .1.3.6.1.4.1.20267.200.1.7

The above will produce an error. If I drop the last OID from the request, it works fine.  I am curious if others have the same problem or not.  It&#039;s possible there is a problem in the mysql-agent code, but it may also be in the perl snmp library, or even in my OpenNMS configuration...  I am running this on a RHEL 5 box, with all of the official patches as of a few weeks ago.  None of the newer patches seem related, but I&#039;ll try to patch it again soon.

The workaround was to reconfigure snmp-config.xml so that when talking to the mysql servers, it only sends 1 oid at a time.  (I think you could probably go up to 5 or 6, but I just set it down to 1 to be safe.)</description>
		<content:encoded><![CDATA[<p>I have found this very useful for the last few months.  Unfortunately, when I upgraded to OpenNMS 1.6.7, it quit working.</p>
<p>After some effort, I came up with a workaround, though I haven&#8217;t yet found the actual problem.  It appears that when OpenNMS sends a lot of requests in one packet, mysql-agent responds to all of them, and passes the response back to net-snmp, without any apparent problem.  But net-snmp doesn&#8217;t like the response and produces an error and unregisters the mysql-agent (which automatically reregisters itself after a few seconds).  I was able to reproduce the problem by doing:</p>
<p>snmpgetnext -r0 -t 5 -m &#8220;+:/usr/share/snmp/mibs/MYSQL-SERVER-MIB.txt&#8221; -v1  -c public hostname   .1.3.6.1.4.1.20267.200.1.1 .1.3.6.1.4.1.20267.200.1.2 .1.3.6.1.4.1.20267.200.1.3 .1.3.6.1.4.1.20267.200.1.4 .1.3.6.1.4.1.20267.200.1.5 .1.3.6.1.4.1.20267.200.1.6 .1.3.6.1.4.1.20267.200.1.7</p>
<p>The above will produce an error. If I drop the last OID from the request, it works fine.  I am curious if others have the same problem or not.  It&#8217;s possible there is a problem in the mysql-agent code, but it may also be in the perl snmp library, or even in my OpenNMS configuration&#8230;  I am running this on a RHEL 5 box, with all of the official patches as of a few weeks ago.  None of the newer patches seem related, but I&#8217;ll try to patch it again soon.</p>
<p>The workaround was to reconfigure snmp-config.xml so that when talking to the mysql servers, it only sends 1 oid at a time.  (I think you could probably go up to 5 or 6, but I just set it down to 1 to be safe.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Ferguson</title>
		<link>http://www.masterzen.fr/2009/04/13/introducing-mysql-snmp/comment-page-1/#comment-23</link>
		<dc:creator>Neil Ferguson</dc:creator>
		<pubDate>Tue, 12 May 2009 17:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.masterzen.fr/?p=35#comment-23</guid>
		<description>I&#039;m using this, it&#039;s exactly what I needed, great work. (I&#039;m also a huge fan of Ticket To Ride!)</description>
		<content:encoded><![CDATA[<p>I&#8217;m using this, it&#8217;s exactly what I needed, great work. (I&#8217;m also a huge fan of Ticket To Ride!)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.084 seconds -->
