Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Multi CPU Utilization Graph
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11, 12  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Mon Feb 26, 2007 2:03 pm    Post subject: Reply with quote

Can we hide the CPU graphs? And still be able to provide for the Multi CPU graph?
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Wed Feb 28, 2007 3:06 pm    Post subject: Reply with quote

Nevermind. I wasn't thinking. I was just displaying the host in the tree, which was giving me too much. I just needed to create the tree and name one of the leaves as the server name. This way I can just add the graph I need.
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Fri Mar 09, 2007 2:07 pm    Post subject: Reply with quote

I am trying to make a template for a 16 CPU multi graph. Somewhere it is going wrong. Has anyone made one? And could you post it?
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Fri Mar 09, 2007 3:29 pm    Post subject: Reply with quote

Got it and I here are the graphs:


16cpu.jpg
 Description:
 Filesize:  83.87 KB
 Viewed:  8918 Time(s)

16cpu.jpg



cacti_graph_template_multi_cpu_utilization_on_16_processor_box.xml
 Description:

Download
 Filename:  cacti_graph_template_multi_cpu_utilization_on_16_processor_box.xml
 Filesize:  56.79 KB
 Downloaded:  865 Time(s)

Back to top
Turtle77



Joined: 11 Mar 2007
Posts: 1

PostPosted: Sun Mar 11, 2007 7:49 am    Post subject: Reply with quote

I am having the same problem that burrben posted. Here is the output of the 4 CPU usage graph in debug mode:

Quote:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-108000 \
--end=-300 \
--title="Multi CPU Utilization on %server name%" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
CDEF:cdefa=a,b,+,c,+,d,+,4,/ \
AREA:cdefa#FFFFC0:"Mean CPU\:" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %%" \
GPRINT:cdefa:MIN:"Min\:%8.2lf %%" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %%\n" \
LINE1:#FFFFD8:"CPU0\:" \
GPRINT::LAST:" Current\:%8.2lf %%" \
GPRINT::MIN:"Min\:%8.2lf %%" \
GPRINT::MAX:"Max\:%8.2lf %%\n" \
LINE1:#980000:"CPU1\:" \
GPRINT::LAST:" Current\:%8.2lf %%" \
GPRINT::MIN:"Min\:%8.2lf %%" \
GPRINT::MAX:"Max\:%8.2lf %%\n" \
LINE1:#FFFFF0:"CPU2\:" \
GPRINT::AVERAGE:" Current\:%8.2lf %%" \
GPRINT::MIN:"Min\:%8.2lf %%" \
GPRINT::MAX:"Max\:%8.2lf %%\n" \
LINE1:#808080:"CPU3\:" \
GPRINT::AVERAGE:" Current\:%8.2lf %%" \
GPRINT::MIN:"Min\:%8.2lf %%" \
GPRINT::MAX:"Max\:%8.2lf %%\n"

RRDTool Says:

ERROR: invalid rpn expression in: a,b,+,c,+,d,+,4,/


Note that the line

Quote:
--title="Multi CPU Utilization on %server name%" \


Displays the correct information. I have removed the server name for security reasons.

Why am I getting the error and not seeing any data graphed?

If I select the data sources and click save Cacti tells me that the graph was saved successfully, but when I go back into the graph settings the 4 data sources are blank.

What am I doing wrong?
Back to top
ccoager



Joined: 01 May 2007
Posts: 11

PostPosted: Fri May 04, 2007 10:43 am    Post subject: Reply with quote

I have the same problem:

Code:
ERROR: invalid rpn expression in: a,b,+,2,/


Gentoo Linux AMD64 2.6.18-hardened
cacti-0.8.6j-r4
net-smp-5.4
apache-2.0.58-r2
php-5.2.1-r3


Any ideas?
Back to top
dragonb



Joined: 17 May 2007
Posts: 1

PostPosted: Thu May 17, 2007 5:19 pm    Post subject: Reply with quote

first of all, thanks a bunch for all the work in this forum.
Using the templates I got 2,4,8 working on my servers within an hour. I had the exact same problems others had, but they had been addressed, and I was able to fix it all.

Great work!

and, ccoager who posted last.
I had that same error when the cpu's aren't selected. I usually selected them just above where that logging is.
Back to top
super-hornet
Cacti User


Joined: 27 May 2007
Posts: 144

PostPosted: Wed Jun 06, 2007 7:24 am    Post subject: Reply with quote

Hi all

I tried the 2CPU, 4CPU and 8CPU on my workplace.

I can't get information for CPU (SNMP Processor Information?) for all the Redhat Enterprise Linux v4.

On system running openSUSE 10.2, it can get those CPU information and thus the script/graph works.

I do comparison of both OS and notice that openSUSE 10.2 uses net-snmp-5.4.rc3 whereas RHEL uses net-snmp-5.0.

I manage to find net-snmp-5.2 RPM for RHEL but it still cannot read the CPU information.

