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] environment Display alarm, but sensor ok #256

Closed tcheval closed 8 years ago

tcheval commented 8 years ago

Another problem with this plugins :

centreon_plugins.pl --plugin=network::cisco::standard::snmp::plugin --mode=environment --hostname=swname--snmp-version=2c --snmp-community=com CRITICAL: Sensor '-11.95 Voltage Sensor' is ok voltsAC | 'temp_NPE Inlet'=31C;;~:59;; 'temp_NPE Outlet'=34C;;~:64;; 'tempCPU Die'=51C;;~:105;; 'voltage+3.30 V'=3.281V;;3.125:3.476;; 'voltage+1.50 V'=1.503V;;1.406:1.572;; 'voltage+2.50 V'=2.480V;;2.343:2.656;; 'voltage+1.80 V'=1.796V;;1.679:1.914;; 'voltage+1.20 V'=1.201V;;1.132:1.289;; 'voltage_VDD_CPU'=1.289V;;1.210:1.367;; 'voltage_VDD_MEM'=2.480V;;2.343:2.656;; 'voltageVTT'=1.240V;;1.171:1.328;; 'voltage+3.45 V'=3.417V;;3.242:3.632;; 'voltage-11.95'=-12.079V;;-9.541:-14.288;; 'voltage+5.15 V'=4.960V;;4.843:5.468;; 'voltage_+12.15 V'=12.070V;;11.367:12.890;; 'sensor.celsius_NPE Inlet Temperature Sensor'=31C;0:43.99;0:79.99;; 'sensor.celsius_NPE Outlet Temperature Sensor'=34C;0:48.99;0:83.99;; 'sensor.celsiusCPU Die Temperature Sensor'=51C;0:89.99;0:109.99;; 'sensor.voltsAC+3.30 V Voltage Sensor'=3.281V;;2.314:4.286;; 'sensor.voltsAC+1.50 V Voltage Sensor'=1.503V;;1.064:1.943;; 'sensor.voltsAC+2.50 V Voltage Sensor'=2.48V;;1.728:3.271;; 'sensor.voltsAC+1.80 V Voltage Sensor'=1.796V;;1.26:2.333;; 'sensor.voltsAC+1.20 V Voltage Sensor'=1.201V;;0.83:1.552;; 'sensor.voltsAC_VDD_CPU Voltage Sensor'=1.289V;;0.908:1.708;; 'sensor.voltsAC_VDD_MEM Voltage Sensor'=2.48V;;1.728:3.271;; 'sensor.voltsACVTT Voltage Sensor'=1.24V;;0.869:1.63;; 'sensor.voltsAC+3.45 V Voltage Sensor'=3.417V;;2.431:4.482;; 'sensor.voltsAC-11.95 Voltage Sensor'=-12.079V;;-7.134:-16.131;; 'sensor.voltsAC+5.15 V Voltage Sensor'=4.96V;;3.642:6.747;; 'sensor.voltsAC_+12.15 V Voltage Sensor'=12.07V;;8.564:15.81;;

Displaying : CRITICAL: Sensor '-11.95 Voltage Sensor' is ok voltsAC | But the sensor is ok : 'sensor.voltsAC_-11.95 Voltage Sensor'=-12.079V;;-7.134:-16.131;;

garnier-quentin commented 8 years ago

Could you retest it ?

garnier-quentin commented 8 years ago

I don't understand how you can have -16.131 with greater than and -7.134 for lower. It's not logic :) Could you give me the snmpwalk of following oids: .1.3.6.1.4.1.9.9.91.1.2.1.1.2 .1.3.6.1.4.1.9.9.91.1.2.1.1.3 .1.3.6.1.4.1.9.9.91.1.2.1.1.4 .1.3.6.1.2.1.47.1.1.1.1.2

Thanks

tcheval commented 8 years ago

With last update :

