Page 1 of 1

SNMP no voltageIndex?

Posted: Tue Sep 29, 2015 6:55 am
by aurelien personnaz
Hello,

I am trying to create a cacti Data query/DataSource/GraphTemplate to monitor the voltages supplied by the switches.
I have followed that link http://forums.cacti.net/viewtopic.php?t=4143

Everything seems good, but the voltageIndex OID does not seem to return a list of available indexes. So cacti can't find the items to graph.

Here is what I get for the index itself:

# snmpwalk -v 2c -m ALL -c COMMUNITY XXX.XXX.XXX.XXX voltageIndex
NETONIX-SWITCH-MIB::voltageIndex = No Such Object available on this agent at this OID


And here is the table :

# snmptable -v 2c -m ALL -c COMMUNITY XXX.XXX.XXX.XXX voltageTable
SNMP table: NETONIX-SWITCH-MIB::voltageTable
voltageDescription voltage
Board 48V 50.17
Board 24V 24.85
Board 3V 3.30
DCDC Input Voltage 46.21
DCDC Output Voltage 49.87


We have 4 WS-12-DC and WS-8-250-DC all in 1.3.2 and 1.3.3.

Am I doing something wrong?

Re: SNMP no voltageIndex?

Posted: Tue Sep 29, 2015 6:28 pm
by Eric Stern
This seems to to have been overlooked, I'll add it to the list for 1.3.5.

Re: SNMP no voltageIndex?

Posted: Wed Jan 17, 2018 4:56 am
by jdejansb
Hi,

Have you managed to create template for getting port/switch voltages?

Thanks,
Dejan

Re: SNMP no voltageIndex?

Posted: Wed Jan 17, 2018 3:07 pm
by Eric Stern
I'm not sure what you are asking. Many people are using SNMP to get voltages from the switch.

Re: SNMP no voltageIndex?

Posted: Fri Jan 19, 2018 5:14 am
by aurelien personnaz
I attach my cacti device template (with dependencies).
I hope it helps.

Re: SNMP no voltageIndex?

Posted: Wed Feb 28, 2018 5:51 am
by aurelien personnaz
Hi all,

Here is a new version of the cacti template with the temperature and fan speed graphs.

Hope it can be useful.

Re: SNMP no voltageIndex?

Posted: Thu Dec 27, 2018 8:19 pm
by mcnnetops
Any chance you have the file: netonix_voltage.xml

That is referred to in: <xml_path><path_cacti>/resource/snmp_queries/netonix_voltage.xml</xml_path> ?

Kinda need that to make the voltage stuff work!

Re: SNMP no voltageIndex?

Posted: Fri Jan 04, 2019 2:43 pm
by mcnnetops
So, I kinda of wrote my own netonix_voltage.xml file that should satisfy the requirement for what the template is looking for in the ...cacti/resource/snmp_queries folder.

<path_cacti>/resource/snmp_queries/netonix_voltage.xml.

This seems to be wanted by a data query - and when I created this file, and put it in the proper place for cacti - I started getting voltage graphing.

I did have to create a new CDEF to multiply by 0.010 (Or your voltages are 2760 say for 27.6 Volts.)

ItemItem Value
Item #1
Special Data Source: CURRENT_DATA_SOURCE
Item #2
Custom String: 0.010
Item #3
Operator: *

Assign that to your graph template and change the CDEF Function to the conversion and you should be good!

So, if some other poor sap happens upon this post and wants cacti graphing - I hope all of the parts of the puzzle are here now!

As an aside 1.3.6.1.4.1.46242 is where all of the good stuff is to grab SNMP data for temp and voltage from these switches.

:)