Multi CPU Utilization Graph
Moderators: Developers, Moderators
Its definitely worth looking at, if only for the backup routine..
(it has a nice backup routine included where you download the config to another machine, then if you need to recreate the machine you just boot from the distro disk (takes about 7 minutes) get your system up again and restore the config, nice)...
(it has a nice backup routine included where you download the config to another machine, then if you need to recreate the machine you just boot from the distro disk (takes about 7 minutes) get your system up again and restore the config, nice)...
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Ok I got everything fingered out with these CPU graphs and fixed a few issues that I had importing them onto a Windows system..... But The last issue I see is the 4cpu graph the Max string is still dividing by 5 instead of 4, is this an easy setting that I can just change myself somewhere?argon0 wrote:Its definitely worth looking at, if only for the backup routine..
(it has a nice backup routine included where you download the config to another machine, then if you need to recreate the machine you just boot from the distro disk (takes about 7 minutes) get your system up again and restore the config, nice)...
Yup, goto graph management, you will then see an item on the left of the screen:
CDEFs.
(just under Graph Management)
Click on that.
You'll get a list of (surprise, surprise) CDEFS - which are calculations done in a simple way (i.e. terma, termb, operation, termc, operation.... (e.g. a,b,+,c,+,3,/ - give a + b + c all divided by 3.)
So you just need to go into the cdef for "Average All data sources - 4 sources" click on the item and change the 5 for a 4.. Dunno how come its a 5 in your case though...
Argon0
CDEFs.
(just under Graph Management)
Click on that.
You'll get a list of (surprise, surprise) CDEFS - which are calculations done in a simple way (i.e. terma, termb, operation, termc, operation.... (e.g. a,b,+,c,+,3,/ - give a + b + c all divided by 3.)
So you just need to go into the cdef for "Average All data sources - 4 sources" click on the item and change the 5 for a 4.. Dunno how come its a 5 in your case though...
Argon0
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
Is there a definitive link to a 4 processor template, and instructions for installing?
soz, but im still a real noob at getting cacti working
soz, but im still a real noob at getting cacti working
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
,ang on... here you go:
download file below, goto Cacti console, goto Import a templates. Browse to it. Click Save... et viola. Template and Cdefs installed.
Now how to get it to work...
Assuming it s a windows machine (although it should also work with non-windows servers, as it just uses snmp) and is set up for SNMP already...
First you need to graph the cpus separately: goto Management Devices, choose your device, click on "create graphs for this host", now scroll down... you should see a section marked "Data Query [SNMP - Get Processor Information]" click on the top box to select all processors. Click create at the bottom. You'll be asked for a legend colour, click Create again. Independent graphs will now be available....
leave it for 10 minutes or so, so that Cacti can create the data sources you will need for your multi processor graph....
NOW... Go To Graph Management, choose your device from the drop down list, click add. This will open up "Graph Template Selection [new]" screen here you need to choose the "Multi CPU Utilization on 4 Processor Box v2" template. Click Create.
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).
For each of the Graph Item Fields you choose the relevant data source:
(e.g. with a server called Server1 you for the first field (Data Source [cpu0] you goto the drop down list and choose the first instance of: Server1 CPU Utilization (cpu), for each subsequent field you choose the next in the list (unfortunately the sources all have the same name! The only way to tell which is which is by there order in the drop down).
Now click Save,, et viola, you should now have a new graph added to the graph management screen - Multi CPU Utilization on Server1, click on this to see it....
<groan> that was more difficult to explain than I thought, let me know if you have any difficulties!
Argon0
download file below, goto Cacti console, goto Import a templates. Browse to it. Click Save... et viola. Template and Cdefs installed.
Now how to get it to work...
Assuming it s a windows machine (although it should also work with non-windows servers, as it just uses snmp) and is set up for SNMP already...
First you need to graph the cpus separately: goto Management Devices, choose your device, click on "create graphs for this host", now scroll down... you should see a section marked "Data Query [SNMP - Get Processor Information]" click on the top box to select all processors. Click create at the bottom. You'll be asked for a legend colour, click Create again. Independent graphs will now be available....
leave it for 10 minutes or so, so that Cacti can create the data sources you will need for your multi processor graph....
NOW... Go To Graph Management, choose your device from the drop down list, click add. This will open up "Graph Template Selection [new]" screen here you need to choose the "Multi CPU Utilization on 4 Processor Box v2" template. Click Create.
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).
For each of the Graph Item Fields you choose the relevant data source:
(e.g. with a server called Server1 you for the first field (Data Source [cpu0] you goto the drop down list and choose the first instance of: Server1 CPU Utilization (cpu), for each subsequent field you choose the next in the list (unfortunately the sources all have the same name! The only way to tell which is which is by there order in the drop down).
Now click Save,, et viola, you should now have a new graph added to the graph management screen - Multi CPU Utilization on Server1, click on this to see it....
<groan> that was more difficult to explain than I thought, let me know if you have any difficulties!
Argon0
- Attachments
-
- cacti_graph_template_multi_cpu_utilization_on_4_processor_box_v2.xml
- download this, goto Cacti console, goto Import a templates. Browse to it. Click Save... et viola. Template and Cdefs installed.
- (23.4 KiB) Downloaded 2513 times
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Ah,there is a caveat to this....
Sometimes when you create the separate graphs it creates sensibly named data sources!!!
So when you go to choose your data sources, instead of just seeing 4 repetitions of : Server1 CPU Utilization (cpu) you MAY see separately named sources thus:
Server1 - CPU Utilization - CPU0 (cpu)
Server1 - CPU Utilization - CPU1 (cpu)
Server1 - CPU Utilization - CPU2 (cpu)
Server1 - CPU Utilization - CPU3 (cpu)
From this you should be able to work out which to assign to which graph item!!!
Argon0
Sometimes when you create the separate graphs it creates sensibly named data sources!!!
So when you go to choose your data sources, instead of just seeing 4 repetitions of : Server1 CPU Utilization (cpu) you MAY see separately named sources thus:
Server1 - CPU Utilization - CPU0 (cpu)
Server1 - CPU Utilization - CPU1 (cpu)
Server1 - CPU Utilization - CPU2 (cpu)
Server1 - CPU Utilization - CPU3 (cpu)
From this you should be able to work out which to assign to which graph item!!!
Argon0
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
one other quick question - im running on 0.8.6g - i guess this is only supported on 0.8.6h?
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
I'm using 0.8.6.h yes... via CactiEZ distro - which is VERY easy to install (just stick a cd in!)...
If you're starting from scratch this is the best way to go...
Otherwise, I don't THINK I'm using anything specific to h, so it SHOULD work...
Argon0
If you're starting from scratch this is the best way to go...
Otherwise, I don't THINK I'm using anything specific to h, so it SHOULD work...
Argon0
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
yeh, im getting the "hash version" error....currently backing up the g install to do an upgrade (gulp)
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
Bingo - 0.8.6h allows import with no errors...
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
Hope you find it helpful...
I'm just about to publish my first script/graph templates which I've put together for a Virtualisation project - to identify Virtualisation Candidates from out Windows Farm.... If you are interested!
Argon0
I'm just about to publish my first script/graph templates which I've put together for a Virtualisation project - to identify Virtualisation Candidates from out Windows Farm.... If you are interested!
Argon0
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
Almost there....
on the graph management part and i'm picking the 4 cpu entries to be graphed, but i'm getting the following message?
on the graph management part and i'm picking the 4 cpu entries to be graphed, but i'm getting the following message?
and if i go back into the "edit" screen, its lost the 4 cpu parts i've selected and reset it to "none" on each of them...RRDTool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-108000 \
--end=-300 \
--title="Multi CPU Utilization on Terminal Server for India NETEHTERM01a" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12:c:\winnt\fonts\tahoma.ttf \
--font AXIS:8:c:\winnt\fonts\tahoma.ttf \
--font LEGEND:10:c:\winnt\fonts\tahoma.ttf \
--font UNIT:8:c:\winnt\fonts\tahoma.ttf \
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:#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 %%\n"
RRDTool Says:
ERROR: invalid rpn expression in: a,b,+,c,+,d,+,4,/
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
Yes that'd be why!!!
I you look at the code you'll see that the rrd's to use are not defined anywhere!
A slight issue may be that I'm running on Linux, you're running on win2k...
But it should work, I'm only using standard Cacti functionality not Linux Specific....
Do you have the graphs of the individual CPUs?
Do you click save after choosing the CPUs?
Argon0
I you look at the code you'll see that the rrd's to use are not defined anywhere!
A slight issue may be that I'm running on Linux, you're running on win2k...
But it should work, I'm only using standard Cacti functionality not Linux Specific....
Do you have the graphs of the individual CPUs?
Do you click save after choosing the CPUs?
Argon0
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
yeh, the 4 seperate graphs for the cpu's are fine - got about 3-4 weeks worth of data on them:
Pic 1 - screenshot of Graph Management for the server...
Pic 2 - info on one of the CPU graphs...
Cheers in advance for your help on this btw
Pic 1 - screenshot of Graph Management for the server...
Pic 2 - info on one of the CPU graphs...
Cheers in advance for your help on this btw
- Attachments
-
- 1.jpg (101.91 KiB) Viewed 17538 times
-
- 2.jpg (147.08 KiB) Viewed 17538 times
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
Who is online
Users browsing this forum: No registered users and 1 guest