centreon_plugins.pl --plugin=network::cisco::standard::snmp::plugin --mode=environment --hostname=swname --snmp-version=2c --snmp-community=com CRITICAL: Sensor '-11.95 Voltage Sensor' is -12.079 V | 'temp_NPE Inlet'=31C;;~:59;; 'temp_NPE Outlet'=34C;;~:64;; 'tempCPU Die'=51C;;~:105;; 'voltage+3.30 V'=3.300V;;3.125:3.476;; 'voltage+1.50 V'=1.503V;;1.406:1.572;; 'voltage+2.50 V'=2.500V;;2.343:2.656;; 'voltage+1.80 V'=1.796V;;1.679:1.914;; 'voltage+1.20 V'=1.201V;;1.132:1.289;; 'voltage_VDD_CPU'=1.289V;;1.210:1.367;; 'voltage_VDD_MEM'=2.480V;;2.343:2.656;; 'voltageVTT'=1.240V;;1.171:1.328;; 'voltage+3.45 V'=3.417V;;3.242:3.632;; 'voltage-11.95'=-12.079V;;-9.541:-14.288;; 'voltage+5.15 V'=4.960V;;4.843:5.468;; 'voltage_+12.15 V'=12.070V;;11.367:12.890;; 'sensor.celsius_NPE Inlet Temperature Sensor'=31C;0:43.99;0:79.99;; 'sensor.celsius_NPE Outlet Temperature Sensor'=34C;0:48.99;0:83.99;; 'sensor.celsiusCPU Die Temperature Sensor'=51C;0:89.99;0:109.99;; 'sensor.voltsAC+3.30 V Voltage Sensor'=3.3V;;2.314:4.286;; 'sensor.voltsAC+1.50 V Voltage Sensor'=1.503V;;1.064:1.943;; 'sensor.voltsAC+2.50 V Voltage Sensor'=2.5V;;1.728:3.271;; 'sensor.voltsAC+1.80 V Voltage Sensor'=1.796V;;1.26:2.333;; 'sensor.voltsAC+1.20 V Voltage Sensor'=1.201V;;0.83:1.552;; 'sensor.voltsAC_VDD_CPU Voltage Sensor'=1.289V;;0.908:1.708;; 'sensor.voltsAC_VDD_MEM Voltage Sensor'=2.48V;;1.728:3.271;; 'sensor.voltsACVTT Voltage Sensor'=1.24V;;0.869:1.63;; 'sensor.voltsAC+3.45 V Voltage Sensor'=3.417V;;2.431:4.482;; 'sensor.voltsAC-11.95 Voltage Sensor'=-12.079V;;-7.134:-16.131;; 'sensor.voltsAC+5.15 V Voltage Sensor'=4.96V;;3.642:6.747;; 'sensor.voltsAC_+12.15 V Voltage Sensor'=12.07V;;8.564:15.81;;

in CLI on switch, we have the same value :

swname#show environment all Power Supplies: Power Supply 1 is Zytek AC Power Supply. Unit is on. Power Supply 2 is Zytek AC Power Supply. Unit is on.

Temperature readings: NPE Inlet measured at 31C/87F NPE Outlet measured at 34C/93F CPU Die measured at 51C/123F

Voltage readings: +3.30 V measured at +3.28 V +1.50 V measured at +1.50 V +2.50 V measured at +2.50 V +1.80 V measured at +1.80 V +1.20 V measured at +1.20 V VDD_CPU measured at +1.28 V VDD_MEM measured at +2.48 V VTT measured at +1.24 V +3.45 V measured at +3.41 V -11.95 measured at -12.07 V +5.15 V measured at +4.96 V +12.15 V measured at +12.07 V

Envm stats saved 0 time(s) since reload

Here walk output :

snmpwalk -c com -v 2c swname .1.3.6.1.4.1.9.9.91.1.2.1.1.2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.26.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.26.2 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.26.3 = INTEGER: 10 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.27.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.27.2 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.27.3 = INTEGER: 10 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.28.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.28.2 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.28.3 = INTEGER: 10 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.29.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.29.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.29.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.29.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.30.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.30.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.30.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.30.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.31.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.31.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.31.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.31.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.32.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.32.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.32.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.32.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.33.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.33.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.33.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.33.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.34.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.34.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.34.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.34.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.35.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.35.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.35.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.35.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.36.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.36.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.36.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.36.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.37.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.37.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.37.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.37.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.38.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.38.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.38.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.38.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.39.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.39.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.39.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.39.4 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.40.1 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.40.2 = INTEGER: 20 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.40.3 = INTEGER: 30 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.2.40.4 = INTEGER: 30

snmpwalk -c com -v 2c swname .1.3.6.1.4.1.9.9.91.1.2.1.1.3 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.26.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.26.2 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.26.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.27.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.27.2 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.27.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.28.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.28.2 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.28.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.29.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.29.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.29.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.29.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.30.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.30.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.30.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.30.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.31.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.31.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.31.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.31.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.32.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.32.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.32.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.32.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.33.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.33.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.33.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.33.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.34.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.34.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.34.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.34.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.35.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.35.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.35.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.35.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.36.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.36.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.36.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.36.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.37.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.37.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.37.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.37.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.38.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.38.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.38.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.38.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.39.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.39.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.39.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.39.4 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.40.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.40.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.40.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.40.4 = INTEGER: 2

snmpwalk -c com -v 2c swname .1.3.6.1.4.1.9.9.91.1.2.1.1.4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.26.1 = INTEGER: 59 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.26.2 = INTEGER: 80 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.26.3 = INTEGER: 44 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.27.1 = INTEGER: 64 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.27.2 = INTEGER: 84 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.27.3 = INTEGER: 49 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.28.1 = INTEGER: 105 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.28.2 = INTEGER: 110 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.28.3 = INTEGER: 90 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.29.1 = INTEGER: 3476 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.29.2 = INTEGER: 3125 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.29.3 = INTEGER: 4296 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.29.4 = INTEGER: 2304 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.30.1 = INTEGER: 1572 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.30.2 = INTEGER: 1406 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.30.3 = INTEGER: 1953 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.30.4 = INTEGER: 1054 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.31.1 = INTEGER: 2656 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.31.2 = INTEGER: 2343 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.31.3 = INTEGER: 3281 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.31.4 = INTEGER: 1718 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.32.1 = INTEGER: 1914 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.32.2 = INTEGER: 1679 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.32.3 = INTEGER: 2343 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.32.4 = INTEGER: 1250 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.33.1 = INTEGER: 1289 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.33.2 = INTEGER: 1132 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.33.3 = INTEGER: 1562 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.33.4 = INTEGER: 820 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.34.1 = INTEGER: 1367 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.34.2 = INTEGER: 1210 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.34.3 = INTEGER: 1718 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.34.4 = INTEGER: 898 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.35.1 = INTEGER: 2656 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.35.2 = INTEGER: 2343 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.35.3 = INTEGER: 3281 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.35.4 = INTEGER: 1718 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.36.1 = INTEGER: 1328 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.36.2 = INTEGER: 1171 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.36.3 = INTEGER: 1640 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.36.4 = INTEGER: 859 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.37.1 = INTEGER: 3632 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.37.2 = INTEGER: 3242 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.37.3 = INTEGER: 4492 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.37.4 = INTEGER: 2421 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.38.1 = INTEGER: -14288 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.38.2 = INTEGER: -9541 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.38.3 = INTEGER: -16121 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.38.4 = INTEGER: -7144 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.39.1 = INTEGER: 5468 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.39.2 = INTEGER: 4843 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.39.3 = INTEGER: 6757 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.39.4 = INTEGER: 3632 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.40.1 = INTEGER: 12890 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.40.2 = INTEGER: 11367 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.40.3 = INTEGER: 15820 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.40.4 = INTEGER: 8554

snmpwalk -c com -v 2c swname .1.3.6.1.2.1.47.1.1.1.1.2 SNMPv2-SMI::mib-2.47.1.1.1.1.2.1 = STRING: "Cisco 7206VXR, 6-slot chassis" SNMPv2-SMI::mib-2.47.1.1.1.1.2.2 = STRING: "I/O and Processor Slot Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.3 = STRING: "PA Slot Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.4 = STRING: "PA Slot Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.5 = STRING: "PA Slot Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.6 = STRING: "PA Slot Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.7 = STRING: "PA Slot Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.8 = STRING: "PA Slot Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.9 = STRING: "Cisco 7200 Series Network Processing Engine NPE-G2" SNMPv2-SMI::mib-2.47.1.1.1.1.2.10 = STRING: "SFP Port Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.11 = STRING: "MV64460 Internal MAC" SNMPv2-SMI::mib-2.47.1.1.1.1.2.12 = STRING: "MV64460 Internal MAC RJ45" SNMPv2-SMI::mib-2.47.1.1.1.1.2.13 = STRING: "SFP Port Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.14 = STRING: "MV64460 Internal MAC" SNMPv2-SMI::mib-2.47.1.1.1.1.2.15 = STRING: "MV64460 Internal MAC RJ45" SNMPv2-SMI::mib-2.47.1.1.1.1.2.16 = STRING: "SFP Port Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.17 = STRING: "MV64460 Internal MAC" SNMPv2-SMI::mib-2.47.1.1.1.1.2.18 = STRING: "MV64460 Internal MAC RJ45" SNMPv2-SMI::mib-2.47.1.1.1.1.2.19 = STRING: "i82545" SNMPv2-SMI::mib-2.47.1.1.1.1.2.20 = STRING: "Flash Card Slot Container CPU" SNMPv2-SMI::mib-2.47.1.1.1.1.2.21 = STRING: "256MB Compact Flash Disk for NPE-G2" SNMPv2-SMI::mib-2.47.1.1.1.1.2.22 = STRING: "USB Port" SNMPv2-SMI::mib-2.47.1.1.1.1.2.23 = STRING: "USB Port" SNMPv2-SMI::mib-2.47.1.1.1.1.2.24 = STRING: "Power Supply Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.25 = STRING: "Power Supply Container" SNMPv2-SMI::mib-2.47.1.1.1.1.2.26 = STRING: "NPE Inlet Temperature Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.27 = STRING: "NPE Outlet Temperature Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.28 = STRING: "CPU Die Temperature Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.29 = STRING: "+3.30 V Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.30 = STRING: "+1.50 V Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.31 = STRING: "+2.50 V Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.32 = STRING: "+1.80 V Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.33 = STRING: "+1.20 V Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.34 = STRING: "VDD_CPU Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.35 = STRING: "VDD_MEM Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.36 = STRING: "VTT Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.37 = STRING: "+3.45 V Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.38 = STRING: "-11.95 Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.39 = STRING: "+5.15 V Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.40 = STRING: "+12.15 V Voltage Sensor" SNMPv2-SMI::mib-2.47.1.1.1.1.2.41 = STRING: "Cisco 7200 AC Power Supply" SNMPv2-SMI::mib-2.47.1.1.1.1.2.42 = STRING: "Cisco 7200 AC Power Supply" SNMPv2-SMI::mib-2.47.1.1.1.1.2.43 = STRING: "1000BaseSX"

garnier-quentin commented 8 years ago

The Cisco information are buggy. SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.38.1 = INTEGER: -14288 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.38.2 = INTEGER: -9541 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.38.3 = INTEGER: -16121 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.4.38.4 = INTEGER: -7144

SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.38.1 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.38.2 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.38.3 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.91.1.2.1.1.3.38.4 = INTEGER: 2

4 is for 'greaterOrEqual'. So we have critical when value (-12.079V) is greater than -14.288 (or -16.121). -12.079 is greater than -14.288 (or -16.121)

tcheval commented 8 years ago

I'm not sure I understand :)

Below, the output for command "show environment table" :

