centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

Enhancement of the mode interfaces of the h3c plugin

Open Cynexxde opened this issue 2 years ago • 5 comments

Hello, for monitoring our fiber optic connections it would be very helpful to monitor the available values of the transceivers. This can be done in the same way as in the plugin for the Brocade switches. I can read the values in the stack as follows.

Unbenannt

The stack consists of six hp5940 switches, which are actually labeled H3C switches. The MIB for this is called "HH3C-Transceiver-info". Unfortunately I could not get the MIB anywhere. But I could find information about this on the following two pages.

https://computer2know.de/hpe-comware-network-snmp-transceiver-mibs:::397.html http://www.circitor.fr/Mibs/Html/H/HH3C-TRANSCEIVER-INFO-MIB.php

Related to this information I did a snmpwalk, which can be used for the extension of the plugin. snmpwalk -Cc -v3 ## -ObentU 10.#.#.# .1.3.6.1.4.1.25506.2.70 snmpwalk.txt

Cynexxde avatar Nov 11 '21 15:11 Cynexxde

I have found the mibs finally. They can be downloaded from the HPE website at the following link.

https://h10145.www1.hpe.com/downloads/DownloadSoftware.aspx?SoftwareReleaseUId=26455&ProductNumber=JH390A&lang=&cc=&prodSeriesId=&SaidNumber=

When testing the hardware mode, I noticed something else. For example, when I disconnect a power supply from the power, I get a message. However, it is not clear which switch is affected.

CRITICAL: Power supply 'HPE > HPE FF 5940 48SFP+ 6QSFP28 Switch Software Version 7.1.070 > CONTAINER LEVEL1 > PSU' status is 'psuError'

The situation is similar with the performance data. However, I can imagine that the assignments are not necessarily easy to program.

'192#CPU'=9.00%;0:70;0:90;0;100 '210#CPU'=8.00%;0:70;0:90;0;100 '228#CPU'=9.00%;0:70;0:90;0;100 '246#CPU'=12.00%;0:70;0:90;0;100 '264#CPU'=9.00%;0:70;0:90;0;100 '282#CPU'=10.00%;0:70;0:90;0;100

Cynexxde avatar Nov 12 '21 11:11 Cynexxde

The same function should be added to the plugin [network::hp::procurve::snmp::plugin]. For this I can also create a corresponding SNMP walk.

Regardless, what is actually the status on this? Will you find time in the next weeks?

Cynexxde avatar Nov 26 '21 11:11 Cynexxde

I have prepared all the necessary information for the plugin [network::hp::procurve::snmp::plugin]. The next few days I'll do the same for the H3C switches, so that the extension is as simple as possible.

Switch CLI Output: image

MIB: https://mibs.observium.org/mib/HP-ICF-TRANSCEIVER-MIB/

Transceivers with DOM can return RX and TX values. The interfaces have this if hpicfXcvrDiagnostics ( .1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.9) is equal to 1. Example:

.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.9.47 = INTEGER: 1
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.9.48 = INTEGER: 1

TX Bias hpicfXcvrBias | microamps | .1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.13

.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.13.47 = Gauge32: 4554
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.13.48 = Gauge32: 4944

TX Power hpicfXcvrTxPower | thousandths of dBm | .1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.14

.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.14.47 = INTEGER: -5014
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.14.48 = INTEGER: -4979

RX Power hpicfXcvrRxPower | thousandths of dBm | .1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.15

.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.15.47 = INTEGER: -5275
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.15.48 = INTEGER: -4824

Temperature hpicfXcvrTemp | thousandths of degrees Celsius | .1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.11

.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.11.47 = INTEGER: 33500
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.11.48 = INTEGER: 33582

Voltage hpicfXcvrVoltage | hundreds of microvolts | .1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.12

.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.12.47 = Gauge32: 32773
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.12.48 = Gauge32: 32637

