Skip to main content

Hello there! I´d like to check the environment of a router with this command:

 /usr/lib/centreon/plugins//centreon_cisco_standard_snmp.pl --plugin=network::cisco::standard::snmp::plugin --mode=environment --hostname=***** --snmp-version='2c' --snmp-community='*********' --component='.*'   --warning-count-fan='' --critical-count-fan='' --warning-count-module='' --critical-count-module='' --warning-count-physical='' --critical-count-physical='' --warning-count-psu='' --critical-count-psu='' --warning-count-sensor='' --critical-count-sensor='' --warning-count-temperature='50' --critical-count-temperature='60' --warning-count-voltage='' --critical-count-voltage='' --verbose --filter-perfdata='^(sensor\.(celsius_|rpm_)|temp_)'

What I would expect is that the check throws a warning higher than 50 degrees and an error above 60. But I get this warning:

WARNING: Sensor 'Switch 1 - C9200L-24P-4G - Temp Inlet Sensor 0/1010' is 31 C | 'temp_Switch 1 - Inlet Temp Sensor, GREEN '=31C;;~:56;; 'temp_Switch 1 - Outlet Temp Sensor, GREEN '=37C;;~:125;; 'temp_Switch 1 - HotSpot Temp Sensor, GREEN '=46C;;~:125;; 'sensor.celsius_Switch 1 - C9200L-24P-4G - Temp Outlet Sensor 1'=37C;;-9:124;; 'sensor.celsius_Switch 1 - C9200L-24P-4G - Temp Hotspot Sensor 2'=46C;;-9:124;; 'sensor.celsius_GigabitEthernet1/1/3 Module Temperature Sensor'=0C;;;; 'sensor.celsius_GigabitEthernet1/1/4 Module Temperature Sensor'=0C;;;; 'sensor.celsius_Switch 1 - C9200L-24P-4G - Temp Inlet Sensor 0'=31C;32:45;-9:55;;

Can someone explain that?

 

I have same problem too. If I exclude the sensor option everything seemss to work fine. But with sensor included alarm appearss


If I try this command too:

usr/lib/centreon/plugins//centreon_cisco_standard_snmp.pl --plugin=network::cisco::standard::snmp::plugin --mode=environment --hostname=xx.xx.xx.xx --snmp-version='2c' --snmp-community='xxxxxxxxxx' --component='.*'   --warning-count-fan='' --critical-count-fan='' --warning-count-module='' --critical-count-module='' --warning-count-physical='' --critical-count-physical='' --warning-count-psu='' --critical-count-psu='' --warning-count-sensor='' --critical-count-sensor='' --warning-count-temperature='' --critical-count-temperature='' --warning-count-voltage='' --critical-count-voltage='' --verbose  --filter-perfdata='^(sensor\.(celsius_|rpm_)|temp_)'

 

 

WARNING: Sensor 'Switch 1 - C9300L-24T-4X - Temp Inlet Sensor 0/1011' is 23 C | 'temp_Switch 1 - Inlet Temp Sensor, GREEN '=23C;;~:56;; 'temp_Switch 1 - Outlet Temp Sensor, GREEN '=28C;;~:125;; 'temp_Switch 1 - HotSpot Temp Sensor, GREEN '=40C;;~:125;; 'sensor.celsius_Switch 1 - C9300L-24T-4X - Temp Outlet Sensor 1'=28C;;-9:124;; 'sensor.celsius_Switch 1 - C9300L-24T-4X - Temp Hotspot Sensor 2'=40C;;-9:124;; 'sensor.celsius_Switch 1 - C9300L-24T-4X - Temp Inlet Sensor 0'=23C;32:45;-9:55;;

Environment type: other

Checking fans

fan 'Switch 1 - FAN - T1 1, Normal' status is normal [instance: 1016].

fan 'Switch 1 - FAN - T1 2, Normal' status is normal [instance: 1017].

fan 'Switch 1 - FAN - T1 3, Normal' status is normal [instance: 1018].

fan 'Switch 1 - C9300L-24T-4X - FAN 1' status is up [instance: 1016]

fan 'Switch 1 - C9300L-24T-4X - FAN 2' status is up [instance: 1017]

fan 'Switch 1 - C9300L-24T-4X - FAN 3' status is up [instance: 1018]

Checking power supplies

power supply 'Switch 1 - Power Supply A, Normal' status is normal [instance: 1014] [source: ac]

power supply 'Switch 1 - Power Supply B, Normal' status is normal [instance: 1015] [source: ac]

Checking temperatures

temperature 'Switch 1 - Inlet Temp Sensor, GREEN ' status is normal [instance: 1011] [value: 23 C]

temperature 'Switch 1 - Outlet Temp Sensor, GREEN ' status is normal [instance: 1012] [value: 28 C]

temperature 'Switch 1 - HotSpot Temp Sensor, GREEN ' status is normal [instance: 1013] [value: 40 C]

Checking voltages

Checking modules

module 'C9300L-24T-4X' status is ok [instance: 1000]

Checking physicals

Checking sensors

sensor 'Switch 1 - C9300L-24T-4X - Temp Inlet Sensor 0' status is 'ok' [instance: 1011] [value: 23 celsius]

sensor 'Switch 1 - C9300L-24T-4X - Temp Outlet Sensor 1' status is 'ok' [instance: 1012] [value: 28 celsius]

sensor 'Switch 1 - C9300L-24T-4X - Temp Hotspot Sensor 2' status is 'ok' [instance: 1013] [value: 40 celsius]

 

 

I have checked every option and it seems that the problem is focussed on the option sensor:

 

/usr/lib/centreon/plugins//centreon_cisco_standard_snmp.pl --plugin=network::cisco::standard::snmp::plugin --mode=environment --hostname=xx.xx.xx.xx --snmp-version='2c' --snmp-community='xx.xx.xx.xx' --component='sensor'   --warning-count-fan='' --critical-count-fan='' --warning-count-module='' --critical-count-module='' --warning-count-physical='' --critical-count-physical='' --warning-count-psu='' --critical-count-psu='' --warning-count-sensor='' --critical-count-sensor='' --warning-count-temperature='' --critical-count-temperature='' --warning-count-voltage='' --critical-count-voltage='' --verbose  --filter-perfdata='^(sensor\.(celsius_|rpm_)|temp_)'

WARNING: Sensor 'Switch 1 - C9300L-24T-4X - Temp Inlet Sensor 0/1011' is 23 C | 'sensor.celsius_Switch 1 - C9300L-24T-4X - Temp Outlet Sensor 1'=28C;;-9:124;; 'sensor.celsius_Switch 1 - C9300L-24T-4X - Temp Hotspot Sensor 2'=40C;;-9:124;; 'sensor.celsius_Switch 1 - C9300L-24T-4X - Temp Inlet Sensor 0'=23C;32:45;-9:55;;

Environment type: other

Checking sensors

sensor 'Switch 1 - C9300L-24T-4X - Temp Inlet Sensor 0' status is 'ok' [instance: 1011] [value: 23 celsius]

sensor 'Switch 1 - C9300L-24T-4X - Temp Outlet Sensor 1' status is 'ok' [instance: 1012] [value: 28 celsius]

sensor 'Switch 1 - C9300L-24T-4X - Temp Hotspot Sensor 2' status is 'ok' [instance: 1013] [value: 40 celsius]

 

I have tried to modified tresholds of temperature, but the problem persists, can anyone tell me what could be the problem?

 

Regards