Page 1 of 1

3rd party application access to states of monitored switches

Posted: Tue Jun 02, 2020 4:23 am
by ian r smo
I am currently investigating the capability of Nagios for other system.

We have an application written in C# that needs to access the states of switches that are monitored by Nagios. My current idea is that this application would read the states from Nagios MySQL database when it requires this information. Is this possible or is the database private to the Nagio application or single-user access?

Re: 3rd party application access to states of monitored swit

Posted: Tue Jun 02, 2020 7:39 am
by scottwilkerson
The database isn't private, however we have a built-in API for these types of queries, in the GUI you can see help for it
Help -> API Docs -> Objects Reference

the endpoints of interest would be

Code: Select all

GET objects/hoststatus
GET objects/servicestatus