CSV Reporting question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wlessard
Posts: 5
Joined: Wed Mar 27, 2019 6:12 pm

CSV Reporting question

Post by wlessard »

I would like to pull the below metrics to a csv file daily. The only way I have researched is running the report and going to each graph and click "download csv"

Is there another way to pull this data automatically?

'timestamp' 'cpu_usage'
'1600837500' '5.9537800000e+00'
'1600837800' '8.2597800000e+00'
'1600838100' '5.1587200000e+00'
'1600838400' '1.4818600000e+00'
'1600838700' '1.2210733333e+00'
'1600839000' '1.1803666667e+00'
'1600839300' '1.3470400000e+00'
'1600839600' '1.8929400000e+00'
'1600839900' '1.2455200000e+00'
'1600840200' '1.3702800000e+00'
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CSV Reporting question

Post by scottwilkerson »

It is available in the API as well
Help -> API Docs -> Objects Reference -> GET objects/rrdexport
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
wlessard
Posts: 5
Joined: Wed Mar 27, 2019 6:12 pm

Re: CSV Reporting question

Post by wlessard »

thank you for that.

Another question on csv data.

When i do a export CSV for CPU the data is does not look correct

timestamp 'cpu_prct_used'
1600407000 '2.4094298611e+01'
1600408800 '2.4890398148e+01'
1600410600 '2.7666976852e+01'
1600412400 '1.9913092593e+01'

Shouldnt they be percentage? Also the data is not correct corresponding to the graph. look at graph or example.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CSV Reporting question

Post by scottwilkerson »

wlessard wrote:thank you for that.

Another question on csv data.

When i do a export CSV for CPU the data is does not look correct

timestamp 'cpu_prct_used'
1600407000 '2.4094298611e+01'
1600408800 '2.4890398148e+01'
1600410600 '2.7666976852e+01'
1600412400 '1.9913092593e+01'

Shouldnt they be percentage? Also the data is not correct corresponding to the graph. look at graph or example.
These are the values. RRD stores them on E notation and that is what is exported
https://en.wikipedia.org/wiki/Scientifi ... E_notation
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
wlessard
Posts: 5
Joined: Wed Mar 27, 2019 6:12 pm

Re: CSV Reporting question

Post by wlessard »

thank you
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CSV Reporting question

Post by scottwilkerson »

wlessard wrote:thank you
No problem

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked