Skip to main content
Solved

Centreon 22.04.01 - Add Perfdata

  • December 22, 2022
  • 1 reply
  • 266 views

Forum|alt.badge.img+8

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,

Best answer by carnabil

Hello,

I answer myself.

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

 

Thanks

1 reply

Forum|alt.badge.img+8
  • Author
  • Steward ***
  • 33 replies
  • Answer
  • December 22, 2022

Hello,

I answer myself.

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

 

Thanks