swname#sh environment table Sample Point LowShut LowCrit LowWarn HighWarn HighCrit HighShut
-11.95 -7.14 -9.54 -14.28 -16.12

Does it help ?

swname#sh environment table Sample Point LowShut LowCrit LowWarn HighWarn HighCrit HighShut
+3.30 V +2.30 +3.12 +3.47 +4.29
+1.50 V +1.05 +1.40 +1.57 +1.95
+2.50 V +1.71 +2.34 +2.65 +3.28
+1.80 V +1.25 +1.67 +1.91 +2.34
+1.20 V +0.82 +1.13 +1.28 +1.56
VDD_CPU +0.89 +1.21 +1.36 +1.71
VDD_MEM +1.71 +2.34 +2.65 +3.28
VTT +0.85 +1.17 +1.32 +1.64
+3.45 V +2.42 +3.24 +3.63 +4.49
-11.95 -7.14 -9.54 -14.28 -16.12
+5.15 V +3.63 +4.84 +5.46 +6.75
+12.15 V +8.55 +11.36 +12.89 +15.82

garnier-quentin commented 8 years ago

I give you the description from cisco mib for : This variable indicates the relation between sensor value (entSensorValue) and threshold value (entSensorThresholdValue), required to trigger the alarm. when evaluating the relation, entSensorValue is on the left of entSensorThresholdRelation, entSensorThresholdValue is on the right.

For '-14.288', the relation is '4' (it means great or equal than. So '>='). If i take the description: entSensorValue >= entSensorThresholdValue -12.079 >= -14.288

So it's critical!

tcheval commented 8 years ago

Ok I understand. I agree for positive values.

Mathematically the value is greater, so it's critical

But, the warning low value is -7, the warning high value is -14.

If my current value is -12, that's okay.

But if my value falls to -6 or if my value goes -15 we have a warning alarm.

We will have the same behavior with optical sensors cisco.

maksimatveev commented 8 years ago

Updated plug-ins and such reports were:

CRITICAL: Sensor 'TenGigabitEthernet1/50 Bias Current Sensor' is 0.0341 A - Sensor 'TenGigabitEthernet1/52 Bias Current Sensor' is 0.0358 A WARNING: Sensor 'TenGigabitEthernet1/50 Transmit Power Sensor' is 1.1 dBm - Sensor 'TenGigabitEthernet1/50 Receive Power Sensor' is -18.3 dBm | 'sensor.truthvalue_Power Supply Fan Sensor'=1;;;; 'sensor.truthvalue_Power Supply Fan Sensor'=1;;;; 'sensor.celsius_TenGigabitEthernet1/50 Module Temperature Sensor'=52.2C;0.01:69.99;-4.99:74.99;; 'sensor.celsius_TenGigabitEthernet1/52 Module Temperature Sensor'=49C;0.01:69.99;-4.99:74.99;; 'sensor.voltsDC_TenGigabitEthernet1/50 Supply Voltage Sensor'=3.29V;3.11:3.49;3.01:3.59;; 'sensor.voltsDC_TenGigabitEthernet1/52 Supply Voltage Sensor'=3.24V;3.11:3.49;3.01:3.59;; 'sensor.amperes_TenGigabitEthernet1/50 Bias Current Sensor'=0.0341A;0.141:0.121;0.141:0.121;; 'sensor.amperes_TenGigabitEthernet1/52 Bias Current Sensor'=0.0358A;0.141:0.121;0.141:0.121;; 'sensor.dBm_TenGigabitEthernet1/50 Transmit Power Sensor'=1.1dBm;-8.19:0.39;-12.19:3.39;; 'sensor.dBm_TenGigabitEthernet1/52 Transmit Power Sensor'=-3.5dBm;-8.19:0.39;-12.19:3.39;; 'sensor.dBm_TenGigabitEthernet1/50 Receive Power Sensor'=-18.3dBm;-14.39:0.39;-18.39:3.39;; 'sensor.dBm_TenGigabitEthernet1/52 Receive Power Sensor'=-7.1dBm;-14.39:0.39;-18.39:3.39;; Environment type: cat4000 Checking sensors Sensor 'Power Supply Fan Sensor' status is 'ok' [instance: 8] [value: 1 truthvalue] Sensor 'Power Supply Fan Sensor' status is 'ok' [instance: 11] [value: 1 truthvalue] Sensor 'TenGigabitEthernet1/50 Module Temperature Sensor' status is 'ok' [instance: 1118] [value: 52.2 celsius] Sensor 'TenGigabitEthernet1/52 Module Temperature Sensor' status is 'ok' [instance: 1120] [value: 49 celsius] Sensor 'TenGigabitEthernet1/50 Supply Voltage Sensor' status is 'ok' [instance: 1170] [value: 3.29 voltsDC] Sensor 'TenGigabitEthernet1/52 Supply Voltage Sensor' status is 'ok' [instance: 1172] [value: 3.24 voltsDC] Sensor 'TenGigabitEthernet1/50 Bias Current Sensor' status is 'ok' [instance: 1222] [value: 0.0341 amperes] Sensor 'TenGigabitEthernet1/52 Bias Current Sensor' status is 'ok' [instance: 1224] [value: 0.0358 amperes] Sensor 'TenGigabitEthernet1/50 Transmit Power Sensor' status is 'ok' [instance: 1274] [value: 1.1 dBm] Sensor 'TenGigabitEthernet1/52 Transmit Power Sensor' status is 'ok' [instance: 1276] [value: -3.5 dBm] Sensor 'TenGigabitEthernet1/50 Receive Power Sensor' status is 'ok' [instance: 1326] [value: -18.3 dBm] Sensor 'TenGigabitEthernet1/52 Receive Power Sensor' status is 'ok' [instance: 1328] [value: -7.1 dBm]

