[Nut-upsdev] apcsmart and ambient data

Charles Lepple clepple at gmail.com
Sat Oct 18 02:18:48 UTC 2008


Arnaud,

have you had a chance to look at this patch?

I am not familiar with the SNMP MIBs for UPSes, but it seems that we
could avoid this problem by executing a getNext on the OID *without*
the index at the end. Feel free to poke holes in this theory.

Steffen: I assume that there is no .0 index for these two variables on your UPS?

On Mon, Sep 8, 2008 at 8:22 AM, Steffen Plotner <swplotner at amherst.edu> wrote:
>> -----Original Message-----
>> From:
>> nut-upsdev-bounces+swplotner=amherst.edu at lists.alioth.debian.o
>> rg
>> [mailto:nut-upsdev-bounces+swplotner=amherst.edu at lists.alioth.
>> debian.org] On Behalf Of George Ross
>> Sent: Monday, September 08, 2008 5:02 AM
>> To: nut-upsdev at lists.alioth.debian.org
>> Subject: {SPAM?} Re: [Nut-upsdev] apcsmart and ambient data
>>
>> > Perhaps someone else could confirm this, I have an APC UPS with a
>> > built-in network management card with environmental sensor for
>> > temp/humidity.  The OID index for the sensors appears to be .1 (the
>> > last component for each of the OIDs listed below). The
>> original source
>> > code has them at .0
>>
>> I don't use the nut code for our APC temperature probes, but
>> I can confirm that I'm grabbing the value of
>> PowerNet-MIB::iemStatusProbeCurrentTemp.1 to feed into rrdtool.
>
> Thank you for confirming this and here is the patch for
>
> --- nut-2.2.0/drivers/apccmib.h.orig    2008-09-07 20:41:23.000000000
> -0400
> +++ nut-2.2.0/drivers/apccmib.h 2008-09-07 20:42:18.000000000 -0400
> @@ -208,10 +208,12 @@
>
>        /* IEM ambient variables */
>  /* IEM: integrated environment monitor probe */
> -#define APCC_OID_IEM_TEMP       ".1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.0"
> -#define APCC_OID_IEM_TEMP_UNIT  ".1.3.6.1.4.1.318.1.1.10.2.3.2.1.5.0"
> +#define APCC_OID_IEM_TEMP       ".1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1"
> +#define APCC_OID_IEM_TEMP_UNIT  ".1.3.6.1.4.1.318.1.1.10.2.3.2.1.5.1"
>  #define APCC_IEM_FAHRENHEIT        2
> -#define APCC_OID_IEM_HUMID      ".1.3.6.1.4.1.318.1.1.10.2.3.2.1.6.0"
> +#define APCC_OID_IEM_HUMID      ".1.3.6.1.4.1.318.1.1.10.2.3.2.1.6.1"
>        { "ambient.temperature", 0, 1, APCC_OID_IEM_TEMP, "",
> SU_FLAG_OK, NULL },
>        { "ambient.humidity", 0, 1, APCC_OID_IEM_HUMID, "", SU_FLAG_OK,
> NULL },
>
>> --
>> Dr George D M Ross, School of Informatics, University of Edinburgh
>>         10 Crichton Street, Edinburgh, Scotland, EH8 9AB
>> Mail: gdmr at inf.ed.ac.uk   Voice: +44 131 650 5147   Fax: +44
>> 131 650 6899
>>  PGP: 1024D/AD758CC5  B91E D430 1E0D 5883 EF6A  426C B676
>> 5C2B AD75 8CC5
>>
>> The University of Edinburgh is a charitable body, registered
>> in Scotland, with registration number SC005336.
>>
>>
>>
>
> _______________________________________________
> Nut-upsdev mailing list
> Nut-upsdev at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
>



-- 
- Charles Lepple



More information about the Nut-upsdev mailing list