16
18.1 Legacy Series / API Information
« on: January 22, 2018, 01:35:40 pm »
Hello folks,
In our migration from pfsense, we are trying to replace old php monitoring scripts that used NRPE with API calls (https://docs.opnsense.org/development/how-tos/api.html)
However, the example isn't clear on how the URLs are constructed.
I found the following link, but it is an old post and has little information: https://forum.opnsense.org/index.php?topic=3027.0
For example, I would like to get information about:
- Gateway packet loss and gateway group status
- System logs
- Certificate expiration
- Openvpn status
- Traffic status / queue drops
Mostly stuff available via Dashboard.
The information is all on the WebGUI, so form what I understand it should be accessible via the API?
How are the URLs for the API built? Is that the wrong way to go on OPNsense?
In our migration from pfsense, we are trying to replace old php monitoring scripts that used NRPE with API calls (https://docs.opnsense.org/development/how-tos/api.html)
However, the example isn't clear on how the URLs are constructed.
I found the following link, but it is an old post and has little information: https://forum.opnsense.org/index.php?topic=3027.0
For example, I would like to get information about:
- Gateway packet loss and gateway group status
- System logs
- Certificate expiration
- Openvpn status
- Traffic status / queue drops
Mostly stuff available via Dashboard.
The information is all on the WebGUI, so form what I understand it should be accessible via the API?
How are the URLs for the API built? Is that the wrong way to go on OPNsense?