In my opinion wrongly defined thresholds.

garnier-quentin commented 8 years ago

You mean greather than for negative value, should be <= ? And lower than is greather than ?

Could give me the snmpwalk for the following (instance: 1118, 1274, 1276): 'sensor.celsius_TenGigabitEthernet1/50 Module Temperature Sensor'=52.2C;0.01:69.99;-4.99:74.99;; 'sensor.dBm_TenGigabitEthernet1/50 Transmit Power Sensor'=1.1dBm;-8.19:0.39;-12.19:3.39;; 'sensor.dBm_TenGigabitEthernet1/52 Transmit Power Sensor'=-3.5dBm;-8.19:0.39;-12.19:3.39;;

maksimatveev commented 8 years ago

@garnier-quentin

snmpwalk -v 2c -c public 172.24.245.1 entSensorThresholdValue.1118 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1118.1 = INTEGER: 750 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1118.2 = INTEGER: 700 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1118.3 = INTEGER: 0 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1118.4 = INTEGER: -50

snmpwalk -v 2c -c public 172.24.245.1 entSensorThresholdValue.1274 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1274.1 = INTEGER: 34 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1274.2 = INTEGER: 4 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1274.3 = INTEGER: -82 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1274.4 = INTEGER: -122

snmpwalk -v 2c -c public 172.24.245.1 entSensorThresholdValue.1276 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.1 = INTEGER: 34 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.2 = INTEGER: 4 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.3 = INTEGER: -82 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.4 = INTEGER: -122

sw-core# show interfaces transceiver If device is externally calibrated, only calibrated values are printed. ++ : high alarm, + : high warning, - : low warning, -- : low alarm. NA or N/A: not applicable, Tx: transmit, Rx: receive. mA: milliamperes, dBm: decibels (milliwatts).

                             Optical   Optical
       Temperature  Voltage  Tx Power  Rx Power

Port (Celsius) (Volts) (dBm) (dBm)


Te1/50 45.8 3.29 1.1 -18.4
Te1/52 42.7 3.25 -3.5 -7.2

The threshold values based on the type of module and optical connector: sw-core#show interfaces transceiver threshold-table Optical Tx Optical Rx Temp Laser Bias Voltage current


