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?
3rd party application access to states of monitored switches
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: 3rd party application access to states of monitored swit
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
Help -> API Docs -> Objects Reference
the endpoints of interest would be
Code: Select all
GET objects/hoststatus
GET objects/servicestatus