OPNsense Forum

English Forums => Development and Code Review => Topic started by: spetrillo on November 26, 2023, 05:34:21 PM

Title: API Available?
Post by: spetrillo on November 26, 2023, 05:34:21 PM
Hello all,

I am using Zabbix as my monitoring tool. I have noticed that there is no way ability to monitor services like DNS, DHCP, IDS/IPS. I want to look into writing a template that would make the up/down staus of services like these available. Is there an API I can use to get these status?

Thanks,
Steve
Title: Re: API Available?
Post by: CJ on November 26, 2023, 06:17:31 PM
Did you try searching the docs for API?

https://docs.opnsense.org/development/api.html
Title: Re: API Available?
Post by: franco on November 27, 2023, 09:42:25 AM
Service information was moved to MVC/API in 23.1.5, see

https://docs.opnsense.org/development/api/core/core.html#id3

/api/core/service/search e.g. lists all the services...


Cheers,
Franco