centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

[network::cisco::standard::snmp::plugin] --mode=environment: CRITICAL: Sensor 'TenGigabitEthernet2/1 Receive Power Sensor/2115' is -40 dBm #4198

Open joschi99 opened 1 year ago

joschi99 commented 1 year ago

There are CRITICALS and WARNINGS because the device has some FC module (GBIC) without a connection:

centreon_plugins.pl --hostname= --snmp-community='xxx' --snmp-version=2c  --plugin=network::cisco::standard::snmp::plugin --mode=environment --component='' --filter='' --threshold-overload='' --warning='' --critical='' --filter='' --snmp-timeout=1
CRITICAL: Sensor 'TenGigabitEthernet2/1 Receive Power Sensor/2115' is -40 dBm WARNING: Sensor 'TenGigabitEthernet2/1 Transmit Power Sensor/2097' is 0 dBm | 'temp_air inlet'=21C;;~:56;; 'temp_air outlet (back)'=23C;;~:59;; 'temp_air outlet (front)'=23C;;~:57;; 'temp_air inlet'=20C;;~:56;; 'temp_air outlet (back)'=21C;;~:59;; 'temp_air outlet (front)'=20C;;~:57;; 'temp_XPP'=28C;;~:64;; 'temp_XPP Remote'=36C;;~:75;; 'temp_IFE'=27C;;~:68;; 'temp_IFE Remote'=33C;;~:74;; 'temp_CPU'=24C;;~:61;; 'temp_CPU Remote'=31C;;~:77;; 'sensor.truthvalue_Power Supply Fan Sensor'=1;;;; 'sensor.truthvalue_Power Supply Fan Sensor'=1;;;; 'sensor.celsius_TenGigabitEthernet1/1 Module Temperature Sensor'=27C;0.1:69.9;-3.9:73.9;; 'sensor.celsius_TenGigabitEthernet1/3 Module Temperature Sensor'=26C;0.1:69.9;-3.9:73.9;; 'sensor.voltsDC_TenGigabitEthernet1/1 Supply Voltage Sensor'=0V;;;; 'sensor.voltsDC_TenGigabitEthernet1/3 Supply Voltage Sensor'=0V;;;; 'sensor.amperes_TenGigabitEthernet1/1 Bias Current Sensor'=0.041A;;;; 'sensor.amperes_TenGigabitEthernet1/3 Bias Current Sensor'=0.0347A;;;; 'sensor.dBm_TenGigabitEthernet1/1 Transmit Power Sensor'=-1.9dBm;-8.1:0.3;-12.1:4.3;; 'sensor.dBm_TenGigabitEthernet1/3 Transmit Power Sensor'=-2dBm;-8.1:0.3;-12.1:4.3;; 'sensor.dBm_TenGigabitEthernet1/1 Receive Power Sensor'=-3dBm;-14.3:0.3;-18.3:4.3;; 'sensor.dBm_TenGigabitEthernet1/3 Receive Power Sensor'=-4.5dBm;-14.3:0.3;-18.3:4.3;; 'sensor.celsius_TenGigabitEthernet2/1 Module Temperature Sensor'=19C;0.1:69.9;-3.9:73.9;; 'sensor.voltsDC_TenGigabitEthernet2/1 Supply Voltage Sensor'=0V;;;; 'sensor.amperes_TenGigabitEthernet2/1 Bias Current Sensor'=0.0001A;;;; 'sensor.dBm_TenGigabitEthernet2/1 Transmit Power Sensor'=0dBm;-7.2:-1.1;-11.2:2.8;; 'sensor.dBm_TenGigabitEthernet2/1 Receive Power Sensor'=-40dBm;-9.8:-1.1;-13.8:2.8;; 'count_fan'=4;;;; 'count_module'=3;;;; 'count_psu'=2;;;; 'count_sensor'=17;;;; 'count_temperature'=12;;;;
Environment type: cat4000
Checking fans
fan 'Chassis Fan Tray 1' status is normal [instance: 1].
fan 'Power Supply 1 Fan' status is normal [instance: 2].
fan 'Power Supply 2 Fan' status is normal [instance: 3].
fan 'FanTray' status is up [instance: 12]
Checking power supplies
power supply 'Power Supply 1' status is normal [instance: 1] [source: ac]
power supply 'Power Supply 2' status is normal [instance: 2] [source: ac]
Checking temperatures
temperature 'air inlet' status is normal [instance: 1] [value: 21 C]
temperature 'air outlet (back)' status is normal [instance: 2] [value: 24 C]
temperature 'air outlet (front)' status is normal [instance: 3] [value: 23 C]
temperature 'air inlet' status is normal [instance: 11] [value: 20 C]
temperature 'air outlet (back)' status is normal [instance: 12] [value: 21 C]
temperature 'air outlet (front)' status is normal [instance: 13] [value: 20 C]
temperature 'XPP' status is normal [instance: 21] [value: 28 C]
temperature 'XPP Remote' status is normal [instance: 22] [value: 36 C]
temperature 'IFE' status is normal [instance: 23] [value: 27 C]
temperature 'IFE Remote' status is normal [instance: 24] [value: 33 C]
temperature 'CPU' status is normal [instance: 25] [value: 24 C]
temperature 'CPU Remote' status is normal [instance: 26] [value: 31 C]
Checking voltages
Checking modules
module '10GE (X2), 1000BaseX (SFP) with 6 10GE X2 ports' status is ok [instance: 1000]
module '10GE (X2), 1000BaseX (SFP) with 6 10GE X2 ports' status is ok [instance: 2000]
module 'Sup 7L-E 10GE (SFP+), 1000BaseX (SFP) with 4 SFP Ports' status is ok [instance: 3000]
Checking physicals
Checking sensors
sensor 'Power Supply Fan Sensor' status is 'ok' [instance: 16] [value: 1 truthvalue]
sensor 'Power Supply Fan Sensor' status is 'ok' [instance: 19] [value: 1 truthvalue]
sensor 'TenGigabitEthernet1/1 Module Temperature Sensor' status is 'ok' [instance: 1043] [value: 27 celsius]
sensor 'TenGigabitEthernet1/3 Module Temperature Sensor' status is 'ok' [instance: 1045] [value: 26 celsius]
sensor 'TenGigabitEthernet1/1 Supply Voltage Sensor' status is 'ok' [instance: 1061] [value: 0 voltsDC]
sensor 'TenGigabitEthernet1/3 Supply Voltage Sensor' status is 'ok' [instance: 1063] [value: 0 voltsDC]
sensor 'TenGigabitEthernet1/1 Bias Current Sensor' status is 'ok' [instance: 1079] [value: 0.041 amperes]
sensor 'TenGigabitEthernet1/3 Bias Current Sensor' status is 'ok' [instance: 1081] [value: 0.0347 amperes]
sensor 'TenGigabitEthernet1/1 Transmit Power Sensor' status is 'ok' [instance: 1097] [value: -1.9 dBm]
sensor 'TenGigabitEthernet1/3 Transmit Power Sensor' status is 'ok' [instance: 1099] [value: -2 dBm]
sensor 'TenGigabitEthernet1/1 Receive Power Sensor' status is 'ok' [instance: 1115] [value: -3 dBm]
sensor 'TenGigabitEthernet1/3 Receive Power Sensor' status is 'ok' [instance: 1117] [value: -4.5 dBm]
sensor 'TenGigabitEthernet2/1 Module Temperature Sensor' status is 'ok' [instance: 2043] [value: 19 celsius]
sensor 'TenGigabitEthernet2/1 Supply Voltage Sensor' status is 'ok' [instance: 2061] [value: 0 voltsDC]
sensor 'TenGigabitEthernet2/1 Bias Current Sensor' status is 'ok' [instance: 2079] [value: 0.0001 amperes]
sensor 'TenGigabitEthernet2/1 Transmit Power Sensor' status is 'unavailable' [instance: 2097] [value: 0 dBm]
sensor 'TenGigabitEthernet2/1 Receive Power Sensor' status is 'ok' [instance: 2115] [value: -40 dBm]

