[Nut-upsuser] Using snmp for APC smarts

Henk van Lingen henk at vanlingen.net
Fri Jul 2 09:10:14 UTC 2010


On Fri, Jul 02, 2010 at 10:32:54AM +0200, Arnaud Quette wrote:
> Hi,
> 
> first of all, 2.2 releases are too old. If possible, try to update to a more
> recent version.
> that being said, the calibration code  was already present in 2.2.0

I will, when it looks like this is going to work. (I use the distro version
at the moment (RHEL 5))

> I came to the same conclusion: the matching code is present.
> so I need the answer to the above #4, along with an upsc output and the
> driver's debug output:
> /path/to/snmp-ups -?? -a <upsname>

Here it is:

henk at swizzy:~-$ upsc  testups
ambient.humidity.alarm.maximum: 60.0
ambient.humidity.alarm.minimum: 30.0
ambient.temperature.alarm.maximum: 40.0
ambient.temperature.alarm.minimum: 10.0
battery.charge: 100.0
battery.charge.restart: 0
battery.current: 0.0
battery.date: 11/27/09
battery.packs: 1.0
battery.packs.bad: 0.0
battery.runtime: 11220.0
battery.runtime.low: 120
battery.voltage: 55.0
battery.voltage.nominal: 0.0
driver.name: snmp-ups
driver.parameter.mibs: apcc
driver.parameter.pollfreq: 15
driver.parameter.pollinterval: 2
driver.parameter.port: ups-wisk-stage-001.net.uu.nl
driver.parameter.snmp_version: v1
driver.version: 2.2.0-
driver.version.internal: 0.42 (mib: apcc 1.1)
input.frequency: 50.0
input.sensitivity: high
input.transfer.high: 253
input.transfer.low: 208
input.voltage: 230.0
output.current: 1.0
output.frequency: 50.0
output.voltage: 228.0
output.voltage.nominal: 230
ups.delay.shutdown: 630
ups.delay.start: 420
ups.firmware: 690.19.I
ups.id: UPS_IDEN
ups.load: 11.0
ups.mfr: APC
ups.mfr.date: 11/17/09
ups.model: Smart-UPS 2200 XL
ups.serial: JS0947005447
ups.status: OL
ups.temperature: 21.0
ups.test.result: Ok
henk at swizzy:~-$ 


henk at swizzy:~-$ snmpset -v 1 -On -c *** ups-wisk-stage-001.net.uu.nl
.1.3.6.1.4.1.318.1.1.1.7.2.5.0 i 2
.1.3.6.1.4.1.318.1.1.1.7.2.5.0 = INTEGER: performCalibration(2)
henk at swizzy:~-$ snmpwalk -v 2c -On -c *** ups-wisk-stage-001.net.uu.nl .1.3.6.1.4.1.318.1.1.1.7
.1.3.6.1.4.1.318.1.1.1.7.2.1.0 = INTEGER: biweekly(2)
.1.3.6.1.4.1.318.1.1.1.7.2.2.0 = INTEGER: noTestDiagnostics(1)
.1.3.6.1.4.1.318.1.1.1.7.2.3.0 = INTEGER: ok(1)
.1.3.6.1.4.1.318.1.1.1.7.2.4.0 = STRING: "06/22/2010"
.1.3.6.1.4.1.318.1.1.1.7.2.5.0 = INTEGER: noPerformCalibration(1)
.1.3.6.1.4.1.318.1.1.1.7.2.6.0 = INTEGER: calibrationInProgress(3)
.1.3.6.1.4.1.318.1.1.1.7.2.7.0 = STRING: "07/02/2010"
henk at swizzy:~-$ snmpset -v 1 -On -c *** ups-wisk-stage-001.net.uu.nl .1.3.6.1.4.1.318.1.1.1.7.2.5.0 i 3
.1.3.6.1.4.1.318.1.1.1.7.2.5.0 = INTEGER: cancelCurrentCalibration(3)
henk at swizzy:~-$ 

root at swizzy:/etc/ups-# /sbin/snmp-ups -a testups
Network UPS Tools - Multi-MIBS SNMP UPS driver 0.42 (2.2.0-)
Warning: This is an experimental driver.
Some features may not function correctly.

Detected Smart-UPS 2200 XL on host ups-wisk-stage-001.net.uu.nl (mib: apcc
1.1)
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.2.2.1.2.1: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.1: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.2: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.3: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.2.3.1.4.1.1.1: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.2.3.1.4.1.1.2: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.2.3.1.4.1.1.3: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.2.3.1.5.1.1.1: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.2.3.1.5.1.1.2: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] Warning: excessive poll failures, limiting error reporting
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.2.1.2.1: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.2.1.4.1: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.1: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.2: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.3: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.1: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.2: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.3: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.3.1.5.1.1.1: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.3.1.5.1.1.2: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.1.9.3.3.1.5.1.1.3: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] Warning: excessive poll failures, limiting error reporting
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.2.1.1.0: Error in packet:
(noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.2.1.2.0: Error in packet:
(noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.0: Error in
packet: (noSuchName) There is no such variable name in this MIB.
[testups] nut_snmp_get: .1.3.6.1.4.1.318.1.1.10.2.3.2.1.6.0: Error in
packet: (noSuchName) There is no such variable name in this MIB.
root at swizzy:/etc/ups-# 

So this seems to be the problem part. ups.conf has:

[testups]

driver = snmp-ups
port = ups-wisk-stage-001.net.uu.nl
community = ***
snmp_version = v1
mibs = apcc
pollfreq = 15 

Cheers,
-- 
+----------------------------------------------------------------------+
|  (o-  Henk van Lingen                       Utrecht, The Netherlands |
|  /\                                       http://henk.vanlingen.net/ |
| v_/_                              http://www.tuxtown.net/netiquette/ |
+ Using Outlook ? -> http://home.in.tum.de/~jain/software/oe-quotefix/ +



More information about the Nut-upsuser mailing list