ImageStream Technical Support Forum Index ImageStream Technical Support Forum
for ImageStream Routers
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cacti

 
Post new topic   Reply to topic    ImageStream Technical Support Forum Index -> SNMP
View previous topic :: View next topic  
Author Message
SteveK



Joined: 23 May 2008
Posts: 32

PostPosted: Fri Sep 19, 2008 1:33 pm    Post subject: Cacti Reply with quote

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
View user's profile Send private message
rjune



Joined: 22 May 2008
Posts: 22

PostPosted: Mon Dec 01, 2008 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
SteveK



Joined: 23 May 2008
Posts: 32

PostPosted: Thu Dec 11, 2008 5:05 pm    Post subject: Reply with quote

So I need to shift a decimal in my cacti template? That is MRTG, which I am not using for the imagestreams.. Smile
Back to top
View user's profile Send private message
rjune



Joined: 22 May 2008
Posts: 22

PostPosted: Thu Dec 11, 2008 5:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ImageStream Technical Support Forum Index -> SNMP All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.22-3 (Debian) © 2001, 2005 phpBB Group