Skip to main content
Question

cisco environment component sensor exclude 0 ampere

  • May 27, 2026
  • 1 reply
  • 18 views

Forum|alt.badge.img+6

Hello I’am checking the sensor component but I have criticals when ethernet is down and as no amperes which is normal. 

Sensor 'Ethernet1/26 Lane 1 Transceiver Bias Current Sensor/300044004' is 0 A 

 

How can I filter this I tried several ways with no result. 

 

--filter='(?!.*is.*0.*A.*)'

--filter='(?!.*is.*0.*)'

-filter='^(?!.*is.*0.*)'

--filter-perfdata-adv='not (%(value) == 0)'

--filter-perfdata-adv='not (%(label) !~ "sensors.amperes.*")'

--filter-perfdata-adv='not (%(label) =~ "sensors.amperes.*")'

--filter-perfdata-adv='not (%(label) == "sensors.amperes.*")'

1 reply

Forum|alt.badge.img+17
  • Centreon Lord Commander
  • May 27, 2026

hello

depending on the check you can filter the component, but not the content of the result of the component

usually you would filter a specific component with --filter= “some regexp for the component name and number” 

you can usually get the name of the component/sensor to exclude when you run your command with --verbose, again it depend on how the check is coded

 

you could also filter with status, (like putting the port administrative down on the device) and try to filter with the status, which would make more sense, you usually don’t want perfdata on a down port

 

without more detail on how you run your command, and some example, hard to help you, are you  using a global check for all interface, which check are you using, what are you trying to achieve, etc…