centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
574 stars 240 forks source link

Not Able To Execute Centreon Host Auto Discovery Job #11136

Open govi230 opened 2 years ago

govi230 commented 2 years ago

BUG REPORT INFORMATION

Prerequisites

The opened issue, must be code related. GitHub is not meant for support. Feel free to check the CONTRIBUTING section for more details.

Versions

For the RPM based systems

centreon-21.10.5-2.el7.centos.noarch
centreon-auto-discovery-server-21.10.3-2.el7.centos.noarch
centreon-base-config-centreon-engine-21.10.5-2.el7.centos.noarch
centreon-broker-21.10.1-8.el7.x86_64
centreon-broker-cbd-21.10.1-8.el7.x86_64
centreon-broker-cbmod-21.10.1-8.el7.x86_64
centreon-broker-core-21.10.1-8.el7.x86_64
centreon-broker-selinux-0.0.6-1.x86_64
centreon-broker-storage-21.10.1-8.el7.x86_64
centreon-clib-21.10.1-8.el7.x86_64
centreon-common-21.10.5-2.el7.centos.noarch
centreon-common-selinux-0.0.11-1.x86_64
centreon-connector-21.10.1-8.el7.x86_64
centreon-connector-perl-21.10.1-8.el7.x86_64
centreon-connector-ssh-21.10.1-8.el7.x86_64
centreon-database-21.10.5-2.el7.centos.noarch
centreon-engine-21.10.1-8.el7.x86_64
centreon-engine-daemon-21.10.1-8.el7.x86_64
centreon-engine-extcommands-21.10.1-8.el7.x86_64
centreon-engine-selinux-0.0.10-1.x86_64
centreon-gorgone-21.10.2-3.el7.centos.noarch
centreon-gorgone-centreon-config-21.10.2-3.el7.centos.noarch
centreon-gorgoned-selinux-0.0.4-1.x86_64
centreon-license-manager-21.10.0-1.el7.centos.noarch
centreon-license-manager-common-21.10.0-1.el7.centos.noarch
centreon-nrpe3-daemon-4.0.3-0.el7.centos.x86_64
centreon-perl-libs-21.10.5-2.el7.centos.noarch
centreon-poller-centreon-engine-21.10.5-2.el7.centos.noarch
centreon-pp-manager-21.10.0-2.el7.centos.noarch
centreon-release-21.10-5.el7.centos.noarch
centreon-trap-21.10.5-2.el7.centos.noarch
centreon-web-21.10.5-2.el7.centos.noarch
centreon-web-selinux-0.0.8-1.x86_64
centreon-widget-engine-status-21.10.0-2.el7.centos.noarch
centreon-widget-global-health-21.10.1-1.el7.centos.noarch
centreon-widget-graph-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-grid-map-21.10.0-2.el7.centos.noarch
centreon-widget-hostgroup-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-host-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-httploader-21.10.0-2.el7.centos.noarch
centreon-widget-live-top10-cpu-usage-21.10.0-2.el7.centos.noarch
centreon-widget-live-top10-memory-usage-21.10.0-2.el7.centos.noarch
centreon-widget-servicegroup-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-service-monitoring-21.10.1-1.el7.centos.noarch
centreon-widget-tactical-overview-21.10.0-2.el7.centos.noarch

Operating System

CentOS

Browser used

Version: --

Centreon 21.10

Description

-- Created AWS EC2 Host Auto Discovery Job but not able to execute --

Steps to Reproduce

Please describe precisely the steps to reproduce the encountered issue.

Logs

tail -f /var/log/centreon-gorgone/gorgoned.log

2022-05-17 10:26:52 - DEBUG - [core] Message received - [PROXYREADY] [] [] {"pool_id":"5"}
2022-05-17 10:26:52 - DEBUG - [core] zmq_recvmsg error: Resource temporarily unavailable
2022-05-17 10:26:52 - DEBUG - [core] Message received - [PROXYREADY] [] [] {"pool_id":"3"}
2022-05-17 10:26:52 - DEBUG - [core] zmq_recvmsg error: Resource temporarily unavailable
2022-05-17 10:26:52 - DEBUG - [core] Message received - [PROXYREADY] [] [] {"pool_id":"2"}
2022-05-17 10:26:52 - DEBUG - [core] zmq_recvmsg error: Resource temporarily unavailable
2022-05-17 10:26:52 - DEBUG - [core] Message received - [PROXYREADY] [] [] {"pool_id":"4"}
2022-05-17 10:26:52 - DEBUG - [core] zmq_recvmsg error: Resource temporarily unavailable
2022-05-17 10:26:52 - DEBUG - [core] Message received - [PROXYREADY] [] [] {"pool_id":"1"}
2022-05-17 10:26:52 - DEBUG - [core] zmq_recvmsg error: Resource temporarily unavailable
2022-05-17 10:26:52 - DEBUG - => Recv header: HTTP/1.1 401 Unauthorized
2022-05-17 10:26:52 - DEBUG - => Recv header: Date: Tue, 17 May 2022 10:26:52 GMT
2022-05-17 10:26:52 - DEBUG - => Recv header: Server: Apache
2022-05-17 10:26:52 - DEBUG - => Recv header: Cache-Control: no-cache, private
2022-05-17 10:26:52 - DEBUG - => Recv header: Api-Version: 21.10
2022-05-17 10:26:52 - DEBUG - => Recv header: X-Frame-Options: sameorigin
2022-05-17 10:26:52 - DEBUG - => Recv header: Transfer-Encoding: chunked
2022-05-17 10:26:52 - DEBUG - => Recv header: Content-Type: application/json
2022-05-17 10:26:52 - DEBUG - => Recv header:
2022-05-17 10:26:52 - DEBUG - => Recv data: 2c
{"code":401,"message":"Invalid credentials"}
0

2022-05-17 10:26:52 - DEBUG - == Info: Connection #0 to host 127.0.0.1 left intact
2022-05-17 10:26:52 - ERROR - [autodiscovery] -class- host discovery - cannot get platform versions - Login error [code: '401'] [message: 'Unauthorized']
govi230 commented 2 years ago

I check "/etc/centreon-gorgone/config.d/31-centreon-api.yaml" configuration file then I found that wrong credentials (username and password) was specified for "centreonv2" and "clapi" both. These credential same as that we used to login into centreon UI After configure correctly restart the gorgoned service with "systemctl restart gorgoned" In my case It was working fine.

jcarrier22 commented 2 years ago

problem solved . Thank you