Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to extract data from Nagios as if it was a web service?

My situation: I'm working on a web monitoring dashboard that assembles informations from different applications and sources and generate graphs, info graphics and reports.

The applications I'm trying to integrate are CACTI, Nagios, and other local private monitoring tools. I had no problem to integrate these applications, except for Nagios (I don't have much experience with it).

What I want to know is if there is a way to use Nagios as a Web Service, or something similar, so I can expose some of the informations and use it to generate my own reports on my dashboard application.

Is it possible to do that without any epic effort?

thanks for reading.

like image 393
marcio Avatar asked Oct 14 '11 13:10

marcio


People also ask

How do I export data from Nagios?

Export to files From the Configuration menu option, choose Nagios Monitoring > Maintenance > Tools. Select Export to files. The next screen shows a list of configuration files that are downloaded to the directory /usr/local/groundwork/monarch/htdocs/monarch/download.

Does Nagios have an API?

nagios-api - presents a REST-like JSON interface to Nagios.

Where is Nagios data stored?

Nagios Log Server allows administrators to set the data path they would like their data to be stored. The default location is /usr/local/nagioslogserver/elasticsearch/data/, however with proper planning this path can be changed.


1 Answers

Nagios 4.x starting with version 4.4 now includes CGIs for JSON output. Installing the newest version of Nagios might be the easiest way to go.

See the announcement here.

Review the slides from Nagios World Conference 2013 here.

like image 117
freb Avatar answered Oct 18 '22 17:10

freb