GBIC DWDM Min1 -4.00 -32.00 -4 N/A 4.65
Min2 0.00 -28.00 0 N/A 4.75
Max2 4.00 -9.00 70 N/A 5.25
Max1 7.00 -5.00 74 N/A 5.40
GBIC RX only WDM Min1 N/A -32.00 -4 N/A 4.65
Min2 N/A -28.30 0 N/A 4.75
Max2 N/A -9.00 70 N/A 5.25
Max1 N/A -5.00 74 N/A 5.40
XENPAK DWDM Min1 -5.00 -28.00 -4 N/A N/A
Min2 -1.00 -24.00 0 N/A N/A
Max2 3.00 -7.00 70 N/A N/A
Max1 7.00 -3.00 74 N/A N/A
XENPAK ZR Min1 -4.00 -28.00 -4 N/A N/A
Min2 0.00 -24.00 0 N/A N/A
Max2 4.00 -7.00 70 N/A N/A
Max1 8.00 -3.00 74 N/A N/A
XENPAK Rx only WDM Min1 N/A -28.00 -4 N/A N/A
Min2 N/A -24.00 0 N/A N/A
Max2 N/A -7.00 70 N/A N/A
Max1 N/A -3.00 74 N/A N/A
XENPAK ER Min1 -8.70 -19.80 -4 N/A N/A
Min2 -4.70 -15.80 0 N/A N/A
Max2 4.00 -1.00 70 N/A N/A
Max1 8.00 3.00 74 N/A N/A
XENPAK LR Min1 -12.20 -18.40 -4 N/A N/A
Min2 -8.20 -14.40 0 N/A N/A
Max2 0.50 0.50 70 N/A N/A
Max1 4.50 4.50 74 N/A N/A
XENPAK LW Min1 -12.20 -18.40 -4 N/A N/A
Min2 -8.20 -14.40 0 N/A N/A
Max2 0.50 0.50 70 N/A N/A
Max1 4.50 4.50 74 N/A N/A
X2 DWDM Min1 -5.00 -28.00 -4 N/A N/A
Min2 -1.00 -24.00 0 N/A N/A
Max2 3.00 -7.00 70 N/A N/A
Max1 7.00 -3.00 74 N/A N/A
X2 CWDM Min1 N/A N/A 0 N/A N/A
Min2 N/A N/A 0 N/A N/A
Max2 N/A N/A 0 N/A N/A
Max1 N/A N/A 0 N/A N/A
X2 ZR Min1 -4.00 -28.00 -4 N/A N/A
Min2 0.00 -24.00 0 N/A N/A
Max2 4.00 -7.00 70 N/A N/A
Max1 8.00 -3.00 74 N/A N/A
X2 ER
Min1 -8.70 -19.80 -4 N/A N/A
Min2 -4.70 -15.80 0 N/A N/A
Max2 4.00 -1.00 70 N/A N/A
Max1 8.00 3.00 74 N/A N/A
X2 LR Min1 -12.20 -18.40 -4 N/A N/A
Min2 -8.20 -14.40 0 N/A N/A
Max2 0.50 0.50 70 N/A N/A
Max1 4.50 4.50 74 N/A N/A
X2 LW Min1 -12.20 -18.40 -4 N/A N/A
Min2 -8.20 -14.40 0 N/A N/A
Max2 0.50 0.50 70 N/A N/A
Max1 4.50 4.50 74 N/A N/A
X2 LRM Min1 -10.50 -12.40 -4 N/A N/A
Min2 -6.50 -8.40 0 N/A N/A
Max2 0.50 0.50 70 N/A N/A
Max1 3.00 3.00 74 N/A N/A
X2 SR Min1 -11.30 -13.90 -4 N/A N/A
Min2 -7.30 -9.90 0 N/A N/A
Max2 -1.00 -1.00 70 N/A N/A
Max1 3.00 3.00 74 N/A N/A
XFP DWDM Min1 -5.00 -28.00 -4 N/A N/A
Min2 -1.00 -24.00 0 N/A N/A
Max2 3.00 -7.00 70 N/A N/A
Max1 7.00 -3.00 74 N/A N/A
XFP CWDM Min1 N/A N/A 0 N/A N/A
Min2 N/A N/A 0 N/A N/A
Max2 N/A N/A 0 N/A N/A
Max1 N/A N/A 0 N/A N/A
XFP ZR Min1 -4.00 -28.00 -4 N/A N/A
Min2 0.00 -24.00 0 N/A N/A
Max2 4.00 -7.00 70 N/A N/A
Max1 8.00 -3.00 74 N/A N/A
XFP ER Min1 -8.70 -19.80 -4 N/A N/A
Min2 -4.70 -15.80 0 N/A N/A
Max2 4.00 -1.00 70 N/A N/A
Max1 8.00 3.00 74 N/A N/A
XFP LR Min1 -12.20 -18.40 -4 N/A N/A
Min2 -8.20 -14.40 0 N/A N/A
Max2 0.50 0.50 70 N/A N/A
Max1 4.50 4.50 74 N/A N/A
XFP SR Min1 -11.30 -13.90 -4 N/A N/A
Min2 -7.30 -9.90 0 N/A N/A
Max2 -1.00 -1.00 70 N/A N/A
Max1 3.00 3.00 74 N/A N/A
DWDM SFP Min1 -4.00 -32.00 -4 N/A 3.00
Min2 0.00 -28.00 0 N/A 3.10
Max2 4.00 -9.00 70 N/A 3.50
Max1 8.00 -5.00 74 N/A 3.60
CWDM_SFP Min1 -4.00 -32.00 -4 N/A 3.00
Min2 0.00 -28.00 0 N/A 3.10
Max2 5.00 -7.00 70 N/A 3.50
Max1 8.10 -3.00 74 N/A 3.60
SX_SFP Min1 -13.50 -21.00 -9 N/A 3.00
Min2 -9.50 -17.00 -5 N/A 3.10
Max2 -3.00 0.00 85 N/A 3.50
Max1 1.00 4.00 89 N/A 3.60
LX_SFP Min1 -13.50 -23.00 -9 N/A 3.00
Min2 -9.50 -19.00 -5 N/A 3.10
Max2 -3.00 -3.00 85 N/A 3.50
Max1 1.00 1.00 89 N/A 3.60
ZX_SFP Min1 -4.00 -27.00 -9 N/A 3.00
Min2 0.00 -23.00 -5 N/A 3.10
Max2 5.00 -3.00 85 N/A 3.50
Max1 8.10 1.00 89 N/A 3.60
GigE BX U SFP Min1 -13.50 -23.50 -10 N/A 2.97
Min2 -9.00 -19.50 -5 N/A 3.14
Max2 -3.00 -3.00 70 N/A 3.47
Max1 0.00 0.00 75 N/A 3.63
GigE BX D SFP Min1 -13.50 -23.50 -10 N/A 2.97
Min2 -9.00 -19.50 -5 N/A 3.14
Max2 -3.00 -3.00 70 N/A 3.47
Max1 0.00 0.00 75 N/A 3.63
GLC 2BX U SFP Min1 -13.00 -23.50 -5 N/A 3.20
Min2 -9.00 -19.50 0 N/A 3.25
Max2 -3.00 -3.00 70 N/A 3.35
Max1 1.00 1.00 75 N/A 3.40
GLC 2BX D SFP Min1 -13.00 -23.50 -5 N/A 3.20
Min2 -9.00 -19.50 0 N/A 3.25
Max2 -3.00 -3.00 70 N/A 3.35
Max1 1.00 1.00 75 N/A 3.40
EX SFP Min1 -5.00 -26.00 -10 N/A 2.97
Min2 -1.00 -22.00 -5 N/A 3.14
Max2 3.00 1.00 85 N/A 3.47
Max1 6.00 4.00 90 N/A 3.63
10GE SR SFP+ Min1 -11.30 -13.90 -5 N/A 3.00
Min2 -7.30 -9.90 0 N/A 3.10
Max2 -1.30 -1.00 70 N/A 3.50
Max1 1.70 2.00 75 N/A 3.60
10GE LR SFP+ Min1 -12.20 -18.40 -5 N/A 3.00
Min2 -8.20 -14.40 0 N/A 3.10
Max2 0.50 0.50 70 N/A 3.50
Max1 3.50 3.50 75 N/A 3.60
10GE ER SFP+ Min1 -8.70 -19.80 -5 N/A 3.00
Min2 -4.70 -15.80 0 N/A 3.10
Max2 4.00 -1.00 70 N/A 3.50
Max1 7.00 2.00 75 N/A 3.60
10GE LRM SFP+ Min1 -10.50 -12.40 -5 N/A 3.00
Min2 -6.50 -8.40 0 N/A 3.10
Max2 0.50 0.50 70 N/A 3.50
Max1 3.50 3.50 75 N/A 3.60
10GE USR SFP+ Min1 -11.30 -13.90 -5 N/A 3.00
Min2 -7.30 -9.90 0 N/A 3.10
Max2 -1.29 -1.00 70 N/A 3.50
Max1 1.70 2.00 75 N/A 3.60
10GE LRM SM SFP+ Min1 -10.50 -12.40 -5 N/A 3.00
Min2 -6.50 -8.40 0 N/A 3.10
Max2 0.50 0.50 70 N/A 3.50
Max1 3.50 3.50 75 N/A 3.60
10GE ZR SFP+ Min1 -4.00 -31.00 -5 N/A 3.00
Min2 0.00 -27.00 0 N/A 3.10
Max2 4.00 -7.00 70 N/A 3.50
Max1 7.00 -3.00 75 N/A 3.60

