Curl doesn't give any output #1517
Closed
kommuri-bharath
started this conversation in
General
Replies: 1 comment
-
|
Closing this discussion as I posted in Q&A session. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
I planned to scrape the below OID's from an F5 node and ended up with an empty result.
When I include below OID's the scrape works successfully and gives the output:
f5_bigip_LAN_AZ_060:
But when I add the "psuStatsTable" to the above list, the curl will not give any result.
The snmpwalk is fine and giving the output.
/usr/bin/snmpwalk -r 2 -t 5 -v 3 -l authPriv -u XXXXX -a SHA -A XXXXX -x AES128 -X XXXXX 10.XXX.79 1.3.6.1.4.1.12276.1.2.1.9.1.1.1
SNMPv2-SMI::enterprises.12276.1.2.1.9.1.1.1.8.112.108.97.116.102.111.114.109.5.112.115.117.45.49 = STRING: "psu-1"
SNMPv2-SMI::enterprises.12276.1.2.1.9.1.1.1.8.112.108.97.116.102.111.114.109.5.112.115.117.45.50 = STRING: "psu-2"
/usr/bin/snmpwalk -r 2 -t 5 -v 3 -l authPriv -u XXXXz -a SHA -A XXXX -x AES128 -X XXXXX 10.XXXX79 1.3.6.1.4.1.12276.1.2.1.9.1.1.2
SNMPv2-SMI::enterprises.12276.1.2.1.9.1.1.2.8.112.108.97.116.102.111.114.109.5.112.115.117.45.49 = STRING: "FZ2242RC1042"
SNMPv2-SMI::enterprises.12276.1.2.1.9.1.1.2.8.112.108.97.116.102.111.114.109.5.112.115.117.45.50 = STRING: "FZ2242RC0695"
I am using generator to generate the yml file.. and the data in yml file looks like this:
modules:
< these entries are #ed >
f5_bigip_LAN_AZ_060:
< these entries are #ed >
WARNING: This file was auto-generated using snmp_exporter generator, manual changes will be lost.
f5_bigip_LAN_AZ_060:
walk:
- 1.3.6.1.4.1.12276.1.2.1.9.1
get:
- 1.3.6.1.2.1.1.3.0
- 1.3.6.1.2.1.1.5.0
- 1.3.6.1.2.1.25.1.1.0
metrics:
- name: sysUpTime
oid: 1.3.6.1.2.1.1.3
type: gauge
help: The time (in hundredths of a second) since the network management portion
of the system was last re-initialized. - 1.3.6.1.2.1.1.3
- name: sysName
oid: 1.3.6.1.2.1.1.5
type: DisplayString
help: An administratively-assigned name for this managed node - 1.3.6.1.2.1.1.5
- name: hrSystemUptime
oid: 1.3.6.1.2.1.25.1.1
type: gauge
help: The amount of time since this host was last initialized - 1.3.6.1.2.1.25.1.1
- name: psuName
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.1
type: DisplayString
help: PSU name - 1.3.6.1.4.1.12276.1.2.1.9.1.1.1
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuSerialNo
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.2
type: DisplayString
help: Serial number of PSU - 1.3.6.1.4.1.12276.1.2.1.9.1.1.2
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuPartNo
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.3
type: DisplayString
help: Part number of PSU - 1.3.6.1.4.1.12276.1.2.1.9.1.1.3
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuCurrentIn
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.4
type: gauge
help: The current input to the power supply unit (PSU) in milliamperes (mA).
- 1.3.6.1.4.1.12276.1.2.1.9.1.1.4
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuCurrentOut
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.5
type: gauge
help: The current output from the power supply unit (PSU) in milliamperes (mA).
- 1.3.6.1.4.1.12276.1.2.1.9.1.1.5
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuVoltageIn
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.6
type: gauge
help: The voltage input to the power supply unit (PSU) in millivolts (mV). -
1.3.6.1.4.1.12276.1.2.1.9.1.1.6
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuVoltageOut
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.7
type: gauge
help: The voltage output to the power supply unit (PSU) in millivolts (mV).
- 1.3.6.1.4.1.12276.1.2.1.9.1.1.7
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuTemperature1
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.8
type: gauge
help: The first temperature sensor reading of the power supply unit (PSU) in
degrees Celsius. - 1.3.6.1.4.1.12276.1.2.1.9.1.1.8
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuTemperature2
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.9
type: gauge
help: The second temperature sensor reading of the power supply unit (PSU) in
degrees Celsius. - 1.3.6.1.4.1.12276.1.2.1.9.1.1.9
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuTemperature3
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.10
type: gauge
help: The third temperature sensor reading of the power supply unit (PSU) in
degrees Celsius. - 1.3.6.1.4.1.12276.1.2.1.9.1.1.10
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuFan1Speed
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.11
type: gauge
help: The speed of the first fan in the power supply unit (PSU) in RPM (Revolutions
Per Minute). - 1.3.6.1.4.1.12276.1.2.1.9.1.1.11
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuFan2Speed
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.12
type: gauge
help: The speed of the second fan in the power supply unit (PSU) in RPM (Revolutions
Per Minute). - 1.3.6.1.4.1.12276.1.2.1.9.1.1.12
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuPowerIn
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.13
type: gauge
help: The power input to the power supply unit (PSU) in milliwatts (mW). - 1.3.6.1.4.1.12276.1.2.1.9.1.1.13
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
- name: psuPowerOut
oid: 1.3.6.1.4.1.12276.1.2.1.9.1.1.14
type: gauge
help: The power output from the power supply unit (PSU) in milliwatts (mW).
- 1.3.6.1.4.1.12276.1.2.1.9.1.1.14
indexes:
- labelname: index
type: gauge
- labelname: psuName
type: DisplayString
retries: 3
timeout: 5s
Could someone please help me why I am not receiving any output via curl command when I add "psuStatsTable" to the yml file.
SNMP Exporter version is 0.24.1
Thanks !!
Beta Was this translation helpful? Give feedback.
All reactions