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


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


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

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


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?


But the /v1/status/IcingaApplication API call doesn’t say anything about the “Active Icinga Web 2 Endpoint”. Is there a way to get the “Active Icinga Web 2 Endpoint”, except for looking in the GUI?

I’ve found at least one way of doing this now :slight_smile:

SELECT endpoint_name FROM icinga_programstatus;

…from the icinga database.