Sorry, forgot this, cause I was still with the 90/"90" problem...
user = nut
[apc10001]
    driver = snmp-ups
    port = 10.100.200.30
    snmp_version = v1
    mibs = apcc
    pollfreq = 15
    desc = "APC Smart-UPS 1000I (30)"
    community=private
 
 
Here comes the output:
root@abex:~# /lib/nut/snmp-ups -DDDD -a apc10001 -k
Network UPS Tools - Generic SNMP UPS driver 0.66 (2.6.4)
   0.000000     debug level is '4'
   0.000446     SNMP UPS driver : entering upsdrv_initups()
   0.000471     SNMP UPS driver : entering nut_snmp_init(snmp-ups)
   0.018439     SNMP UPS driver : entering load_mib2nut(apcc)
   0.018467     load_mib2nut: trying classic method with 'apcc' mib
   0.018478     Entering nut_snmp_get_str()
   0.018499     nut_snmp_get(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)
   0.035932     load_mib2nut: using apcc mib
   0.035963     su_find_info: "ups.model" found
   0.035980     Entering nut_snmp_get_str()
   0.036007     nut_snmp_get(.1.3.6.1.4.1.318.1.1.1.1.1.1.0)
   0.055572     Detected Smart-UPS 1000 on host 10.100.200.30 (mib: apcc 1.1)
   0.055610     su_find_info: unknown info type (load.off.delay)
   0.055630     su_find_info: unknown info type (load.on.delay)
   0.055668     su_find_info: unknown info type (load.off.delay)
   0.055687     Initiating UPS shutdown
   0.055705     upsdrv_shutdown...
   0.055721     entering su_instcmd(shutdown.return, (null))
   0.055740     su_find_info: "shutdown.return" found
   0.055771     entering nut_snmp_set (.1.3.6.1.4.1.318.1.1.1.6.1.1.0, i, 2)
   0.098838     [apc10001] nut_snmp_set: can't set .1.3.6.1.4.1.318.1.1.1.6.1.1.0: Error in packet: (genError) A general failure occured
   0.098870     su_instcmd: cannot set value for shutdown.return
   0.098888     entering su_instcmd(shutdown.reboot, (null))
   0.098919     su_find_info: unknown info type (shutdown.reboot)
   0.098938     su_instcmd: shutdown.reboot unavailable
   0.098955     entering su_instcmd(load.off.delay, (null))
   0.098981     su_find_info: unknown info type (load.off.delay)
   0.098993     su_instcmd: load.off.delay unavailable
   0.099026     Shutdown failed!

I tried to set "Minimum battery level for restart after power off (percent)" to 90. And this gave "90" as mentioned below. I saw in apc-mib.c that the type for this is declared as ST_FLAG_STRING. This is abolutely no string (so no 's' but 'i' would be correct).
What do you say?
-lutzn
 
 
Gesendet: Mittwoch, 15. Mai 2013 um 14:34 Uhr
Von: "Charles Lepple" <clep...@gmail.com>
An: lutz.niede...@gmx.net
Cc: nut-upsuser@lists.alioth.debian.org
Betreff: Re: [Nut-upsuser] APC AP9617 SNMP returns strange errors
On May 15, 2013, at 8:18 AM, lutz.niede...@gmx.net wrote:

> So maybe a problem with "90" vs 90 ?

Probably. I don't have an SNMP-capable UPS here, so if you could send the logs from passing the debug flags the driver directly (/lib/nut/snmp-ups -DDDD -a apc10001 -k), it would be easier for me to follow along in the code. I recommend saving the log to a file (via 'script' or 'tee') and compressing it to keep the list post to a reasonable size.

I suspect that the type is coming from the SNMP MIB definition. Could you also send the ups.conf file contents?

--
Charles Lepple
clepple@gmail


 
_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to