Change the listening port number on an icinga client

Hi icinga community, this is my first post .

Despite my research, I did not find an answer to my question.

I want to monitor a podman container, the particularity is that the container uses the network=host mode, in other words it uses the host’s network adapters.

It is a necessity that I cannot change.

I would like to change the listening port of the container’s icinga client, because the daemon cannot start due to that the server that hosts the container is already listening on port 5665.

I would use NAT to translate IP_ADDRESS 5665 to 5666, in this way I could monitor the server and the container which have the same ip address

It possible to change this listening port ?

Give as much information as you can, e.g.

  • Version used : r2.12.4-1
  • UBI8 ppc64le
  • Enabled features : api

You can change the port with the bind_port option in the ApiListener object config file
https://icinga.com/docs/icinga-2/latest/doc/09-object-types/#apilistener

1 Like

Hello log1c.

Thanks for your reply. i’ll test that.