Extract data of monitored server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
anilgupta
Posts: 102
Joined: Fri Mar 01, 2019 8:35 am

Extract data of monitored server

Post by anilgupta »

Team,

We are looking to extract performance data of the monitored servers.
We would like to push it to our Central Data Repository (CDR) and generate monthly/quarterly reports.

I understand that this data is stored in RRD.

What are the options to fetch this data?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Extract data of monitored server

Post by cdienger »

The rrd files are stored in /usr/local/nagios/share/perfdata/<hostname>/ and you can copy the files from there or you can use the API to export the rrd data. API options are available under Help > REST API Docs > Objects Reference.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
anilgupta
Posts: 102
Joined: Fri Mar 01, 2019 8:35 am

Re: Extract data of monitored server

Post by anilgupta »

Hello cdienger,

Thanks for your response. I am trying the curl from the same server, still it takes around 40 seconds and finally throws HTTP code 504.
Can you please comment on this?

Code: Select all

[guptaa@pstvmpkimon02 ~]$ hostname -i
fe80::20c:29ff:feba:1509%ens192 192.168.0.162 192.168.122.1
[guptaa@pstvmpkimon02 ~]$ date;curl -XGET "https://192.168.0.162/nagiosxi/api/v1/objects/hoststatus?apikey=SANITIZEDTEXTVALUE&pretty=1"; date
Wed Mar  6 09:14:17 EST 2019
curl: (56) Received HTTP code 504 from proxy after CONNECT
Wed Mar  6 09:15:32 EST 2019

User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Extract data of monitored server

Post by cdienger »

Run the command so that it doesn't go through a proxy. Try adding the following to the curl command:

--noproxy 192.168.0.162
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
anilgupta
Posts: 102
Joined: Fri Mar 01, 2019 8:35 am

Re: Extract data of monitored server

Post by anilgupta »

It works, Thanks cdienger!!!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Extract data of monitored server

Post by cdienger »

Glad to hear! Are we okay locking this one up?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked