Page 1 of 1

Access to Nagios Database

Posted: Thu May 21, 2015 1:55 pm
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.

Re: Access to Nagios Database

Posted: Thu May 21, 2015 2:02 pm
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.

Re: Access to Nagios Database

Posted: Thu May 21, 2015 4:59 pm
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

Re: Access to Nagios Database

Posted: Fri May 22, 2015 9:18 am
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/

Re: Access to Nagios Database

Posted: Fri May 22, 2015 9:20 am
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/