Host discovery not running

  • 1 March 2024
  • 3 replies

Badge +2

I’m trying to use host discovery as per:

(with the Generic SNMP host discovery provider)


Unfortunately, neither “execute immediately” nor scheduled jobs seem to ever progress from ‘scheduled’ to ‘running’ - the host discovery UI has them indefinitely stuck at ‘scheduled’, 0s duration, 0 hosts discovered, “execute now” and “show results” greyed out.

What could I be missing?



Best answer by selkostali 5 March 2024, 11:07

View original

3 replies

Badge +2

Where would I find logs to dig into what’s (not) going on here?

How would I need to call /usr/lib/centreon/plugins// --plugin=apps::protocols::snmp::plugin --mode to see host discovery happening manually?

Userlevel 1
Badge +2



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// --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// --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'


Badge +2

Thank you @selkostali great advice!

Looking at the logs, I quickly found that I was missing the correct host name in /etc/centreon-gorgone/config.d/31-centreon-api.yaml as per

So, the web server was redirecting everything to HTTPS, but the certificate name would not match the ‘host’ obviously.
Also, I needed the appropriate (local) root CA certificate installed in /etc/pki/ca-trust/source/anchors/ and run update-ca-trust afterwards.


Host discovery works great for me now!