Question

Auto Discovery - ERRO


Badge +1

Hi.

I installed centreon 24.04 - Template - with the IT-100 license but Auto Discovery does not work.
In the licensing, on the Centreon website, it says that it includes the Auto Discovery part, but I tested LKEY on another Centreon, version 19.04 and it said that the license did not support Auto Discovery.
Did I miss something?What should I do?

 

 



Gorgoned last log:

2024-05-13 13:25:07 - DEBUG - [statistics] Writing in file '/var/lib/centreon/nagios-perf//perfmon-1/nagios_hosts_states.rrd'
2024-05-13 13:25:07 - DEBUG - [statistics] Event: [STATISTICSLISTENER] [0c869192314aaa0a432ea7e481c20f6156f5e4edebe45d0e10c93bfc7796df209fc0cd59d595a76c83f03c29eaca3da6f60a434a9f2d186a79ef91a5fe99ecbe-1] [] { "code": 2, "data": {"message":"commands processing has finished successfully"} }
2024-05-13 13:25:12 - DEBUG - [action] Received SIGCLD signal (pid: 747162)
2024-05-13 13:25:12 - DEBUG - [autodiscovery] -class- host discovery - check centreon module installed
2024-05-13 13:25:12 - ERROR - [autodiscovery] -class- host discovery - cannot get platform versions - configuration missing
2024-05-13 13:25:17 - DEBUG - [audit] sampling starting
2024-05-13 13:26:07 - DEBUG - [nodes] internal message: [PUTLOG] [9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac] [] {"data":{"message":"action nodesresync proceed"},"code":0,"etime":1715617567,"instant":null,"token":"9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac"}
2024-05-13 13:26:07 - DEBUG - [core] Message received internal - [PUTLOG] [9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac] [] {"data":{"message":"action nodesresync proceed"},"code":0,"etime":1715617567,"instant":null,"token":"9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac"}
2024-05-13 13:26:07 - DEBUG - [nodes] internal message: [SETCOREID] [] [] {"id":1}
2024-05-13 13:26:07 - DEBUG - [nodes] internal message: [REGISTERNODES] [] [] {"nodes":[]}
2024-05-13 13:26:07 - DEBUG - [nodes] internal message: [UNREGISTERNODES] [] [] {"nodes":[]}
2024-05-13 13:26:07 - DEBUG - [nodes] Finish resync
2024-05-13 13:26:07 - DEBUG - [nodes] internal message: [PUTLOG] [9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac] [] {"token":"9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac","instant":null,"etime":1715617567,"data":{"message":"action nodesresync finished"},"code":2}
2024-05-13 13:26:07 - DEBUG - [core] Message received internal - [SETCOREID] [] [] {"id":1}
2024-05-13 13:26:07 - DEBUG - [nodes] Event: [ACK] [9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac] {"code":0,"data":{"message":"message inserted"}}
2024-05-13 13:26:07 - DEBUG - [core] Message received internal - [REGISTERNODES] [] [] {"nodes":[]}
2024-05-13 13:26:07 - DEBUG - [nodes] Event: [ACK] [bb0f529a14e37276f59c448ef8688c8605369caca70214e9eed062026cbe067482970b9e2d941d5da49ec164dc4b9da8ef8fdbc4d6442c75dd103ea054ab1be9] {"code":2,"data":{"action":"setcoreid","message":"setcoreid unchanged, use config value"}}
2024-05-13 13:26:07 - DEBUG - [core] Message received internal - [UNREGISTERNODES] [] [] {"nodes":[]}
2024-05-13 13:26:07 - DEBUG - [nodes] Event: [ACK] [036d94264c3889d19ac4bcde0a90f41b776028d3c0c4ad04ed77cfaed3342237e7c54f75622d10f0982163457d9f25936c3a16e949000e31483732a4d8c3a51a] {"data":null,"code":0}
2024-05-13 13:26:07 - DEBUG - [core] Message received internal - [PUTLOG] [9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac] [] {"token":"9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac","instant":null,"etime":1715617567,"data":{"message":"action nodesresync finished"},"code":2}
2024-05-13 13:26:07 - DEBUG - [nodes] Event: [ACK] [f5a5cca0eed8cb2692af166704583c6bce7eafba9fb2282f89cc84678fd176665d7ac8cedc85aae363499aa1a75e0eeadcef829380843d689101b915a4fc2cb7] {"code":0,"data":null}
2024-05-13 13:26:07 - DEBUG - [nodes] Event: [ACK] [9582a97e12af852712f5d34e0e66aa25f02653542a4ebf6187f947b91788844e51f9dba89377e0dfe1cd45afa5a00f99ee60db74cf642f1ad60671c720f395ac] {"data":{"message":"message inserted"},"code":0}
2024-05-13 13:26:12 - DEBUG - [autodiscovery] -class- host discovery - check centreon module installed
2024-05-13 13:26:12 - ERROR - [autodiscovery] -class- host discovery - cannot get platform versions - configuration missing
2024-05-13 13:26:17 - DEBUG - [audit] sampling starting

 


