Иши Кылса
2014-Feb-07 05:17 UTC
[Nut-upsuser] Tripplite UPS (SU10KRT3/1X) through snmp-ups (nut 2.6.5)
Hi, Nut-upsusers, I am having problem configuring NUT to work with Tripplite UPS through SNMP. There is a Tripplite SmartOnline SU10KRT3/1X and attempts to monitor it using NUT though SNMP are failing... OS: Enterprise Linux 6, Nut version: 2.6.5. ups.conf is configured: [trippliteups] driver = snmp-ups port = 10.200.254.39 desc = "ProductionServer" snmp_version = v1 community = public Starting the driver with command *snmp-ups -a trippliteups -D * is failing with the following output: Network UPS Tools - Generic SNMP UPS driver 0.68 (2.6.5) 0.000000 debug level is '1' 0.000215 SNMP UPS driver : entering upsdrv_initups() 0.020982 trying the new match_sysoid() method 0.026416 match_sysoid: device sysOID value = .1.3.6.1.4.1.935 0.026425 match_sysoid: checking MIB apcc 0.026431 match_sysoid: checking MIB mge 0.026435 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.705.1 0.026439 match_sysoid: checking MIB netvision 0.026443 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.4555.1.1.1 0.026447 match_sysoid: checking MIB pw 0.026450 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.534.1 0.026455 match_sysoid: checking MIB aphel_genesisII 0.026459 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.17373 0.026462 match_sysoid: checking MIB aphel_revelation 0.026466 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.534.6.6.6 0.026469 match_sysoid: checking MIB eaton_epdu 0.026473 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.534.6.6.7 0.026476 match_sysoid: checking MIB pulizzi_switched1 0.026480 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.20677.1 0.026483 match_sysoid: checking MIB pulizzi_switched2 0.026487 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.20677.2 0.026491 match_sysoid: checking MIB raritan 0.026495 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.13742 0.026499 match_sysoid: checking MIB baytech 0.026503 match_sysoid: checking MIB cpqpower 0.026507 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.232.165.3 0.026510 match_sysoid: checking MIB bestpower 0.026513 match_sysoid: checking MIB cyberpower 0.026517 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.4.1.3808 0.026521 match_sysoid: checking MIB ietf 0.026526 match_sysoid: comparing .1.3.6.1.4.1.935 with .1.3.6.1.2.1.33 0.026529 No matching MIB found for sysOID '.1.3.6.1.4.1.935'! Please report it to NUT developers, with an 'upsc' output for your device. Going back to the classic MIB detection method. 0.026534 load_mib2nut: trying classic method with 'apcc' mib 0.029602 load_mib2nut: trying classic method with 'mge' mib 0.032539 load_mib2nut: trying classic method with 'netvision' mib 0.035569 load_mib2nut: trying classic method with 'pw' mib 0.038493 load_mib2nut: trying classic method with 'aphel_genesisII' mib 0.041481 load_mib2nut: trying classic method with 'aphel_revelation' mib 0.044521 load_mib2nut: trying classic method with 'eaton_epdu' mib 0.047586 load_mib2nut: trying classic method with 'pulizzi_switched1' mib 0.050465 load_mib2nut: trying classic method with 'pulizzi_switched2' mib 0.053334 load_mib2nut: trying classic method with 'raritan' mib 0.056268 load_mib2nut: trying classic method with 'baytech' mib 0.059312 load_mib2nut: trying classic method with 'cpqpower' mib 0.062278 load_mib2nut: trying classic method with 'bestpower' mib 0.065214 load_mib2nut: trying classic method with 'cyberpower' mib 0.068253 load_mib2nut: trying classic method with 'ietf' mib 0.071168 No supported device detected Would be grateful if anyone could help me with it. Ishi Kylsa -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140207/001d0cb6/attachment.html>
Charles Lepple
2014-Feb-07 13:23 UTC
[Nut-upsuser] Tripplite UPS (SU10KRT3/1X) through snmp-ups (nut 2.6.5)
On Feb 7, 2014, at 12:17 AM, ??? ????? wrote:> I am having problem configuring NUT to work with Tripplite UPS through SNMP. > There is a Tripplite SmartOnline SU10KRT3/1X and attempts to monitor it using NUT though SNMP are failing...[...]> 0.026416 match_sysoid: device sysOID value = .1.3.6.1.4.1.935It doesn't look like we have that sysOID in the driver, even in the latest code. We will need to follow the procedure here: http://www.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#snmp-subdrivers Do you have the MIB file, possibly on a CD that came with the UPS, or from the manufacturer's site? If you have trouble finding it, we can reach out to Tripp Lite, as they have helpfully provided information on their USB HID PDC line of devices. Also, please subscribe to the list here:> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser(If you don't want to receive all of the emails, you can still subscribe so that we don't need to manually approve each email you send. Thanks!) -- Charles Lepple clepple at gmail
Charles Lepple
2014-Feb-10 14:56 UTC
[Nut-upsuser] Tripplite UPS (SU10KRT3/1X) through snmp-ups (nut 2.6.5)
On Feb 10, 2014, at 1:16 AM, ??? ????? wrote:> 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.I added you manually, but check your spam folder just in case it ended up there.> Yes, I do have a MIB file that was on CD that came with the UPS, attached it to this message. > > 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:Hmm, we'll have to add that to the distribution. Not sure what Google found, but this is generally where the latest version is kept: https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh For now, I am putting fixes on this branch: https://github.com/networkupstools/nut/blob/snmp_subdriver/scripts/subdriver/gen-snmp-subdriver.sh Can you try the version from the second link? (use the "Raw" button to download the script itself)> ./gen-snmp-subdriver.sh -H 10.200.254.39 -c public -n NETCARD.mibI 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).> snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable) > COUNT = 0 / 0 > Creating netcard.mib-mib.h > Creating netcard.mib-mib.c > Done. > > Do not forget to: > * bump DRIVER_VERSION in snmp-ups.c (add "0.01") > * copy "netcard.mib-mib.h" and "netcard.mib-mib.c" to "../../drivers" > * add #include "netcard.mib-mib.h" to snmp-ups.c > * add &netcard.mib to snmp-ups.c:mib2nut[] list, > * add netcard.mib-mib.c to snmp_ups_SOURCES in drivers/Makefile.am > * add netcard.mib-mib.h to dist_noinst_HEADERS in drivers/Makefile.am > * copy netcard.mib-mib.c and netcard.mib-mib.h to ../drivers/ > * "autoreconf && configure && make" from the top level directory > > Does it mean it is ok?-- Charles Lepple clepple at gmail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140210/c411b7a4/attachment.html>
Иши Кылса
2014-Feb-12 08:57 UTC
[Nut-upsuser] Tripplite UPS (SU10KRT3/1X) through snmp-ups (nut 2.6.5)
Thanks, now I started getting messages from the list. As you advised, I renamed the mib file NETCARD.mib to Tripplite and ran command ./gen-snmp-subdriver.sh -H 10.200.254.39 -c public -n Tripplite Here is what it says: snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable) COUNT = 0 / 0 Creating tripplite-mib.h Creating tripplite-mib.c Done. 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. I tried the "mode 1", since the "mode 2" wasn't really working for me: when I run command snmpwalk -On -c public 10.200.254.39 .1.3.6.1.4.1.935 It says: snmpwalk: Timeout (msgGlobalData header type A2: s/b 30) But snmpget of a certain parameter works fine and we are currently able to monitor it through Zabbix's snmp: snmpget -v 1 -c public 10.200.254.39 .1.3.6.1.4.1.935.1.1.1.4.1.1 Output shows the correct value of status: XPPC-MIB::upsBaseOutputStatus.0 = INTEGER: onLine(2) 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)? Thanks in advance, Ishi On Mon, Feb 10, 2014 at 8:56 PM, Charles Lepple <clepple at gmail.com> wrote:> On Feb 10, 2014, at 1:16 AM, ??? ????? wrote: > > 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. > > > I added you manually, but check your spam folder just in case it ended up > there. > > Yes, I do have a MIB file that was on CD that came with the UPS, attached > it to this message. > > 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: > > > Hmm, we'll have to add that to the distribution. > > Not sure what Google found, but this is generally where the latest version > is kept: > > > https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh > > For now, I am putting fixes on this branch: > > > https://github.com/networkupstools/nut/blob/snmp_subdriver/scripts/subdriver/gen-snmp-subdriver.sh > > Can you try the version from the second link? (use the "Raw" button to > download the script itself) > > ./gen-snmp-subdriver.sh -H 10.200.254.39 -c public -n NETCARD.mib > > > 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). > > snmp_build: unknown failuresnmpget: Error building ASN.1 representation > (Can't build OID for variable) > COUNT = 0 / 0 > Creating netcard.mib-mib.h > Creating netcard.mib-mib.c > Done. > > Do not forget to: > * bump DRIVER_VERSION in snmp-ups.c (add "0.01") > * copy "netcard.mib-mib.h" and "netcard.mib-mib.c" to "../../drivers" > * add #include "netcard.mib-mib.h" to snmp-ups.c > * add &netcard.mib to snmp-ups.c:mib2nut[] list, > * add netcard.mib-mib.c to snmp_ups_SOURCES in drivers/Makefile.am > * add netcard.mib-mib.h to dist_noinst_HEADERS in drivers/Makefile.am > * copy netcard.mib-mib.c and netcard.mib-mib.h to ../drivers/ > * "autoreconf && configure && make" from the top level directory > > Does it mean it is ok? > > > -- > Charles Lepple > clepple at gmail > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140212/dc6eb428/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: Tripplite Type: application/octet-stream Size: 8369 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140212/dc6eb428/attachment-0001.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: tripplite-mib.c Type: text/x-csrc Size: 2587 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140212/dc6eb428/attachment-0001.c> -------------- next part -------------- A non-text attachment was scrubbed... Name: tripplite-mib.h Type: text/x-chdr Size: 1032 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140212/dc6eb428/attachment-0001.h>
Seemingly Similar Threads
- Tripplite UPS (SU10KRT3/1X) through snmp-ups (nut 2.6.5)
- Tripplite UPS (SU10KRT3/1X) through snmp-ups (nut 2.6.5)
- Arch Linux and Tripp Lite web snmp card issues.
- Tripplite UPS (SU10KRT3/1X) through snmp-ups (nut 2.6.5)
- Arch Linux and Tripp Lite web snmp card issues.