Is it that in order to use the MultiCPU script, the target system needed to have net-snmp-5.4? If yes, then I really have no choice but to compile net-snmp-5.4 in RHEL. If anyone has the RPM version for RHELv3 or v4, plz let me know. Oh... I need x86_64 type of binaries.

SH
Back to top
karthick1978



Joined: 13 Jun 2007
Posts: 3

PostPosted: Wed Jun 13, 2007 6:58 am    Post subject: CPU Average Reply with quote

Hi,

Any one can plz help me out .... I'm facing problem in Multiple CPU (4) processor averaging. I'm getting graph,but the values are not proper .
This is debug
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=1181648993 \
--end=1181735393 \
--title="Multi CPU Utilization on Intranet_CPU_test" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2007/06/12 11\:49\:53 To 2007/06/13 11\:49\:53\c" \
COMMENT:" \n" \
--vertical-label="" \
--slope-mode \
DEF:a="C\:/cacti/rra/intranet_cpu_test_cpu_1174.rrd":cpu:AVERAGE \
DEF:b="C\:/cacti/rra/intranet_cpu_test_cpu_1175.rrd":cpu:AVERAGE \
DEF:c="C\:/cacti/rra/intranet_cpu_test_cpu_1176.rrd":cpu:AVERAGE \
DEF:d="C\:/cacti/rra/intranet_cpu_test_cpu_1177.rrd":cpu:AVERAGE \
CDEF:cdefa=a,b,+,c,+,d,+,4,/ \
AREA:cdefa#F9FD5F:"Mean CPU\:" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %%" \
GPRINT:cdefa:MIN:"Min\:%8.2lf %%" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %%\n" \
LINE1:a#0000FF:"CPU0\:" \
GPRINT:a:LAST:" Current\:%8.2lf %%" \
GPRINT:a:MIN:"Min\:%8.2lf %%" \
GPRINT:a:MAX:"Max\:%8.2lf %%\n" \
LINE1:b#00A348:"CPU1\:" \
GPRINT:b:LAST:" Current\:%8.2lf %%" \
GPRINT:b:MIN:"Min\:%8.2lf %%" \
GPRINT:b:MAX:"Max\:%8.2lf %%\n" \
LINE1:c#C4FD3D:"CPU2\:" \
GPRINT:c:AVERAGE:" Current\:%8.2lf %%" \
GPRINT:c:MIN:"Min\:%8.2lf %%" \
GPRINT:c:MAX:"Max\:%8.2lf %%\n" \
LINE1:d#FF0000:"CPU3\:" \
GPRINT:d:AVERAGE:" Current\:%8.2lf %%" \
GPRINT:d:MIN:"Min\:%8.2lf %%" \
GPRINT:d:MAX:"Max\:%8.2lf %%\n"
I don't know where it went wrong?..



graph_image.png
 Description:
Attachment of graph
 Filesize:  28.7 KB
 Viewed:  7781 Time(s)

graph_image.png


Back to top
tonzy0907



Joined: 30 May 2007
Posts: 18

PostPosted: Mon Jun 18, 2007 6:46 am    Post subject: Error : xml parse error Reply with quote

Error : xml parse error

I got this error, upon importing xml files.. what will i do?? please help me..
Back to top
tonzy0907



Joined: 30 May 2007
Posts: 18

PostPosted: Mon Jun 18, 2007 7:45 am    Post subject: Reply with quote

Please HELP WITH THIS ERROR.



RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Multi CPU Utilization on CHECK21 APPS. SVR. - 10.40.54.231 / 202.124.158.114" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/cacti/rra/check21_apps_svr_10_40_54_231_202_124_158_114_cpu0_1233.rrd":cpu0:AVERAGE \
DEF:b="/usr/local/cacti/rra/check21_apps_svr_10_40_54_231_202_124_158_114_cpu1_1234.rrd":cpu1:AVERAGE \
DEF:c="/usr/local/cacti/rra/check21_apps_svr_10_40_54_231_202_124_158_114_cpu2_1235.rrd":cpu2:AVERAGE \
DEF:d="/usr/local/cacti/rra/check21_apps_svr_10_40_54_231_202_124_158_114_cpu3_1236.rrd":cpu3:AVERAGE \
CDEF:cdefa=a,b,+,c,+,d,+,4,/ \
AREA:cdefa#F9FD5F:"Mean CPU\:" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %%" \
GPRINT:cdefa:MIN:"Min\:%8.2lf %%" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %%\n" \
LINE1:a#0000FF:"CPU0\:" \
GPRINT:a:LAST:" Current\:%8.2lf %%" \
GPRINT:a:MIN:"Min\:%8.2lf %%" \
GPRINT:a:MAX:"Max\:%8.2lf %%\n" \
LINE1:b#00A348:"CPU1\:" \
GPRINT:b:LAST:" Current\:%8.2lf %%" \
GPRINT:b:MIN:"Min\:%8.2lf %%" \
GPRINT:b:MAX:"Max\:%8.2lf %%\n" \
LINE1:b#C4FD3D:"CPU2\:" \
GPRINT:c:AVERAGE:" Current\:%8.2lf %%" \
GPRINT:b:MIN:" Min\:%8.2lf %%" \
GPRINT:b:MAX:"Max\:%8.2lf %%\n" \
LINE1:b#FF0000:"CPU3\:" \
GPRINT:d:AVERAGE:" Current\:%8.2lf %%" \
GPRINT:b:MIN:" Min\:%8.2lf %%" \
GPRINT:b:MAX:"Max\:%8.2lf %%\n"
RRDTool Says:

