Access to Nagios Database

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srinadhv9
Posts: 2
Joined: Thu May 21, 2015 12:33 pm

Access to Nagios Database

Post by srinadhv9 »

Team

Could you please help me on How can 3rd party applications pull data from Nagios DB ?

Scanario : Selenium is monitoring the application transactions and storing the data in Nagios DB. 3rd party application want to pull the data and display the performance data as a widget.

Thanks in advance.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Access to Nagios Database

Post by tmcdonald »

Performance data is stored in RRD files under /usr/local/nagios/share/perfdata/, and everything else like object configs and statuses are in the MySQL database in the nagios and nagiosql tables.
Former Nagios employee
srinadhv9
Posts: 2
Joined: Thu May 21, 2015 12:33 pm

Re: Access to Nagios Database

Post by srinadhv9 »

Thanks for the quick response.

Is there a Service already available to pull this data for a given time range ?

We dont want to give access to Mysql database.

Regards
Srinadh
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Access to Nagios Database

Post by jdalrymple »

srinadhv9 wrote:3rd party application want to pull the data and display the performance data as a widget.
tmcdonald wrote:Performance data is stored in RRD files under /usr/local/nagios/share/perfdata/
srinadhv9 wrote:Is there a Service already available to pull this data for a given time range ?

We dont want to give access to Mysql database.
If it's performance data you seek to query that is in RRD as tmcdonald said. yes there are tools available for querying that data:

http://oss.oetiker.ch/rrdtool/
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Access to Nagios Database

Post by tmcdonald »

However in terms of readily-available API access within Nagios, we have a few options:

https://assets.nagios.com/downloads/nag ... nd_API.pdf
https://labs.nagios.com/2014/06/19/expl ... -7-part-1/
Former Nagios employee
Locked