Multi CPU Utilization Graph Not Plotting

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

Multi CPU Utilization Graph Not Plotting

Post by mayur »

Hi

I am using the cacti 0.8.7a version with SNMP verion 5.4. My boxes r running Solaris 5.9 version respectively.I am trying to plot a Multi CPU graph on this particular sever and its showing the following error with the debug mode turned on.Kindly help.


RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Multi CPU Utilization on SERVERNAME" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/home/cacti/cacti-0.8.7a/rra/SERVERNAME_cpu0_770.rrd":cpu0:AVERAGE \
DEF:b="/home/cacti/cacti-0.8.7a/rra/SERVERNAME_cpu1_771.rrd":cpu1:AVERAGE \
DEF:c="/home/cacti/cacti-0.8.7a/rra/SERVERNAME_cpu2_772.rrd":cpu2:AVERAGE \
DEF:d="/home/cacti/cacti-0.8.7a/rra/SERVERNAME_cpu3_773.rrd":cpu3:AVERAGE \
DEF:e="/home/cacti/cacti-0.8.7a/rra/SERVERNAME_cpu_774.rrd":cpu:AVERAGE \
CDEF:cdefa=a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,8,/ \
AREA:cdefa#F9FD5FFF:"Mean CPU\:" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %%" \
GPRINT:cdefa:AVERAGE:"Mean\:%8.2lf %%" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %%\n" \
LINE1:a#0000FFFF:"CPU0\:" \
GPRINT:a:LAST:" Current\:%8.2lf %%" \
GPRINT:a:AVERAGE:"Mean\:%8.2lf %%" \
GPRINT:a:MAX:"Max\:%8.2lf %%\n" \
LINE1:b#00A348FF:"CPU1\:" \
GPRINT:b:LAST:" Current\:%8.2lf %%" \
GPRINT:b:AVERAGE:"Mean\:%8.2lf %%" \
GPRINT:b:MAX:"Max\:%8.2lf %%\n" \
LINE1:c#C4FD3DFF:"CPU2\:" \
GPRINT:c:LAST:" Current\:%8.2lf %%" \
GPRINT:c:AVERAGE:"Mean\:%8.2lf %%" \
GPRINT:c:MAX:"Max\:%8.2lf %%\n" \
LINE1:d#FF0000FF:"CPU3\:" \
GPRINT:d:LAST:" Current\:%8.2lf %%" \
GPRINT:d:AVERAGE:"Mean\:%8.2lf %%" \
GPRINT:d:MAX:"Max\:%8.2lf %%\n" \
LINE1:e#000000FF:"CPU4\:" \
GPRINT:e:LAST:" Current\:%8.2lf %%" \
GPRINT:e:AVERAGE:"Mean\:%8.2lf %%" \
GPRINT:e:MAX:"Max\:%8.2lf %%\n" \
LINE1:e#00BED9FF:"CPU5\:" \
GPRINT:e:LAST:" Current\:%8.2lf %%" \
GPRINT:e:AVERAGE:"Mean\:%8.2lf %%" \
GPRINT:e:MAX:"Max\:%8.2lf %%\n" \
LINE1:e#FF00FFFF:"CPU6\:" \
GPRINT:e:LAST:" Current\:%8.2lf %%" \
GPRINT:e:AVERAGE:"Mean\:%8.2lf %%" \
GPRINT:e:MAX:"Max\:%8.2lf %%\n" \
LINE1:e#AAABA1FF:"CPU7\:" \
GPRINT:e:LAST:" Current\:%8.2lf %%" \
GPRINT:e:AVERAGE:"Mean\:%8.2lf %%" \
GPRINT:e:MAX:"Max\:%8.2lf %%"
RRDTool Says:






ERROR: invalid rpn expression in: a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,8,/



NOTE:The RRD files for the above parameters r also not getting created, all the other graphs like memory usage,load average etc are all working fine..
Regards
Mayur
llow
Cacti User
Posts: 170
Joined: Fri Oct 05, 2007 5:34 pm

Post by llow »

Can you verify the existance of the data sources for CPUs 5-7? The data source is missing from your graph debug.

This graph is not generated using the default cacti template.
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

Post by mayur »

Hi llow..
Yes its not a default cacti template.I have got this particular multi CPU graph from the following link.


http://forums.cacti.net/about11615-0-asc-120.html.
Regards
Mayur
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

Post by mayur »

Hi i was able to resolve the above error.but now my rrd is not getting created.
Regards
Mayur
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests