Gateway status API

Started by proxykid, July 27, 2020, 07:03:07 PM

Previous topic - Next topic
Hi

I'm trying to find a way for another platform we have read the current gateway statuses and display alerts while using it.

Is there any way to read via API/JSON the gateway statuses? I have 3 ISPs which I would like to monitor without having to login to OPNSense GUI.

Thanks

I've added a feature request https://github.com/opnsense/core/issues/4261, and Ad Schellevis also gave me the cli equivalent if that helps you in the comments there.

pluginctl -r return_gateways_status