The type of module, in this case 10GE LR SFP+ switch means thresholds exposes true: Critical Min1 -12.20 -18.40
Warning Min2 -8.20 -14.40 Warning Max2 0.50 0.50 Critical Max1 3.50 3.50 Proper operation should occur at the intersection of these values.

maksimatveev commented 8 years ago

Note that above the first column is theTx and the other Rx.

maksimatveev commented 8 years ago

Regarding "Bias Current Sensor", it seems to be divided by 10000, and must 1000. CISCO-ENTITY-SENSOR-MIB::entSensorScale.1222 = INTEGER: milli(8) CISCO-ENTITY-SENSOR-MIB::entSensorScale.1223 = INTEGER: milli(8) ie: CISCO-ENTITY-SENSOR-MIB::entSensorValue.1222 = INTEGER: 313 = 0.313 A CISCO-ENTITY-SENSOR-MIB::entSensorValue.1223 = INTEGER: 297 = 0.297 A

garnier-quentin commented 8 years ago

Sorry. it's not enough for snmpwalk. I need walk for all 3 OIDS (for each instance): .1.3.6.1.4.1.9.9.91.1.2.1.1.2 .1.3.6.1.4.1.9.9.91.1.2.1.1.3 .1.3.6.1.4.1.9.9.91.1.2.1.1.4

garnier-quentin commented 8 years ago

For the instance 1222, could you give me also the snmpwalk for the following OIDS: entSensorPrecision entSensorThresholdSeverity entSensorThresholdRelation entSensorThresholdValue

Thanks

maksimatveev commented 8 years ago

@garnier-quentin Hopefully this will be enough.

for each instance - perform snmpwalk for multiple hosts?

snmpwalk -v 2c -c public 172.24.245.1 .1.3.6.1.4.1.9.9.91.1.2.1.1.2 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1118.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1118.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1118.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1118.4 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1120.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1120.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1120.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1120.4 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1170.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1170.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1170.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1170.4 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1172.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1172.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1172.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1172.4 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1222.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1222.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1222.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1222.4 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1224.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1224.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1224.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1224.4 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1274.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1274.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1274.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1274.4 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1276.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1276.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1276.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1276.4 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1326.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1326.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1326.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1326.4 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1328.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1328.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1328.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1328.4 = INTEGER: major(20)

snmpwalk -v 2c -c public 172.24.245.1 .1.3.6.1.4.1.9.9.91.1.2.1.1.3 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1118.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1118.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1118.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1118.4 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1120.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1120.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1120.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1120.4 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1170.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1170.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1170.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1170.4 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1172.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1172.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1172.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1172.4 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1222.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1222.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1222.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1222.4 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1224.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1224.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1224.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1224.4 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1274.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1274.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1274.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1274.4 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1276.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1276.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1276.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1276.4 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1326.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1326.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1326.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1326.4 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1328.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1328.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1328.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1328.4 = INTEGER: lessOrEqual(2)

snmpwalk -v 2c -c public 172.24.245.1 .1.3.6.1.4.1.9.9.91.1.2.1.1.4 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1118.1 = INTEGER: 750 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1118.2 = INTEGER: 700 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1118.3 = INTEGER: 0 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1118.4 = INTEGER: -50 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1120.1 = INTEGER: 750 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1120.2 = INTEGER: 700 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1120.3 = INTEGER: 0 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1120.4 = INTEGER: -50 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1170.1 = INTEGER: 360 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1170.2 = INTEGER: 350 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1170.3 = INTEGER: 310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1170.4 = INTEGER: 300 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1172.1 = INTEGER: 360 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1172.2 = INTEGER: 350 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1172.3 = INTEGER: 310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1172.4 = INTEGER: 300 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1222.1 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1222.2 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1222.3 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1222.4 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1224.1 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1224.2 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1224.3 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1224.4 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1274.1 = INTEGER: 34 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1274.2 = INTEGER: 4 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1274.3 = INTEGER: -82 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1274.4 = INTEGER: -122 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.1 = INTEGER: 34 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.2 = INTEGER: 4 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.3 = INTEGER: -82 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.4 = INTEGER: -122 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1326.1 = INTEGER: 34 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1326.2 = INTEGER: 4 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1326.3 = INTEGER: -144 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1326.4 = INTEGER: -184 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1328.1 = INTEGER: 34 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1328.2 = INTEGER: 4 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1328.3 = INTEGER: -144 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1328.4 = INTEGER: -184

snmpwalk -v 2c -c public 172.24.245.1 entSensorPrecision.1222 CISCO-ENTITY-SENSOR-MIB::entSensorPrecision.1222 = INTEGER: 1

snmpwalk -v 2c -c public 172.24.245.1 entSensorThresholdSeverity.1222 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1222.1 = INTEGER: major(20) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1222.2 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1222.3 = INTEGER: minor(10) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.1222.4 = INTEGER: major(20)

snmpwalk -v 2c -c public 172.24.245.1 entSensorThresholdRelation.1222 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1222.1 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1222.2 = INTEGER: greaterOrEqual(4) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1222.3 = INTEGER: lessOrEqual(2) CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.1222.4 = INTEGER: lessOrEqual(2)

snmpwalk -v 2c -c public 172.24.245.1 entSensorThresholdValue.1222 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1222.1 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1222.2 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1222.3 = INTEGER: 1310 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1222.4 = INTEGER: 1310

garnier-quentin commented 8 years ago

I have looked for Sensor 'TenGigabitEthernet1/50 Bias Current Sensor' is 0.0341 A'. And my calc seems good. You have a precision of '1'. So i do: value * ((10 power -3) * (10 power -1)). Result = 0.0341 A.

But we may have a problem with the threshold value:

With you're value (341), you'll always have a warning/critical. You will be ok only if it's equal!!!??

It look like a bug of the cisco. You can use --warning --critical to overload the problem with the 2 threshold.

maksimatveev commented 8 years ago

Hey, Quentin! Well, I suppose that it is indeed a bug Cisco.

Attempting to set thresholds as you advised: --warning='sensor.amperes,.,0.02:0.045' --critical='sensor.amperes,.,0:0.06'

Result: 'sensor.amperes_TenGigabitEthernet1/52 Bias Current Sensor'=0.0359A;0.02:0.045;0:0.06;; Which option set range? The graph shows only the right values of 0.045 (~ 0.05) and 0.06: 13-01-16 02 26 44 But if this range, the graph should be 0.02:0.045 and 0:0.06 respectively.

Further, for the power of the transmitter you offer also indicate the thresholds?

garnier-quentin commented 8 years ago

Centreon-web doesn't manage (well) threshold range.

maksimatveev commented 8 years ago

sadly, this would be the user visually. Quentin, you do not answer what to do with thresholds for sensor.dbm. I remind you that the current is automatically determined based on the data switch: -8.19:0.39;-12.19:3.39 and -14.39:0.39;-18.39:3.39.

garnier-quentin commented 8 years ago

You can overload with the plugin for the threshold.

maksimatveev commented 8 years ago

@garnier-quentin Quentin, but the plug in my opinion not entirely true defines the top value for the warning. It must be 4, not 0.39.

See, they are all in the same range: CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.1 = INTEGER: 34 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.2 = INTEGER: 4 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.3 = INTEGER: -82 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1276.4 = INTEGER: -122 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1326.1 = INTEGER: 34 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1326.2 = INTEGER: 4 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1326.3 = INTEGER: -144 CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.1326.4 = INTEGER: -184

Is should be: INTEGER: 34 = 3.39 INTEGER: 4 = 0.39

garnier-quentin commented 8 years ago

Its's 0.39 instead 0.4 because it's greatherOrEqual. Or the threshold from centreon-plugins is 'greater than'. That's why i substract -0.1.

maksimatveev commented 8 years ago

@garnier-quentin But why 0.39 instead of 4. Or there still is a divider? Hmm, maybe translation conveys my idea = /

garnier-quentin commented 8 years ago

Yes that the diviider (precision and scale).

maksimatveev commented 8 years ago

@garnier-quentin Perfectly, Quentin. You did a great job, thank you very much! I hope my meticulousness you sick)

garnier-quentin commented 8 years ago

You're welcome. Is ok ;)

garnier-quentin commented 7 years ago

I add option to avoid problem with amperes sensor:

--warning='sensor.amperes,.*,' --critical='sensor.amperes,.*,'