Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] checkmk.general.agent : Fetch fresh monitoring data from host. Fails for agents queried through SSH. #655

Open
thorian93 opened this issue Aug 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working role:agent This affects the agent role

Comments

@thorian93
Copy link
Contributor

Describe the bug

The agent role fails at the step mentioned in the title, if the agent is queried through SSH.

Component Name

Component Name: agent

Ansible Version

$ ansible --version
ansible [core 2.17.2]
  python version = 3.12.4 (main, Jun  7 2024, 00:00:00) [GCC 14.1.1 20240607 (Red Hat 14.1.1-5)] (/usr/bin/python3)
  jinja version = 3.1.4
  libyaml = True

Checkmk Version and Edition

2.3.0p13

Collection Version

$ ansible-galaxy collection list
Collection                               Version
---------------------------------------- -------
ansible.posix                            1.4.0  
checkmk.general                          5.2.0  
community.general                        5.6.0  
thorian93.main                           1.1.0 

To Reproduce
Steps to reproduce the behavior:

  1. Configure a host's agent to be queried through SSH.
  2. Run the agent role.
  3. See the error below.

Expected behavior

The role understands the query mode and fetches data properly.

Actual behavior

TASK [checkmk.general.agent : Fetch fresh monitoring data from host.]
FAILED - RETRYING: [robingierse.de -> localhost]: Fetch fresh monitoring data from host. (1 retries left).
fatal: [robingierse.de -> localhost]: FAILED! => {"attempts": 3, "changed": false, "msg": "405 - This request is only allowed with other HTTP methods Details: b'{\"title\": \"Method Not Allowed\", \"status\": 405, \"detail\": \"405 Method Not Allowed: The method is not allowed for the requested URL.\"}'"}

Minimum reproduction example

Additional context

@thorian93 thorian93 added the bug Something isn't working label Aug 24, 2024
@github-actions github-actions bot added the role:agent This affects the agent role label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working role:agent This affects the agent role
Projects
None yet
Development

No branches or pull requests

2 participants