3rd party application access to states of monitored switches

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ian r smo
Posts: 3
Joined: Wed Apr 15, 2020 9:33 am

3rd party application access to states of monitored switches

Post 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?
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked