Hi,
I have a service with the HOSTSNMPEXTRAOPTIONS protected.
In the service details I get this :
I suspect this is a bug. We should be able to see a part of the executed command.
The command (which is a command definition provided in a plugin pack) is defined as : $CENTREONPLUGINS$/centreon_generic_snmp.pl --plugin=apps::protocols::snmp::plugin --mode=numeric-value --hostname=$HOSTADDRESS$ --snmp-community='$_HOSTSNMPCOMMUNITY$' --snmp-version=$_HOSTSNMPVERSION$ $_HOSTSNMPEXTRAOPTIONS$ --oid='$_SERVICEOID$' --format='$_SERVICEFORMAT$' --warning=$_SERVICEWARNING$ --critical=$_SERVICECRITICAL$ $_SERVICEEXTRAOPTIONS$
This is a problem which is present since a lot of time (at least from 18.04). It would be nice to see it fixed.
In addition, I think that having macros for the options needed for SNMPv3 would be a good idea. Put all the options in HOSTEXTRAOPTIONS or SERVICEEXTRAOPTIONS is not ideal. I’d like to be able to protect the SNMPv3 authpassphrase and privpassphrase without protecting the whole shit.