Multi CPU Utilization Graph

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
jzondor
Posts: 7
Joined: Wed May 10, 2006 5:16 pm

Post by jzondor »

Found the problem (4 proc v2) ... In your graph template I noticed that the Data Sources were not associated to a Graph Item. Once I matched them up, it worked for me.
Attachments
cacti_graph_template_multi_cpu_utilization_on_4_processor_box_v2a.xml
(26.08 KiB) Downloaded 2949 times
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

<cool> Although that was by design, as the sources don't exist until you've created the snmp cpu graphs...

If you've worked a way around that - excellent.

Argon0
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
markw
Posts: 1
Joined: Wed May 24, 2006 2:05 pm

Help!!

Post by markw »

hi..when i import the template cacti_graph_template_multi_cpu_utilization_on_4_processor_box_v2.xml..under data templates i see four new entries CPU(0),(1),(2),(3). In each of these data templates the data input method is autoset as "Get Script Server Data(Indexed)". Is that correct? If i understand correctly this graph template is supposed to work with SNMP query to the windows machine other than the one running cacti. shouldn't the data input method be "Get SNMP Data"? One more thing..do i have to provide OID somewhere?

thanx..
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Your first point - unsure, and probably doesn't matter as you need to change the data source once the graph has been created.

All you have to do is create the snmp graphs for the CPU's separately, then, on the multi-CPU graph, choose the correct sources for each of the lines.

Argon0
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
rafiso
Posts: 20
Joined: Sat Dec 10, 2005 8:54 pm

yeah!

Post by rafiso »

hi !

I got the same problem that Edge !

Double opteron server running fedora 4 :=)...

I can't get any infos about each processor :( It's working using basic templates but there is only 1 graph that seems to be the average.

Thanks !
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

hello

sorry for my english but i'm french ...

i want to use the graph template 'cacti_graph_template_multi_cpu_utilization_on_4_processor_box_v2.xml'
for monitor a serveur with 2cpu HyperThrending so 4cpu's

I want to graph each cpu separately first. so i go to 'new graph' , select an host and click 'edit this host ' but i hav'nt 'Host MIB - Cpu utilization' ....


what i do ???
thanks ...
Last edited by driden91 on Fri Sep 01, 2006 11:13 am, edited 1 time in total.
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Goto Graph templates, and tell me if
Host MIB - CPU Utilization
is there.

If it is it can be associated with the "Host template" you are using quiet easily.

Goto Host Templates, choose your template (probably Windows 2000/Xp Host) in the top section choose the relevant graph template from the drop down list and click add.

Then when you go back to create graphs it should be there.

Alternatively you can do the same from the Device screen.

Argno0
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

hello,

In graph template
Host MIB - CPU Utilization
is here.



And in Hosts Templates too



but in the sectio new graph when i select an host already create, i don't have

Code: Select all

Host MIB - CPU Utilization
in my list ...


but if i create a new host i have
Host MIB - CPU Utilization
created automatically ... it's logic because i have add the graph template 'Host MIB - CPU Utilization' in the 'host template' ....

So how I make for create Host MIB - CPU Utilization in a host already exist ???

And what is the 3 options (index type / index value / Output type ID) when i create the graph 'Host MIB - CPU Utilization' for my new host ?



Image[/quote]
Last edited by driden91 on Fri Sep 01, 2006 11:14 am, edited 1 time in total.
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

thats the debug mode for my graph
Multi CPU Utilization
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Multi CPU Utilization on pixproS4" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/home/cacti/rra/pixpros4_cpu0_176.rrd":cpu0:AVERAGE \
DEF:b="/home/cacti/rra/pixpros4_cpu1_177.rrd":cpu1:AVERAGE \
DEF:c="/home/cacti/rra/pixpros4_cpu2_178.rrd":cpu2:AVERAGE \
DEF:d="/home/cacti/rra/pixpros4_cpu3_179.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: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"

RRDTool Says:

ERROR: opening '/home/cacti/rra/pixpros4_cpu0_176.rrd': No such file or directory
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

YOu need to wait 5 minutes or so for it to create the file.

As to the variables, they should not require you to do anything!

Argon0
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

i have remove all reference for the graph mutli processor V2.
I have reimported the xml file

Code: Select all

cacti_graph_template_multi_cpu_utilization_on_4_processor_box_v2.xml
that's ok ... no errors ...

I create a new graph 'multi processor V2' that's OK

thats my 'graph management' for the graph .Multi CPU Utilization


that's correct ? I did not touch anything ...

but tat's the debug mode :

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-108000 \
--end=-300 \
--title="Multi CPU Utilization on pixproS4" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/home/cacti/rra/pixpros4_cpu0_204.rrd":cpu0:AVERAGE \
DEF:b="/home/cacti/rra/pixpros4_cpu1_205.rrd":cpu1:AVERAGE \
DEF:c="/home/cacti/rra/pixpros4_cpu2_206.rrd":cpu2:AVERAGE \
DEF:d="/home/cacti/rra/pixpros4_cpu3_207.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: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" 

RRDTool Says:

ERROR: opening '/home/cacti/rra/pixpros4_cpu0_204.rrd': No such file or directory

the data source concerned by the multi cpu graph .
this data sources was created automatically ...


And thats the result when i clik on the first data source for multi cpu 'pixproS4 - CPU Utilization' ....


so what is the problem ? i don't understand ...
Last edited by driden91 on Fri Sep 01, 2006 11:15 am, edited 2 times in total.
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

AHA! Now I get where you were having issues....

OK, first, can you see the individual CPU graphs?

Either way put your Graph debug here.

Argon0
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

no i can't see a graph for individual cpu ...
how I make for this ?

do you speak french ? because it's very hard to speak english for me ?
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Whoops
Last edited by argon0 on Wed Jul 19, 2006 4:24 am, edited 1 time in total.
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

whoops
Last edited by argon0 on Wed Jul 19, 2006 4:24 am, edited 1 time in total.
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest