Hello,
First, you can enable debug logs for Centreon Gorgone in "Administration > Parameters > Debug" then check "Centreon Gorgone debug" and "Save"
After that, you could relaunch an host discovery, you should see lines like this in /var/log/centreon-gorgone/gorgoned.log :
2024-03-05 11:01:09 - DEBUG - [proxy] Send message: [channel = 8] [action = COMMAND] [token = discovery_4_0c58d3f7] [target = 8~~7] [data = {"content":[{"command":"/usr/lib/centreon/plugins//centreon_generic_snmp.pl --plugin=os::linux::local::plugin --mode=discovery-snmp --subnet='x.x.x.x/y' --snmp-community='public' --snmp-version='2c' --snmp-port='161' --snmp-timeout='30' ","metadata":{"job_id":"4","pkg_install":{"centreon-plugin-Applications-Protocol-Snmp":20230608},"source":"autodiscovery-host-job-discovery"},"timeout":300}],"instant":1}]
Then you'll be able to test the command manually by copying the "command" statement :
su - centreon-engine
/usr/lib/centreon/plugins//centreon_generic_snmp.pl --plugin=os::linux::local::plugin --mode=discovery-snmp --subnet='x.x.x.x/y' --snmp-community='public' --snmp-version='2c' --snmp-port='161' --snmp-timeout='30'