Project

General

Profile

Actions

Bug #20526

open

error when adding a node in centreon 21.10

Added by Nicolas CHARLES almost 3 years ago. Updated about 1 year ago.

Status:
New
Priority:
N/A
Assignee:
-
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

[ ] Unregistered Rudder node found: agent2.rudder.local (id 40b98fad-db2d-44e4-9619-b614693dcb1b). Adding it to Centreon...
Traceback (most recent call last):
  File "/opt/rudder/bin/centreon-plugin", line 333, in <module>
    updateCentreonHosts()
  File "/opt/rudder/bin/centreon-plugin", line 160, in updateCentreonHosts
    poller_list.add(addHostToCentreon(centreon_hosts, rn['hostname'], "Rudder " + rn['node_type'] + " node " + rn['rudder_id'], rn['ip_address'], rn['rudder_id'], rn['relay']))
  File "/opt/rudder/bin/centreon-plugin", line 131, in addHostToCentreon
    centreon_hosts.addtemplate(hostname, defaultTemplate)
  File "/opt/rudder/share/python/centreonapi/webservice/configuration/host.py", line 94, in addtemplate
    return self.webservice.call_clapi('addtemplate', 'HOST', values)
  File "/opt/rudder/share/python/centreonapi/webservice/__init__.py", line 102, in call_clapi
    request.raise_for_status()
  File "/usr/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://localhost/centreon/api/index.php?action=action&object=centreon_clapi

relaunching the script makes it fails for the next host, until it runs without error
However, no hosts are visible in centreon interface

Actions #1

Updated by Nicolas CHARLES almost 3 years ago

hosts appear in the Hosts/Hosts menu, but not on the list on top
because it has no template

Actions #2

Updated by Nicolas CHARLES almost 3 years ago

I was missing the base service pack for template generic-active-host-custom

Actions #3

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version set to 7.2
Actions #4

Updated by Alexis Mousset about 1 year ago

  • Target version changed from 7.2 to 7.3
Actions

Also available in: Atom PDF