Page 1 of 1

CPU Graphs

Posted: Fri Apr 29, 2016 3:22 am
by raamardhani7
Hi Team,

We are looking more specifically to have Graph data populated for CPU and memory in Numbers, could you please advise whether the below script helps us in any ways.

Code: Select all

cd /usr/local/nagios/share/perfdata/$1

rrdtool fetch CPU_Stats.rrd AVERAGE -r $2 -s $3 > tmp

sed 's/^[ ]*//g' tmp |sed -e 's/\([0-9a-zA-Z\.]*\)  */\1,/g' > cpu.csv

rm tmp
Nagiso XI used is 5.2.7. Please advise if there are any alternates that I can use. thanks.

Re: CPU Graphs

Posted: Fri Apr 29, 2016 10:27 am
by rkennedy
Where are you pulling $1 $2 and $3 from? What exactly are you looking to accomplish?

It looks like you're just outputting your RRD's to a CSV.

Re: CPU Graphs

Posted: Mon May 02, 2016 8:04 pm
by raamardhani7
rkennedy wrote:Where are you pulling $1 $2 and $3 from? What exactly are you looking to accomplish?

It looks like you're just outputting your RRD's to a CSV.
Hi Rkennedy,

I wanted to see the results in numbers for CPU and Disk utilization parameters, If it not possible to display the same in Graphs. Please advice me so that I can get that to a csv file, thanks.

Re: CPU Graphs

Posted: Tue May 03, 2016 11:04 am
by tgriep
Would these scripts work for you for dumping rrd files to CSV?
https://github.com/mscoutermarsh/RRD-to-CSV

Re: CPU Graphs

Posted: Thu Jun 09, 2016 10:52 pm
by raamardhani7
Thank you so much Tom for your help. you can close this thread. thanks again.

Re: CPU Graphs

Posted: Fri Jun 10, 2016 9:27 am
by mcapra
Glad you were able to resolve this! Closing the thread.