CPU Graphs
Posted: Fri Apr 29, 2016 3:22 am
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.
Nagiso XI used is 5.2.7. Please advise if there are any alternates that I can use. thanks.
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