<br><br><div class="gmail_quote">2010/6/24 Fabio Papa <span dir="ltr">&lt;<a href="mailto:f.papa@mcmspa.it">f.papa@mcmspa.it</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Il giorno mar, 22/06/2010 alle 16.06 +0200, Arjen de Korte ha scritto:<br>
<div class="im">&gt; Citeren Fabio Papa &lt;<a href="mailto:f.papa@mcmspa.it">f.papa@mcmspa.it</a>&gt;:<br>
&gt;<br>
&gt; &gt; Hi again,<br>
&gt; &gt; ok, I&#39;ve found the problem. The issue is here, in<br>
&gt; &gt; drivers/netvision-mib.c:<br>
&gt; &gt;<br>
&gt; &gt; #define NETVISION_OID_BATTERYSTATUS<br>
&gt; &gt; &quot;.1.3.6.1.4.1.4555.1.1.1.1.2.1.0&quot;<br>
&gt; &gt; static info_lkp_t netvision_batt_info[] = {<br>
&gt; &gt;         { 2, &quot;&quot; }, /* battery normal */<br>
&gt; &gt;         { 3, &quot;LB&quot; }, /* battery low */<br>
&gt; &gt;         { 4, &quot;LB&quot; }, /* battery depleted */<br>
&gt; &gt;         { 5, &quot;&quot; }, /* battery discharging */<br>
&gt; &gt;         { 6, &quot;RB&quot; },  /* battery failure */<br>
&gt; &gt;         { 0, &quot;NULL&quot; }<br>
&gt; &gt; };<br>
&gt;<br>
&gt; No. This problem was reported before<br>
&gt;<br>
&gt; <a href="https://alioth.debian.org/tracker/index.php?func=detail&amp;aid=312364&amp;group_id=30602&amp;atid=411542" target="_blank">https://alioth.debian.org/tracker/index.php?func=detail&amp;aid=312364&amp;group_id=30602&amp;atid=411542</a><br>

&gt;<br>
&gt; As you can see, the resolution is in the netvision_output_info info element.<br>
&gt;<br>
&gt; &gt; As you can see, labels for values 2 and 5 are empty. This is bothering<br>
&gt; &gt; upsmon. I took the old values from 2.4.1 (they were in a .h file before)<br>
&gt; &gt; which were OL for 2 and OB for 5, recompiled and it all works!<br>
&gt; &gt; I can submit a patch if you like, but it&#39;s quite easy to add those 4<br>
&gt; &gt; char by hand...<br>
&gt;<br>
&gt; This was fixed in the development version almost four months ago, so<br>
&gt; no patch is needed. Thanks anyway.<br>
&gt;<br>
&gt; Best regards, Arjen<br>
<br>
</div>Hi,<br>
that&#39;s good to know, but I wonder why no stable release is out with the<br>
patch in place. As it is, there are distro out (like lucid in my case)<br>
with non working snmp driver, at least not for netvision.<br></blockquote></div><br>the lack of manpower, and the numerous tasks with a much higher priority than the above (sorry for you) seems to be a good explanation.<br>
<br>now, the FLOSS movement is good enough to provide other means of support: file a bug on Launchpad Ubuntu pointing this patch: <a href="http://boxster.ghz.cc/projects/nut/changeset/2367">http://boxster.ghz.cc/projects/nut/changeset/2367</a><br>
<br>Chuck will hopefully have more time than me.<br clear="all"><br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://www.eaton.com/mgeops">http://www.eaton.com/mgeops</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>
Debian Developer - <a href="http://www.debian.org">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</a><br><br>