Icingaweb2 - Find the Active Endpoint and Active Web Endpoint using CLI

Hi,

Does anyone know a CLI command to find the active endpoint and active web endpoint which is shown in IcingaWeb2 UI?

Thanks

I think this is what you’re looking for, I suggest you validate it though since I wrote it up “quick 'n dirty”.

curl -k -s -S -i -u root:root 'https://localhost:5665/v1/status/IcingaApplication?pretty=1' | grep node_name

Output:
"node_name": "test-icinga-1.novalocal",

Best,
Daniel

Thanks. It does provide the node name. Does that mean it is also the “Active web endpoint” ?

Is there a way one can find the web endpoint node name from Icingaweb2 module using curl?

Thanks