OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: proxykid on July 27, 2020, 07:03:07 PM

Title: Gateway status API
Post by: proxykid on July 27, 2020, 07:03:07 PM
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
Title: Re: Gateway status API
Post by: matthewsdi on August 15, 2020, 09:15:21 PM
I've added a feature request https://github.com/opnsense/core/issues/4261 (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