Hi,
Does anyone know a CLI command to find the active endpoint and active web endpoint which is shown in IcingaWeb2 UI?
Thanks
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
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
SELECT endpoint_name FROM icinga_programstatus;
…from the icinga database.