[SOLVED] Temperature for AP9631

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
axcx
Posts: 18
Joined: Fri Sep 23, 2011 6:04 am

[SOLVED] Temperature for AP9631

Post by axcx »

Hi Cacti users

I have a question regarding fetching temperature from a probe connected to a AP9631 APC NIC in a UPS.

I found the correct OID and I am able to get the correct value using snmpwalk on the machine.

snmpwalk <ip> -v1 -c public .1.3.6.1.4.1.318.1.1.25.1.2.1.6
SNMPv2-SMI::enterprises.318.1.1.25.1.2.1.6.1.1 = INTEGER: 16


When I take this OID and create a a custom graph in Cacti for some reason it shows 0 all the time instead of 16.

Anybody know why this could be?

Data debug log:
Data Source Debug
/usr/bin/rrdtool create \
/usr/share/cacti/rra/ups_snmp_oid_523.rrd \
--step 300 \
DS:snmp_oid:GAUGE:600:0:80 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \


Thanks,
Jakob
Last edited by axcx on Thu Dec 22, 2011 4:59 am, edited 1 time in total.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Temperature for AP9631

Post by noname »

Did you specify ".1.3.6.1.4.1.318.1.1.25.1.2.1.6.1.1" for OID in data template?
axcx
Posts: 18
Joined: Fri Sep 23, 2011 6:04 am

Re: Temperature for AP9631

Post by axcx »

Thaks a lot as always!

I think it time to learn a bit more about MIB's and OID's... I have no idea why you need those extra 1.1 ? it worked with snmpwalk without?

Thanks,
Jakob
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Temperature for AP9631

Post by noname »

>> I have no idea why you need those extra 1.1 ? it worked with snmpwalk without?

(I guess) because Cacti uses snmpget for single OID.
gurulee
Posts: 14
Joined: Fri Nov 08, 2013 1:23 pm
Location: CT

Re: [SOLVED] Temperature for AP9631

Post by gurulee »

Thank you! this was helpful.
_________________
Lee
"knowledge breeds confidence, confidence breeds success"
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests