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 ... 8, 9, 10, 11, 12  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
Cylindric



Joined: 16 Jul 2007
Posts: 29

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

Aha! Have I found it? Perhaps.

I went into "Graph Templates" and edited the "Multi CPU Utilization on 4 Processor Box (v2)" graph. I clicked on each of the "Graph Item Inputs" and assigned them to one of the LINE1 items (items #5,9,13,17).

Then I was able to save the graph details
Back to top
Cylindric



Joined: 16 Jul 2007
Posts: 29

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

Actually, not just for the LINE1 bits, but for all 4.

Data Source [cpu0]
Item #5: LINE1 (AVERAGE)
Item #6: GPRINT (LAST)
Item #7: GPRINT (MIN)
Item #8: GPRINT (MAX)

Data Source [cpu1]
Item #9: LINE1 (AVERAGE)
Item #10: GPRINT (LAST)
Item #11: GPRINT (MIN)
Item #12: GPRINT (MAX)

etc
Back to top
MoreDakka



Joined: 04 Jul 2007
Posts: 31

PostPosted: Mon Jul 16, 2007 11:42 am    Post subject: Reply with quote

I'm still having the graph math problem.

(1+2+3)/3 !=2.5

I don't know where this graph is pulling some of the numbers that it has to generate some of the answers that it does. I like this graph and it would suck not to be able to use it because it's adding something to the numbers it polls.

Hopefully someone can help.

Thanks.
Back to top
Eggibba



Joined: 06 Aug 2007
Posts: 1

PostPosted: Mon Aug 06, 2007 7:33 pm    Post subject: Reply with quote

MoreDakka,

I suspect your Mins and Maxs are happening at different times on each of the processors - thus the mean Max will be lower than the mean of the Maxs. That's probably clear as mud ....

In other words, the mean Max shown is the highest MEAN that has been attained - it's just that one or two of the processors took it high at a particular sample. At another sample, different processors might be higher, and the mean still be lower than the existing Max for the mean.

If that still doesn't make sense, try looking at the graphs for each individual processor, and notice that they don't all peak at the same sample. Then run the numbers for the avg at each sample that appears to be the largest.


MoreDakka wrote:
I'm still having the graph math problem.

(1+2+3)/3 !=2.5

I don't know where this graph is pulling some of the numbers that it has to generate some of the answers that it does. I like this graph and it would suck not to be able to use it because it's adding something to the numbers it polls.

Hopefully someone can help.

Thanks.
Back to top
mtsm



Joined: 21 Oct 2005
Posts: 12

PostPosted: Tue Sep 18, 2007 11:58 am    Post subject: Reply with quote

hi people....i tried all those templates...dont work...i have the graphs but nothing is plotted...does it use an external script to collect the data? or snmp? i didnt get it
Back to top
kernelphr34k



Joined: 24 Jul 2007
Posts: 38
Location: Oregon

PostPosted: Mon Sep 24, 2007 12:54 pm    Post subject: Reply with quote

Trying to graph 2 CPU's...

suse enterprise 10 linux(2.6.16 kernel)
cacti 0.8.6j + patches

net-snmp = 5.3.0.1-25.2
php5 = 5.1.2-29.5
rrdtool = 1.2.12-13.2

Getting error:
Code:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Multi CPU Utilization on localhost (ddbc-netmon)" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/srv/www/htdocs/cacti-0.8.6j/rra/localhost_ddbcnetmon_cpu_2096.rrd":cpu:AVERAGE \
CDEF:cdefa=a,b+,2,/ \
AREA:cdefa#FAFD9E:"Mean CPU"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf %%"  \
GPRINT:cdefa:MIN:"Min\:%8.2lf %%"  \
GPRINT:cdefa:MAX:"Max\:%8.2lf %%\n"  \
GPRINT:a:LAST:"CPU0%8.2lf %%"  \
GPRINT:a:LAST:"Current\:%8.2lf %%"  \
GPRINT:a:MIN:"Min\:%8.2lf %%"  \
GPRINT:a:MAX:"Max\:%8.2lf %%\n"  \
GPRINT:a:LAST:"CPU1%8.2lf %%"  \
GPRINT:a:LAST:"Current\:%8.2lf %%"  \
GPRINT:a:MIN:"Min\:%8.2lf %%"  \
GPRINT:a:MAX:"Max\:%8.2lf %%\n"

RRDTool Says:

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


Any pointers are appreciated! thanks!
Back to top
cbrmig



Joined: 24 Sep 2007
Posts: 14

PostPosted: Mon Oct 29, 2007 2:44 pm    Post subject: Reply with quote

argon0 wrote:
..................

This opens up a new section: Supplemental Graph Template Data
Here you need to choose your data sources for the graph (these are the individual graphs you created earlier).




When i do this....in the field "Supplemental Graph Template Data", in front of "Data Source", there is nothing under that arrow...So i can't associate the fields...
Back to top
cbrmig



Joined: 24 Sep 2007
Posts: 14

PostPosted: Mon Oct 29, 2007 2:57 pm    Post subject: Reply with quote

AndyStewart wrote:
screenshot of detail screen. Any time i select any of the cpu's from the popup list, then click save, it goes back to the summary screen, but then re-entering the detail screen, they've all reset back to "None" - no errors displayed anywhere...



Yep..with my cpu's it's the same..
I'm runing :
Quote:
Cacti Version - 0.8.6i
Plugin Architecture - 1.0
Poller Type - Cactid v0.8.6i
Server Info - Linux 2.6.9-42.0.3.EL
Web Server - Apache/2.0.52 (CentOS)
PHP - 4.3.9
PHP Extensions - yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, mysql, snmp, eAccelerator
MySQL - 4.1.20
RRDTool - 1.2.15
SNMP - 5.1.2
Plugins
    PHP Network Weathermap (weathermap - v0.93)
    Thresholds (thold - v0.3.0)
    Device Monitoring (monitor - v0.7)
    Network Discovery (discovery - v0.6)
    Network Tools (tools - v0.2)
    Syslog Monitoring (haloe - v0.4)
    mactrack
    RRD Cleaner (rrdclean - v1.1)
    Update Checker (update - v0.3)
    FlowView (flowview - v0.3)
    Host Info (hostinfo - v0.1)
    Error Images (errorimage - v0.1)
    Real-time statistics (zond - v0.3)



thkns.
Back to top
esplinter



Joined: 31 Oct 2007
Posts: 10

PostPosted: Wed Nov 07, 2007 6:43 pm    Post subject: anyone using this template on cacti 0.8.7? Reply with quote

Hi all

I can´t make this graph work on cacti 0.8.7.because I cant get individual graphs for each cpu.

I am using a host template that has a associated data query called "1) SNMP - Get Processor Information". when I add a device and asign that template to the host I get this:


but when I go to "create graph for this host" i get:


and when I run on debug mode I get:


¿does anyone knows how to to solve this?? ¿any clue? ¿maybe I have to modify the config of the snmp server on the host?? I think that´s not the problem because looking the code at the script ss_host_cpu.php I think the OID is .1.3.6.1.2.1.25.3.3.1 and when I run this it seems ok

$ [root@gen30 scripts]# snmpwalk -v2c -cpublic localhost .1.3.6.1.2.1.25.3.3.1
HOST-RESOURCES-MIB::hrProcessorFrwID.768 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.769 = OID: SNMPv2-SMI::zeroDotZero

can anyone confirm if this config is ok??



I also tried to change the graph tempate to ucd/net - cpu usage on the last capture and still fails. ¿any clue to solve this??

Im running cacti 0.8.7 on centos5 x86_64 and monitoring some centos5 and debian etch machines.
many thanks in advance for any help



instantánea5.jpg
 Description:
 Filesize:  79.28 KB
 Viewed:  6942 Time(s)

instantánea5.jpg



instantánea4.jpg
 Description:
 Filesize:  69.04 KB
 Viewed:  6942 Time(s)

instantánea4.jpg



instantánea3.jpg
 Description:
 Filesize:  42.69 KB
 Viewed:  6950 Time(s)

instantánea3.jpg



instantánea2.jpg
 Description:
 Filesize:  18.95 KB
 Viewed:  6950 Time(s)

instantánea2.jpg



instantánea1.jpg
 Description:
 Filesize:  38.27 KB
 Viewed:  6950 Time(s)

instantánea1.jpg


Back to top
megatronx



Joined: 25 Nov 2007
Posts: 1
Location: Manila

PostPosted: Sun Nov 25, 2007 11:00 am    Post subject: Re: HELLO PEOPLE Reply with quote

tonzy0907 wrote:
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 ?



@tonzy0907
@all

How can you clear or solve rrdtool says: Error ???
I just installed cacti and I'm having a problem displaying any graph...
PLease help!!!

RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-3600 \
--end=-300 \
--title="Linux CACTI - Load Average" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
DEF:a="/usr/local/cacti/rra/linux_cacti_ping_52.rrd":ping:AVERAGE \
AREA:a#00CF00:"Inbound" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:a#002A97:"Outbound" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:

ERROR: opening '/usr/local/cacti/rra/linux_cacti_ping_52.rrd': No such file or directory
Back to top
slech
Cacti User


Joined: 06 Nov 2007
Posts: 90

PostPosted: Mon Nov 26, 2007 4:33 am    Post subject: Reply with quote

My cacti template on 2 4 8 cpu
Based on ferst tempalate in this teme.



cacti_graph_template_host_mib_-_multi_cpu_utilization_on_8_processor_box.xml
 Description:

Download
 Filename:  cacti_graph_template_host_mib_-_multi_cpu_utilization_on_8_processor_box.xml
 Filesize:  29.09 KB
 Downloaded:  688 Time(s)


cacti_graph_template_host_mib_-_multi_cpu_utilization_on_4_processor_box.xml
 Description:

Download
 Filename:  cacti_graph_template_host_mib_-_multi_cpu_utilization_on_4_processor_box.xml
 Filesize:  19.02 KB
 Downloaded:  780 Time(s)


cacti_graph_template_host_mib_-_multi_cpu_utilization_on_2_processor_box.xml
 Description:

Download
 Filename:  cacti_graph_template_host_mib_-_multi_cpu_utilization_on_2_processor_box.xml
 Filesize:  13.97 KB
 Downloaded:  814 Time(s)

Back to top
Smux



Joined: 10 Sep 2007
Posts: 40

PostPosted: Mon Dec 03, 2007 3:38 pm    Post subject: Reply with quote

RDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Svr01 - 4 CPU Utilization" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:7.9: \
--font UNIT:8: \
DEF:a="/home/sigfbr/public_html/cacti/rra/svr01_cpu_122.rrd":cpu:AVERAGE \
CDEF:cdefa=a,b,+,c,+,d,+,4,/ \
AREA:cdefa#FAFD9EFF:"Mean CPU" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %%" \
GPRINT:cdefa:MIN:"Min\:%8.2lf %%" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %%\n" \
LINE1:a#0000FFFF:"CPU0" \
GPRINT:a:LAST:" Current\:%8.2lf %%" \
GPRINT:a:MIN:"Min\:%8.2lf %%" \
GPRINT:a:MAX:"Max\:%8.2lf %%\n" \
LINE1:a#00A348FF:"CPU1" \
GPRINT:a:LAST:" Current\:%8.2lf %%" \
GPRINT:a:MIN:"Min\:%8.2lf %%" \
GPRINT:a:MAX:"Max\:%8.2lf %%\n" \
LINE1:a#C4FD3DFF:"CPU2" \
GPRINT:a:LAST:" Current\:%8.2lf %%" \
GPRINT:a:MIN:"Min\:%8.2lf %%" \
GPRINT:a:MAX:"Max\:%8.2lf %%\n" \
LINE1:a#FF0000FF:"CPU3" \
GPRINT:a:LAST:" Current\:%8.2lf %%" \
GPRINT:a:MIN:"Min\:%8.2lf %%" \
GPRINT:a:MAX:"Max\:%8.2lf %%\n"

RRDTool Says:

ERROR: invalid rpn expression in: a,b,+,c,+,d,+,4,/
Back to top
slech
Cacti User


Joined: 06 Nov 2007
Posts: 90

PostPosted: Tue Dec 04, 2007 8:49 am    Post subject: Reply with quote

Yoy have this CDEF's ?




At me it work perfectly




I now export template witch dependency. Try its.



multi.2.4.8.cpu.zip
 Description:

Download
 Filename:  multi.2.4.8.cpu.zip
 Filesize:  9.52 KB
 Downloaded:  1094 Time(s)

Back to top
exploit-soget



Joined: 23 Jan 2007
Posts: 40

PostPosted: Tue Dec 04, 2007 11:46 am    Post subject: Reply with quote

It works fine. Thanks a lot.
One question : have you the template for 16 box CPU ?

Bye
Back to top
slech
Cacti User


Joined: 06 Nov 2007
Posts: 90

PostPosted: Tue Dec 04, 2007 12:01 pm    Post subject: Reply with quote

no
i don't have servir with 16 cpu box.
But bballard create 16 cpu template.
Try it
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 ... 8, 9, 10, 11, 12  Next
Page 9 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group