4 replies

Userlevel 6
Badge +19

Hi,

Can you control your license from /etc/centreon/license.d/epp.licence with the fingerprint available through the “Administration > Extensions” menu and clicking on “Get fingerprint” button.

Badge +1

Yes, I know, the file is correct, the finguerprint is correct, but the Auto Discovery module doesn't work.

Userlevel 6
Badge +19

When you access to “Configuration > Hosts > Discovery”, do you have errors in /var/log/php-fpm/centreon-error.log file?

 

For the following error:

2024-05-13 13:26:12 - ERROR - [autodiscovery] -class- host discovery - cannot get platform versions - configuration missing

Can you check the configuration in /etc/centreon-gorgone/config.d/31-centreon-api.yaml file?

Badge +1

in /var/log/php-fpm/centreon-error.log

[14-May-2024 10:14:12 America/Sao_Paulo] [2024-05-14T10:14:12-0300] [CRITICAL] You are not authorized to access this resource {"context":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException(code: 403): You are not authorized to access this resource at /usr/share/centreon/vendor/symfony/framework-bundle/Controller/AbstractController.php:332)"}

[14-May-2024 10:34:54 America/Sao_Paulo] [2024-05-14T10:34:54-0300] [WARNING] Warning: Undefined array key "manual" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"manual\" at /usr/share/centreon/www/modules/centreon-autodiscovery-server/views/scan/ajax/actions/scan.php:49)"}

[14-May-2024 10:34:54 America/Sao_Paulo] [2024-05-14T10:34:54-0300] [WARNING] Warning: foreach() argument must be of type array|object, null given {"exception":"[object] (ErrorException(code: 0): Warning: foreach() argument must be of type array|object, null given at /usr/share/centreon/www/modules/centreon-autodiscovery-server/views/scan/ajax/actions/scan.php:49)"}

[14-May-2024 10:41:15 America/Sao_Paulo] [2024-05-14T10:41:15-0300] [WARNING] Warning: Undefined array key "manual" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"manual\" at /usr/share/centreon/www/modules/centreon-autodiscovery-server/views/scan/ajax/actions/scan.php:49)"}

[14-May-2024 10:41:15 America/Sao_Paulo] [2024-05-14T10:41:15-0300] [WARNING] Warning: foreach() argument must be of type array|object, null given {"exception":"[object] (ErrorException(code: 0): Warning: foreach() argument must be of type array|object, null given at /usr/share/centreon/www/modules/centreon-autodiscovery-server/views/scan/ajax/actions/scan.php:49)"}

[14-May-2024 10:41:22 America/Sao_Paulo] [2024-05-14T10:41:22-0300] [WARNING] Warning: Undefined array key "manual" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"manual\" at /usr/share/centreon/www/modules/centreon-autodiscovery-server/views/scan/ajax/actions/scan.php:49)"}

[14-May-2024 10:41:22 America/Sao_Paulo] [2024-05-14T10:41:22-0300] [WARNING] Warning: foreach() argument must be of type array|object, null given {"exception":"[object] (ErrorException(code: 0): Warning: foreach() argument must be of type array|object, null given at /usr/share/centreon/www/modules/centreon-autodiscovery-server/views/scan/ajax/actions/scan.php:49)"}

for me, this is an empty file: /etc/centreon-gorgone/config.d/31-centreon-api.yaml

what's in that file? shouldn't it be automatic?

I've even uninstalled and installed the auto discovery function and it stayed the same.

i've seen some things in other posts and i've tried, but without a positive result in auto discovery.

Reply