Solved

Centreon 22.04.01 - Add Perfdata

  • 22 December 2022
  • 1 reply
  • 28 views

Badge +3

Hello,

I have several interface controls that return their status. By default there is no perfdata but you would need to generate it, for example it could just be the response 1,0,2. Is there any way of doing this?

/usr/lib/centreon/plugins/centreon_sonicwall_snmp.pl --plugin=network::sonicwall::snmp::plugin --mode=interfaces --hostname=192.168.110.21 --snmp-version='2c' --snmp -community='xxxxxxxxx' --interface='268' --critical-status='%{admstatus} eq "down" and %{opstatus} eq "down" or %{admstatus} eq "up" and %{opstatus } ne "up"' --add-status

OK: Interface 'X100' Status : up (admin: up)

 

Thanks

 

Best regards,

icon

Best answer by carnabil 22 December 2022, 09:23

View original

1 reply

Badge +3

Hello,

I answer myself.

With the --add-global option it returns the information I need.

 

Thanks

Reply