Closed some-git-user closed 1 year ago
This is probably a normal / wanted behavior. The error message Invalid credentials or host not found
has two meanings.
Invalid credentials
The agent can not send data to the openITCOCKPIT server, because of:
auth.json
on the Agent and remove the Agent from Agents Overview
https://github.com/it-novum/openitcockpit-agent-go/wiki/Debugging#pathsHost not found
This part of the error message just says, that no host is assigned to the openITCOCKPIT Monitoring Agent yet. To verify this, open the Agents Overview and check if the agent is pushing data to openITCOCKPIT. If the Agent is pussing data everything works as expected but the data is not used.
To start monitoring, assign the Agent to an host.
@nook24 thank you for your feedback. To be honest, I would have expected a different message, if I only have to assign the Agent to an host. Back when I created this issue, there was no agent available at the "Available Agents" drop down menu. So I assumed an problem. But now I rechecked the drop down and yes the agent appeared.
I had interpreted the message Host not found
, that the client could not find the openITCOCKPIT Server (host).
Agent Mode:
Versions
Operating system
NO
NO
amd64
Describe the bug Push agent can't connect:
level=error msg="Push Client: could not send state to server: Invalid credentials or host not found"
To Reproduce Steps to reproduce the behavior:
openITCOCKPIT Agent - Push
templateExpected behavior Agent should connect to server
Additional context Connection to oitc server should work. Agent system has internet access. Also tested DNS resolve with nslokkup