Multi CPU Utilization Graph

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

Moderators: Developers, Moderators

Post Reply
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:23 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 »

Oui, je parle un petit peu Francais, mais elle est tres mal.

I will post this reply in English, and include the French Translation off of Babel fish.

I may have mislead you in a previous post - I was replying from Memory only!!

OK, first you need to create the individual CPU graphs, which creates the data source for your Multi-Cpu graph.

These are in the section

"Data Query [SNMP - Get Processor Information]" on the create graph screen.

If they are NOT you need to add the query to your host - goto the host, select "SNMP - Get Processor Information" from the drop down list next to "Add Data Query: ".

Ignore what I said about Host MIB CPU Utilisation!

Argon0

Babel fish translates it as: See attachment
Attachments
french.txt
Babel fish translation...
(906 Bytes) Downloaded 714 times
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 »

OK, i have cretaed an individual cpu graph with "Data Query [SNMP - Get Processor Information]"

it's a success but the result returns [[0 Items, 0 Rows] ...

that's the debug mode for my Data Query [SNMP - Get Processor Information]"

Code: Select all

+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/home/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /home/cacti/scripts/ss_host_cpu.php localhost 1 2:161:500:public:::MD5::[None] index'
+ Executing script query '/usr/bin/php -q /home/cacti/scripts/ss_host_cpu.php localhost 1 2:161:500:public:::MD5::[None] query index'
+ Found data query XML file at '/home/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/home/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/home/cacti/resource/script_server/host_cpu.xml'
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

is that all the debug info?

Do you have the debug from the graph?
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
rocketman
Posts: 2
Joined: Thu Jul 20, 2006 3:59 am

Post by rocketman »

argon0, hello!
In first - thank you for great templates :)

