CPU Graphs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

CPU Graphs

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: CPU Graphs

Post 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.
Former Nagios Employee
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: CPU Graphs

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: CPU Graphs

Post by tgriep »

Would these scripts work for you for dumping rrd files to CSV?
https://github.com/mscoutermarsh/RRD-to-CSV
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: CPU Graphs

Post by raamardhani7 »

Thank you so much Tom for your help. you can close this thread. thanks again.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: CPU Graphs

Post by mcapra »

Glad you were able to resolve this! Closing the thread.
Former Nagios employee
https://www.mcapra.com/
Locked