-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Unchecking Enable HTTP endpoint at /liveness
does not stop Agent from listening on 6791.
#201459
Comments
Pinging @elastic/fleet (Team:Fleet) |
@elastic/elastic-agent - I think we might need some help from the agent team in understanding how to disable listening on this port from this setting. |
Interesting. So, it's picking up the config, but not the config to disable it? I'm kind of busy today, but I'll see if I can find time to figure out if this is an agent-side bug or just a config issue between Kibana and agent,. |
So, I suspect the problem here is that kibana isn't explicitly setting |
Thanks for looking into this @fearful-symmetry. I think we should explicitly include |
@kpollich yeah, agreed, it seems like adding a checkbox or something that defaults to |
Kibana version:
8.16.1
Elasticsearch version:
8.16.1
Server OS version:
Ubuntu 22.04
Browser version:
N/A
Browser OS version:
N/A
Original install method (e.g. download page, yum, from source, etc.):
APT
Describe the bug:
Disabling /liveness via agent policy does not stop Agent from listening on localhost:6791
Steps to reproduce:
Enable HTTP endpoint at /liveness
checked.while true; do netstat pln | grep -E '(6791|27910)'; echo '..' ;sleep 5; done;
FYI, I tried enabling and moving the port to 27910. That worked. It started listening on localhost:27910. But disabling resulted in Agent returning to listening on 6791 like before.
Expected behavior:
Nothing should be listening on 6791.
Screenshots (if relevant):
Any additional context:
For now I can just work around by pointing at an unused port. But still, if the box is unchecked, there should not be anything listening on that port.
agent.monitoring.http.enabled
andagent.monitoring.http.buffer.enabled
to agent policy advanced settings #190984BTW, I really appreciate that you added that UI. Being able to change the port is an immense help. Thanks @kpollich for your work!
The text was updated successfully, but these errors were encountered: