[Nut-upsuser] SNMP UPS: NETYS RT 1/1 UPS
Arnaud Quette
aquette.dev at gmail.com
Thu Oct 18 19:02:36 UTC 2012
2012/10/15 Ing. Ján <jan.ondrej at upjs.sk>
> Hello,
>
Hi
thanks for reply. We tested shutdown, but UPS's initial battery capacity is
> 0%, after power loss, battery started to "charge", capacity is increasing.
> When NUT shuts down my server? When UPS is over 95% of it's capacity? :-)
>
I'm not sure to completely understand the use case and issue!
could you please elaborate?
> I have also an NetVision-5.01-5.0x-unix.mib file, which doesn't help too.
>
was it provided with the unit?
could you please send the MIB file, provided with your device, in
compressed form.
a quick search on the net led me to the Delta MIB:
http://www.snmplink.org/cgi-bin/nd/m/Ent/D/Delta%20Electronics%20Group/%5BE.%5D%20Delta%20Electronics,%20Inc.%20-%202254/*25Old3/UPSv4.mib
When trying to force netvision driver to snmp-ups command, it fails with:
>
this is a different 'netvision', for Socomec units.
> [root at kvm1 ~]# snmp-ups -a local -x mibs=netvision -DDDDD
> Network UPS Tools - Generic SNMP UPS driver 0.66 (2.6.4)
> 0.000000 debug level is '5'
> 0.000380 SNMP UPS driver : entering upsdrv_initups()
> 0.000396 SNMP UPS driver : entering nut_snmp_init(snmp-ups)
> 0.051354 SNMP UPS driver : entering load_mib2nut(netvision)
> 0.051374 load_mib2nut: trying classic method with 'netvision' mib
> 0.051383 Entering nut_snmp_get_str()
> 0.051390 nut_snmp_get(.1.3.6.1.4.1.4555.1.1.1.1.1.1.0)
> 0.059889 [local] unhandled ASN 0x5 received from
> .1.3.6.1.4.1.4555.1.1.1.1.1.1.0
> 0.059933 Unknown mibs value: netvision
>
> I also tested an older version of SNMP interface for this UPS, but looks
> like there are communication problems between UPS and older SNMP interface.
> With this new one I can see actual values over web interface, but not using
> snmp-ups driver.
>
there is no need to do so.
while your UPS also provide data using a proprietary MIB, it also support
(partially) the IETF MIB, as seen in your first mail.
your unit seems well detected and supported, minus a few things.
your battery.charge is indeed "0 %", but the OID serving it is there, so we
have no way to determine that it's buggy.
on the UPS shutdown, everything is explained here:
http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#UPS_shutdown
the conclusion is that, as told by Gregor, your unit should not have any
issue with the shutdown.
but it's true that the support of your unit with the IETF MIB is not fully
optimal.
a better support could come from the proprietary MIB, but I've personally
no time to devote to this currently.
that said, the task is not that hard, even for a non-programmer.
if you to have a run, let me know.
otherwise, drop the following output (in compressed form) on the list, for
potential future processing:
$ snmpwalk -v1 -c XXX 192.168.14.10 .1.3.6.1.4.1.2254.2.4
$ snmpwalk -Os -v1 -c XXX 192.168.14.10 .1.3.6.1.4.1.2254.2.4
the latter will requires the MIB file to actually display the OID string
name.
cheers,
Arnaud
--
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
SAL
>
> On Mon, Oct 15, 2012 at 07:27:30AM +0000, Friedrich, Gregor wrote:
> > Hello
> >
> > I have the same problem. There are 2 MIBs shipped with the ups
> (attached). I copied these in /usr/share/netsnmp/mibs folder , but no
> results.
> > The general UPS-status (OL...) is supported... automatic shutdown is
> working in my test system.
> >
> > Regards Gregor
> >
> > >
> > > Hello,
> > >
> > > I have an NETYS RT 1/1 UPS, which is not fully supported. Starting
> snmp
> > > driver displays:
> > >
> > > [root at kvm1 ~]# snmp-ups -a local
> > > Network UPS Tools - Generic SNMP UPS driver 0.66 (2.6.4)
> > > Duplicate driver instance detected! Terminating other driver!
> > > No matching MIB found for sysOID '.1.3.6.1.4.1.2254.2.4'!
> > > Please report it to NUT developers, with an 'upsc' output for your
> device.
> > > Going back to the classic MIB detection method.
> > > Detected NETYS RT 1/1 UPS on host 192.168.14.10 (mib: ietf 1.4)
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.2.3.0
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.2.6.0
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.3.3.1.4.1
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.3.3.1.5.1
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.4.4.1.4.1
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.5.3.1.3.1
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.5.3.1.4.1
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.5.3.1.5.1
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.6.3.8
> > > [local] unhandled ASN 0x6 received from 1.3.6.1.2.1.33.1.7.1.0
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.9.6.0
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.9.7.0
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.9.9.0
> > > [local] unhandled ASN 0x5 received from 1.3.6.1.2.1.33.1.9.10.0
> > >
> > > Here is output of upsc command:
> > >
> > > [root at kvm1 ~]# /etc/init.d/ups start
> > > Spustenie ovládača radiča UPS: [ OK ]
> > > Spustenie upsd: [ OK ]
> > > Spustenie sledovania UPS (server): [ OK ]
> > > [root at kvm1 ~]# upsc local
> > > battery.charge: 0.00
> > > battery.temperature: 33.00
> > > battery.voltage: 55.00
> > > device.mfr: Delta
> > > device.model: NETYS RT 1/1 UPS
> > > device.type: ups
> > > driver.name: snmp-ups
> > > driver.parameter.pollinterval: 2
> > > driver.parameter.port: 192.168.14.10
> > > driver.version: 2.6.4
> > > driver.version.internal: 0.66 (mib: ietf 1.4)
> > > input.bypass.frequency: 49.90
> > > input.bypass.phases: 1.00
> > > input.frequency: 49.90
> > > input.frequency.nominal: 5.00
> > > input.phases: 1.00
> > > input.voltage: 2320.00
> > > input.voltage.nominal: 230.00
> > > output.current: 2.30
> > > output.frequency: 49.90
> > > output.frequency.nominal: 5.00
> > > output.phases: 1.00
> > > output.power.nominal: 2200.00
> > > output.voltage: 2290.00
> > > output.voltage.nominal: 230.00
> > > ups.beeper.status: enabled
> > > ups.firmware: 1.1
> > > ups.firmware.aux: 2.0h
> > > ups.load: 300.00
> > > ups.mfr: Delta
> > > ups.model: NETYS RT 1/1 UPS
> > > ups.status: OL
> > > ups.test.result: done and passed
> > > ups.timer.reboot: 0
> > > ups.timer.shutdown: 0
> > > ups.timer.start: 0
> >
> >
>
>
>
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121018/03947393/attachment.html>
More information about the Nut-upsuser
mailing list