ERROR: opening '/usr/local/cacti/rra/check21_apps_svr_10_40_54_231_202_124_158_114_cpu0_1233.rrd': No such file or directory
Back to top
tonzy0907



Joined: 30 May 2007
Posts: 18

PostPosted: Wed Jun 27, 2007 7:34 am    Post subject: HELLO PEOPLE Reply with quote

Disregard my posts below, already fix the errors.. i have another problem , how can i set a threshold for the total cpu utilization using this multi cpu template? is it possible ?
Back to top
MoreDakka



Joined: 04 Jul 2007
Posts: 31

PostPosted: Thu Jul 05, 2007 4:45 pm    Post subject: Reply with quote

I hate to bring this back from the dead but I'm having math problems with this script. It's not calculating Mean CPU MIN and MAX properly (Current "seems" good). I'm running v2 of the script, here is the output:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-108000 \
--end=-300 \
--title="Multi CPU Utilization on NALFILE1" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/var/www/html/cacti/rra/nalfile1_cpu_314.rrd":cpu:AVERAGE \
DEF:b="/var/www/html/cacti/rra/nalfile1_cpu_315.rrd":cpu:AVERAGE \
DEF:c="/var/www/html/cacti/rra/nalfile1_cpu_316.rrd":cpu:AVERAGE \
DEF:d="/var/www/html/cacti/rra/nalfile1_cpu_317.rrd":cpu:AVERAGE \
CDEF:cdefa=a,b,c,d,+,+,+,4,/ \
AREA:cdefa#F9FD5F:"Mean CPU\:" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %%" \
GPRINT:cdefa:MIN:"Min\:%8.2lf %%" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %%\n" \
LINE1:a#0000FF:"CPU0\:" \
GPRINT:a:LAST:" Current\:%8.2lf %%" \
GPRINT:a:MIN:"Min\:%8.2lf %%" \
GPRINT:a:MAX:"Max\:%8.2lf %%\n" \
LINE1:b#00A348:"CPU1\:" \
GPRINT:b:LAST:" Current\:%8.2lf %%" \
GPRINT:b:MIN:"Min\:%8.2lf %%" \
GPRINT:b:MAX:"Max\:%8.2lf %%\n" \
LINE1:c#C4FD3D:"CPU2\:" \
GPRINT:c:LAST:" Current\:%8.2lf %%" \
GPRINT:c:MIN:"Min\:%8.2lf %%" \
GPRINT:c:MAX:"Max\:%8.2lf %%\n" \
LINE1:d#FF0000:"CPU3\:" \
GPRINT:d:LAST:" Current\:%8.2lf %%" \
GPRINT:d:MIN:"Min\:%8.2lf %%" \
GPRINT:d:MAX:"Max\:%8.2lf %%\n"

RRDTool Says:

OK

As you can see by the image (if you pull out good old calc) that the math for MAX and MIN does not match the Mean calculations.

Thanks for your time.



badrrdmath.JPG
 Description:
 Filesize:  29.83 KB
 Viewed:  7270 Time(s)

badrrdmath.JPG


Back to top
MoreDakka



Joined: 04 Jul 2007
Posts: 31

PostPosted: Tue Jul 10, 2007 10:20 am    Post subject: Reply with quote

I'm hoping that the dev of this script can take a look at my post to help me out with this problem of the math not being correct.

Thanks.
Back to top
Cylindric



Joined: 16 Jul 2007
Posts: 29

PostPosted: Mon Jul 16, 2007 9:36 am    Post subject: Reply with quote

I seem to be getting the same problem as a previous poster. I have installed a clean Ubuntu 7.04 server, and used the apt package of Cacti for installation.

Everything looks great, I've added various servers and graphs (including processor) and all is ticking over nicely.

I've installed the cacti_graph_template_multi_cpu_utilization_on_4_processor_box_v2a.xml template, but whenever I'm managing the graph for a server, I cannot save the selections for Data Source [cpu0] to [cpu3].

I can select the datasources 1 to 3, but they are not saved, despite the message at the top of the page being "Save Successful."
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11, 12  Next
Page 8 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group