Full Walk of hpicfTransceiverMIB | .1.3.6.1.4.1.11.2.14.11.5.1.82

.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.1.47 = INTEGER: 47
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.1.48 = INTEGER: 48
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.2.47 = STRING: "47"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.2.48 = STRING: "48"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.3.47 = STRING: "J4858C"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.3.48 = STRING: "J4858C"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.4.47 = STRING: "CN022DN3U1      "
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.4.48 = STRING: "CN022DN23F      "
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.5.47 = STRING: "1000SX   "
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.5.48 = STRING: "1000SX   "
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.6.47 = STRING: "LC"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.6.48 = STRING: "LC"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.7.47 = STRING: "850nm"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.7.48 = STRING: "850nm"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.8.47 = STRING: "550m (50um), 300m (62.5um),"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.8.48 = STRING: "550m (50um), 300m (62.5um),"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.9.47 = INTEGER: 1
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.9.48 = INTEGER: 1
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.10.47 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.10.48 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.11.47 = INTEGER: 33500
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.11.48 = INTEGER: 33582
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.12.47 = Gauge32: 32773
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.12.48 = Gauge32: 32637
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.13.47 = Gauge32: 4554
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.13.48 = Gauge32: 4944
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.14.47 = INTEGER: -5014
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.14.48 = INTEGER: -4979
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.15.47 = INTEGER: -5275
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.15.48 = INTEGER: -4824
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.16.47 = Hex-STRING: 00 00 00 00
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.16.48 = Hex-STRING: 00 00 00 00
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.17.47 = Hex-STRING: 00 00 00 00
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.17.48 = Hex-STRING: 00 00 00 00
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.18.47 = INTEGER: 90000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.18.48 = INTEGER: 90000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.19.47 = INTEGER: -40000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.19.48 = INTEGER: -40000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.20.47 = INTEGER: 85000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.20.48 = INTEGER: 85000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.21.47 = INTEGER: -20000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.21.48 = INTEGER: -20000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.22.47 = Gauge32: 36500
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.22.48 = Gauge32: 36500
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.23.47 = Gauge32: 29700
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.23.48 = Gauge32: 29700
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.24.47 = Gauge32: 36000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.24.48 = Gauge32: 36000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.25.47 = Gauge32: 30000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.25.48 = Gauge32: 30000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.26.47 = Gauge32: 10000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.26.48 = Gauge32: 10000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.27.47 = Gauge32: 1000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.27.48 = Gauge32: 1000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.28.47 = Gauge32: 9000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.28.48 = Gauge32: 9000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.29.47 = Gauge32: 2000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.29.48 = Gauge32: 2000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.30.47 = Gauge32: 8000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.30.48 = Gauge32: 8000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.31.47 = Gauge32: 1000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.31.48 = Gauge32: 1000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.32.47 = Gauge32: 6000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.32.48 = Gauge32: 6000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.33.47 = Gauge32: 2000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.33.48 = Gauge32: 2000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.34.47 = Gauge32: 16000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.34.48 = Gauge32: 16000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.35.47 = Gauge32: 100
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.35.48 = Gauge32: 100
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.36.47 = Gauge32: 10000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.36.48 = Gauge32: 10000
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.37.47 = Gauge32: 200
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.37.48 = Gauge32: 200
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.38.47 = STRING: "Wed Dec  8 15:33:01 2021"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.38.48 = STRING: "Wed Dec  8 15:33:01 2021"
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.39.47 = INTEGER: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.39.48 = INTEGER: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.40.47 = Gauge32: 10
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.40.48 = Gauge32: 10
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.41.47 = INTEGER: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.41.48 = INTEGER: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.42.47 = INTEGER: 5
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.42.48 = INTEGER: 5
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.43.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.43.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.44.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.44.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.45.47 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.45.48 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.46.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.46.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.47.47 = INTEGER: 5
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.47.48 = INTEGER: 5
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.48.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.48.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.49.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.49.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.50.47 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.50.48 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.51.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.51.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.52.47 = INTEGER: 5
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.52.48 = INTEGER: 5
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.53.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.53.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.54.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.54.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.55.47 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.55.48 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.56.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.56.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.57.47 = INTEGER: 5
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.57.48 = INTEGER: 5
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.58.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.58.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.59.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.59.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.60.47 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.60.48 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.61.47 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.61.48 = Gauge32: 0
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.62.47 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.62.48 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.63.47 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.63.48 = INTEGER: 2
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.64.47 = 1065497403
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.64.48 = 1065497409
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.65.47 = STRING: "100530  "
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.65.48 = STRING: "100529  "

Cynexxde avatar Dec 08 '21 15:12 Cynexxde

The oids described on the page work with H3C switches. https://computer2know.de/hpe-comware-network-snmp-transceiver-mibs:::397.html If something else is needed, please send a short feedback.

Cynexxde avatar Dec 13 '21 11:12 Cynexxde

@garnier-quentin Will you have time for this soon? This would be something I would really like to monitor. If you still need something I can help you there for sure.

Cynexxde avatar Jan 24 '22 13:01 Cynexxde

For the h3c, i need snmpwalk of following branches (put in a file and sent it to my email):

.1.3.6.1.2.1.2.2.1
.1.3.6.1.2.1.31.1.1.1
.1.3.6.1.2.1.47.1.1.1
.1.3.6.1.4.1.2011.10.2.6.1.1.1.1.6
.1.3.6.1.4.1.25506.2.6.1.1.1.1.6
.1.3.6.1.4.1.25506.2.70.1.1.1

For the hp procurve, i need snmpwalk of following branches (put in a file and sent it to my email):

.1.3.6.1.2.1.2.2.1
.1.3.6.1.2.1.31.1.1.1
.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1

Sorry for the delay

garnier-quentin avatar Aug 19 '22 08:08 garnier-quentin

@garnier-quentin I have sent you the data by mail.

Cynexxde avatar Aug 25 '22 07:08 Cynexxde

Now you have option --add-optical for plugin network::h3c::snmp::plugin and network::hp::procurve::snmp

garnier-quentin avatar Sep 30 '22 12:09 garnier-quentin

Hi, I have just tested it. With the plugin network::hp::procurve::snmp I unfortunately get no perf data output at all.

Cynexxde avatar Oct 04 '22 13:10 Cynexxde

Could you provide the command and the output used ?

garnier-quentin avatar Oct 04 '22 13:10 garnier-quentin

Input: centreon_plugins.pl --plugin network::hp::procurve::snmp::plugin --hostname 10.0.### --snmp-version 3 --snmp-username ### --authpassphrase ### --authprotocol SHA --privpassphrase ### --privprotocol AES --mode interfaces --interface "51" --add-optical

Output: OK: Interface '51' Status : up (admin: up)

Cynexxde avatar Oct 04 '22 13:10 Cynexxde

If you have a cache file before, you need to wait the cache reload or remove it.

garnier-quentin avatar Oct 04 '22 13:10 garnier-quentin

I have executed the same command several times.

Cynexxde avatar Oct 04 '22 13:10 Cynexxde

The cache is reloaded every 3 hours. You can force the common cache reload with the option: --reload-cache-time=-1

garnier-quentin avatar Oct 04 '22 13:10 garnier-quentin

It works with this --reload-cache-time=-1. I will continue testing then ^^

OK: Interface '52' Status : up (admin: up), Input Power : -7.26 dBm, Bias Current : 5.42 mA, Output Power : -5.225 dBm, Voltage : 3.3418 V, Module Temperature : 38.14 C | 'input-power'=-7.26dBm;;;; 'bias-current'=5.42mA;;;; 'output-power'=-5.225dBm;;;; 'voltage'=3.3418V;;;; 'module-temperature'=38.14C;;;;

Cynexxde avatar Oct 04 '22 13:10 Cynexxde