I trying to use "2 and 4 (v2) Processor"-variants.
And both - not works for me :(
I have two Linux-box with 2.4 kernel with net-snmp 5.0.9 and 5.3.0.1.

I was install templates and add new graph.
But - RRDTool Says: ERROR: opening '/pathto/cacti/rra/host_cpu0_179.rrd': No such file or directory
On other my graphs - all is ok.

Please, help me, if you can.
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

argon0 wrote:is that all the debug info?

Do you have the debug from the graph?
i havn't graph because the data query [SNMP - Get Processor Information]" returns [0 Items, 0 Rows] ....
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Driden91 - you've created the graph (correct) but it shows no data - have you got the debug from the graph? Are you able to graph any SNMP data from that box?

Rocketman - you are having problems IMPORTING the templates? Not using them? Hmmm... I'm not sure about that!

Both... I'm not actually using Cacti at work at the moment, so my replies are all from memory atm, I WILL be using it again soon (maybe as soon as next week, depends if I get go ahead or not), so I will be able to look at your queries in more detail then. I PROMISE to look at the multi cpu graphs again, as I will be using them in my analysis of which servers could be virtualised...

When I do so I will recreate them from scratch and repost the templates.

Regards

Argon0

P.S. that is something you could try too - recreating the templates, if you get the individual CPU graphs its not TOO difficult to figure out how to do Multiple CPU graphs, and was a good way for me to start learning about graphs in Cacti anyway! (lead me down the path of customising the graph templating interface so I could add graph items with all Legend info already there...)
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 »

Driden91 - you've created the graph (correct) but it shows no data - have you got the debug from the graph? Are you able to graph any SNMP data from that box?

Rocketman - you are having problems IMPORTING the templates? Not using them? Hmmm... I'm not sure about that!

Both... I'm not actually using Cacti at work at the moment, so my replies are all from memory atm, I WILL be using it again soon (maybe as soon as next week, depends if I get go ahead or not), so I will be able to look at your queries in more detail then. I PROMISE to look at the multi cpu graphs again, as I will be using them in my analysis of which servers could be virtualised...

When I do so I will recreate them from scratch and repost the templates.

Regards

Argon0

P.S. that is something you could try too - recreating the templates, if you get the individual CPU graphs its not TOO difficult to figure out how to do Multiple CPU graphs, and was a good way for me to start learning about graphs in Cacti anyway! (lead me down the path of customising the graph templating interface so I could add graph items with all Legend info already there...)
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,

I havn't debug graph because the data query [SNMP - Get Processor Information]" returns [0 Items, 0 Rows] .... si i havn't graph ...

So what can i do ?

hi,
thats the result of my snmpwalk :

Code: Select all

snmpwalk -v2c -c XXXX 192.168.X.XXX .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
HOST-RESOURCES-MIB::hrProcessorFrwID.770 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.771 = OID: SNMPv2-SMI::zeroDotZero

morta
Posts: 1
Joined: Tue Aug 08, 2006 10:28 am

Post by morta »

Perhaps the issue is in ucd/net-snmp implementation? Data query SNMP - Get Processor Information uses hrProcessorLoad, which is not present at all in my MIB (net-snmp v5.2.2).
jokerz
Posts: 13
Joined: Thu Oct 26, 2006 11:57 am

Post by jokerz »

forgive the n00b question just been using cacti for 2 days now

running on iis winxp pro box.

I downloaded cacti_graph_template_multi_cpu_utilization_on_4_processor_box.xml

and imported via "import templates"

Is there anything else i need to do to get it to start polling my AD sever? I should just be able to add graph and wait for data to show up?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

jokerz wrote:I should just be able to add graph and wait for data to show up?
Yep. You should see the new Graph Template. Add it to your device and Create Graphs for this Host. Select the new one and "Create". Wait 10 min or so and see your graph
Reinhard
darthbator
Posts: 29
Joined: Wed Sep 27, 2006 7:02 pm

Post by darthbator »

Hey guys I keep getting XML hash errors when I attempt to import any of the templates. I select the location to upload from and then select ok and the following error message is displayed in bright red.

Error: XML: Hash version does not exist.
burrben
Posts: 2
Joined: Wed Feb 07, 2007 2:16 pm

Post by burrben »

The template that you posted was for a Cisco 3000. What the heck is that doing in a multi-cpu graph?

I am also have the same problem with the V2. I have all the CPU's graphing, but when I select the data sources in the template and hit save it says save successful. But then I go back in and it's all shows blank. HELP!!!!
Burrben

jzondor wrote: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.
burrben
Posts: 2
Joined: Wed Feb 07, 2007 2:16 pm

Pulling my hair out!

Post by burrben »

Hello,
I've been trying to use the multi-cpu template with no success. I'm running on a linux box, graphing windows hosts. I have a server that has been graphing fine for weeks, and has 2 dual core proc, for 4 graphs total. I've tried the fixed and v2 versions of the graphs. When I add the template to a host, and choose the CPU0-CPU3, and hit save, it does say save successful. But never saves. When I turn on graph debug mode I get:
RRDTool Command:

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Multi CPU Utilization on MAIL" \
--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#FAFD9E:"Mean CPU" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %%" \
GPRINT:cdefa:MIN:"Min\:%8.2lf %%" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %%\n" \
LINE1:#0000FF:"CPU0" \
GPRINT::LAST:" Current\:%8.2lf %%" \
GPRINT::MIN:"Min\:%8.2lf %%" \
GPRINT::MAX:"Max\:%8.2lf %%\n" \
LINE1:#00A348:"CPU1" \
GPRINT::LAST:" Current\:%8.2lf %%" \
GPRINT::MIN:"Min\:%8.2lf %%" \
GPRINT::MAX:"Max\:%8.2lf %%\n" \
LINE1:#C4FD3D:"CPU2" \
GPRINT::AVERAGE:" Current\:%8.2lf %%" \
GPRINT::MIN:"Min\:%8.2lf %%" \
GPRINT::MAX:"Max\:%8.2lf %%\n" \
LINE1:#FF0000:"CPU3" \
GPRINT::AVERAGE:" Current\:%8.2lf %%" \
GPRINT::MIN:"Min\:%8.2lf %%" \
GPRINT::MAX:"Max\:%8.2lf %%"
RRDTool Says:

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

Any ideas?
Thanks in advance!!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest