When setting up two custom tcp integrations on the same elastic agent, it reports being healthy, even if the second integration doesnt work since it cannot listen on the same port as the first tcp integration.
Reproduce:
Install custom tcp integration, listen on some port like 8080 on 0.0.0.0
Add integration to some policy with some agent
Set up a second custom tcp integration, listen again on the same port e.g. 8080 on 0.0.0.0
Add integration to same policy with same agent
Agent reports being healthy
Moreover, even worth is that if you delete the first integration which was listening successfully on the port, the second will not start listening on the port subsequently. This means that you run into a state where you have the second integration setup and it is not working as intened.
Instead, you have to remove the integration again and then add it to the agent again in order to get the port listening working again.
This is a bug as far as I see and if that can be confirmed, I will open an issue on GitHub. Customers had problems with this, and I investigated for them
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.