<div dir="ltr"><div><div>Thanks, now I started getting messages from the list.<br><br></div>As you advised, I renamed the mib file NETCARD.mib to Tripplite and ran command <br><br>./gen-snmp-subdriver.sh -H 10.200.254.39 -c public -n Tripplite<br>
<br></div>Here is what it says:<br><div><div><br>snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable)<br>COUNT = 0 / 0<br>Creating tripplite-mib.h<br>Creating tripplite-mib.c<br>
Done.<br><br></div><div>The output files are attached, but I think it is not succeeding to create the subdriver, as tripplite-mib.c contains very few code and doesn't seem to have necessary code.<br><br></div><div>I tried the "mode 1", since the "mode 2" wasn't really working for me: when I run command <br>
<br>snmpwalk -On -c public 10.200.254.39 .1.3.6.1.4.1.935<br><br>It says:<br>snmpwalk: Timeout (msgGlobalData header type A2: s/b 30)<br><br></div><div>But snmpget of a certain parameter works fine and we are currently able to monitor it through Zabbix's snmp:<br>
snmpget -v 1 -c public 10.200.254.39 .1.3.6.1.4.1.935.1.1.1.4.1.1<br><br>Output shows the correct value of status:<br>XPPC-MIB::upsBaseOutputStatus.0 = INTEGER: onLine(2)<br><br></div><div>If it is possible for you, could you please run it from your pc in "mode 2" that doesn't require direct access to device (mib file is attached)?<br>
<br></div><div>Thanks in advance, <br><br></div><div>Ishi<br></div><div><br><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 8:56 PM, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div class="">On Feb 10, 2014, at 1:16 AM, Иши Кылса wrote:<br><br><blockquote type="cite">
Thanks for you reply. Concerning the subscribtion list, I have earlier filled in the fields and sent request to subscribe to this list, but still haven't got an answer. <br></blockquote><div><br></div></div><div>I added you manually, but check your spam folder just in case it ended up there.</div>
<div class=""><div><br></div><blockquote type="cite">Yes, I do have a MIB file that was on CD that came with the UPS, attached it to this message. <br><br>Thanks for the link, started following it and at the step concerning runninh script scripts/subdriver/gen-snmp-subdriver.sh downloaded the archive nut-2.6.2.tar.gz but there is no script gen-snmp-subdriver.sh in it, only file path-to-subdriver.sh in directory scripts/subdriver/. Then through google found the script gen-snmp-subdriver.sh and put in directory scripts/subdriver/ and ran it: <br>
</blockquote><div><br></div></div><div>Hmm, we'll have to add that to the distribution.</div><div><br></div><div>Not sure what Google found, but this is generally where the latest version is kept:</div><div><br></div>
<div><a href="https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh" target="_blank">https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh</a></div>
<div><br></div><div>For now, I am putting fixes on this branch:</div><div><br></div><div><a href="https://github.com/networkupstools/nut/blob/snmp_subdriver/scripts/subdriver/gen-snmp-subdriver.sh" target="_blank">https://github.com/networkupstools/nut/blob/snmp_subdriver/scripts/subdriver/gen-snmp-subdriver.sh</a></div>
<div><br></div><div>Can you try the version from the second link? (use the "Raw" button to download the script itself)</div><div class=""><div><br></div><blockquote type="cite">./gen-snmp-subdriver.sh -H 10.200.254.39 -c public -n NETCARD.mib<br>
</blockquote><div><br></div></div><div>I would recommend using "-n TrippLite" or similar, since the rest of the MIB names are company names rather than product names. Also, the name needs to be a valid C identifier (alphanumeric).</div>
<div class=""><br><blockquote type="cite">snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable)<br>COUNT = 0 / 0<br>Creating netcard.mib-mib.h<br>Creating netcard.mib-mib.c<br>
Done.<br><br>Do not forget to:<br>* bump DRIVER_VERSION in snmp-ups.c (add "0.01")<br>* copy "netcard.mib-mib.h" and "netcard.mib-mib.c" to "../../drivers"<br>* add #include "netcard.mib-mib.h" to snmp-ups.c<br>
* add &netcard.mib to snmp-ups.c:mib2nut[] list,<br>* add netcard.mib-mib.c to snmp_ups_SOURCES in drivers/Makefile.am<br>* add netcard.mib-mib.h to dist_noinst_HEADERS in drivers/Makefile.am<br>* copy netcard.mib-mib.c and netcard.mib-mib.h to ../drivers/<br>
* "autoreconf && configure && make" from the top level directory<br><br>Does it mean it is ok?</blockquote><br></div><span class="HOEnZb"><font color="#888888"><div>-- <br>Charles Lepple<br>clepple@gmail<br>
<br><br></div><br></font></span></div></blockquote></div><br></div>