| View previous topic :: View next topic |
| Author |
Message |
SteveK
Joined: 23 May 2008 Posts: 32
|
Posted: Fri Sep 19, 2008 1:33 pm Post subject: Cacti |
|
|
I've got my imagestream routers graphing with Cacti. I just used the local linux machine template.
I am looking for a better way to graph the cpu usage. Anyone have any luck setting up a good graph that will show a % of CPU usage?
So far all I've been able to use it "load average" which doesn't really show me much. |
|
| Back to top |
|
 |
rjune

Joined: 22 May 2008 Posts: 22
|
Posted: Mon Dec 01, 2008 5:05 pm Post subject: |
|
|
You can get that, you need to have cacti do some math three or four snmp OIDs before graphing the result. Here's the relevant MRTG configuration.
| Code: | # ImageStream routers report cpu load * 10, so to properly graph it. we must shift the decimal place back to the right
Target[gw01_cpu]:(((ssCpuRawUser.0&ssCpuRawUser.0:public@205.159.243.1+ssCpuRawSystem.0&ssCpuRawSystem.0:public@205.159.243.1+ssCpuRawNice.0&ssCpuRawNice.0:public@205.159.243.1) * 1000)/((ssCpuRawUser.0&ssCpuRawUser.0:public@205.159.243.1+ssCpuRawSystem.0&ssCpuRawSystem.0:public@205.159.243.1+ssCpuRawNice.0&ssCpuRawNice.0:public@205.159.243.1+ssCpuRawIdle.0&ssCpuRawIdle.0:public@205.159.243.1)))
RouterUptime[gw01_cpu]: public@205.159.243.1
MaxBytes[gw01_cpu]: 10000
Title[gw01_cpu]: CPU Load
PageTop[gw01_cpu]: <H1>Active CPU Load %</H1>
#Unscaled[gw01_cpu]: ymwd
ShortLegend[gw01_cpu]: %
YLegend[gw01_cpu]: CPU Utilization
Legend1[gw01_cpu]: Active CPU in % (Load)
Legend2[gw01_cpu]:
Legend3[gw01_cpu]:
Legend4[gw01_cpu]:
LegendI[gw01_cpu]: Active
LegendO[gw01_cpu]:
Options[gw01_cpu]: growright,nopercent,noo
YTicsFactor[gw01_cpu]: .1
Factor[gw01_cpu]: .1
|
|
|
| Back to top |
|
 |
SteveK
Joined: 23 May 2008 Posts: 32
|
Posted: Thu Dec 11, 2008 5:05 pm Post subject: |
|
|
So I need to shift a decimal in my cacti template? That is MRTG, which I am not using for the imagestreams..  |
|
| Back to top |
|
 |
rjune

Joined: 22 May 2008 Posts: 22
|
Posted: Thu Dec 11, 2008 5:13 pm Post subject: |
|
|
Actually what we do is add the relevant cpu OIDs and multiply by 1000, then divide by all cpu OIDs. I stated it was the MRTG configuration, but can be used as a reference for cacti.
((ssCpuRawUser.0+ssCpuRawSystem.0+ssCpuRawNice.0) * 1000) /
((ssCpuRawUser.0+ssCpuRawSystem.0+ssCpuRawNice.0+ssCpuRawIdle.0)
that will give you the percentage of the CPU used. |
|
| Back to top |
|
 |
|