As you can see there are 2 sensors, one for Transmit Power and one for Receive Power:

sensor 'TenGigabitEthernet2/1 Transmit Power Sensor' status is 'unavailable' [instance: 2097] [value: 0 dBm]
sensor 'TenGigabitEthernet2/1 Receive Power Sensor' status is 'ok' [instance: 2115] [value: -40 dBm]

0 dBm and -40dBm because no FC is attached at the moment. Instance 2097 is also unavailable because customer shut down it.

Cisco is returning thresholds for both:

'sensor.dBm_TenGigabitEthernet2/1 Transmit Power Sensor'=0dBm;-7.2:-1.1;-11.2:2.8;; 
'sensor.dBm_TenGigabitEthernet2/1 Receive Power Sensor'=-40dBm;-9.8:-1.1;-13.8:2.8;; '

but this thresholds are only valid if the interfaces will be used/active.

We have this issue on every Cisco device where FC is not attached. Could you try to handle this exception?

garnier-quentin commented 1 year ago

Yes i know. It's a old issue. But i dont know how to fix it. It's not easy to link with the interface down.

joschi99 commented 1 year ago

I understand. To handle the exception in this way is to simple?

joschi99 commented 1 year ago

Have done some test: --list-interfaces will return the status of all interfaces like:

'Fa1' [speed = 10][status = down][id = 1][type = ethernetCsmacd]
'Te2/3' [speed = 10000][status = up][id = 10][type = ethernetCsmacd]
'Gi3/16--Controlled' [speed = 1000][status = down][id = 100][type = macSecControlledIF]
'Gi3/17--Uncontrolled' [speed = 1000][status = down][id = 101][type = macSecUncontrolledIF]
'Gi3/17--Controlled' [speed = 1000][status = down][id = 102][type = macSecControlledIF]
'Gi3/18--Uncontrolled' [speed = 1000][status = down][id = 103][type = macSecUncontrolledIF]
'Gi3/18--Controlled' [speed = 1000][status = down][id = 104][type = macSecControlledIF]
'Gi3/19--Uncontrolled' [speed = 1000][status = down][id = 105][type = macSecUncontrolledIF]
'Gi3/19--Controlled' [speed = 1000][status = down][id = 106][type = macSecControlledIF]
'Gi3/20--Uncontrolled' [speed = 1000][status = down][id = 107][type = macSecUncontrolledIF]
'Gi3/20--Controlled' [speed = 1000][status = down][id = 108][type = macSecControlledIF]
'Gi3/21--Uncontrolled' [speed = 1000][status = down][id = 109][type = macSecUncontrolledIF]
'Te2/4' [speed = 10000][status = down][id = 11][type = ethernetCsmacd]
'Gi3/21--Controlled' [speed = 1000][status = down][id = 110][type = macSecControlledIF]
'Gi3/22--Uncontrolled' [speed = 1000][status = down][id = 111][type = macSecUncontrolledIF]
'Gi3/22--Controlled' [speed = 1000][status = down][id = 112][type = macSecControlledIF]
'Gi3/23--Uncontrolled' [speed = 1000][status = down][id = 113][type = macSecUncontrolledIF]
'Gi3/23--Controlled' [speed = 1000][status = down][id = 114][type = macSecControlledIF]
'Gi3/24--Uncontrolled' [speed = 1000][status = down][id = 115][type = macSecUncontrolledIF]
'Gi3/24--Controlled' [speed = 1000][status = down][id = 116][type = macSecControlledIF]
'Lo21' [speed = 8000][status = up][id = 117][type = softwareLoopback]
'Po1' [speed = 100][status = down][id = 118][type = propVirtual]
'Vl700' [speed = 1000][status = up][id = 119][type = propVirtual]
'Te2/5' [speed = 10000][status = down][id = 12][type = ethernetCsmacd]
'Vl742' [speed = 1000][status = down][id = 120][type = propVirtual]
'Vl748' [speed = 1000][status = down][id = 121][type = propVirtual]
'Vl749' [speed = 1000][status = up][id = 122][type = propVirtual]
'Vl1100' [speed = 1000][status = up][id = 123][type = propVirtual]
'VLAN-700' [speed = ][status = up][id = 124][type = propVirtual]

It should possible to connect this information with the sensor using interface name?

garnier-quentin commented 1 year ago

Could you provide a full snmpwalk ?

joschi99 commented 1 year ago

cisco-fiber.zip could you remove the file when you have downloaded it?

joschi99 commented 1 year ago

are there some news on this?

lucie-dubrunfaut commented 2 months ago

Hello :)

This issue seems old and I'm not sure we provided an answer around it isn't it? Can you tell me if you still encounter this issue? Thank you for your understanding.

joschi99 commented 2 months ago

Yes, this issue is still there and should be handled. How can I help you?

lucie-dubrunfaut commented 2 months ago

Hello :)

I have started the procedure internally to correct this problem with the elements you provided to us (including the SNMPWalk if you wish to remove it). I have the necessary information to initiate a troubleshooting, when processing the ticket the person in charge will contact you here if necessary. Thanks for your patience 🙏