[CentOS] Graphing System Load MRTG
Jobst Schmalenbach
jobst at barrett.com.au
Fri Jan 7 01:05:07 UTC 2011
I understand that, but here are some points why I chose my post:
1: not sure about the persons knowledge re snmp
2: dont know the guys hardware and packages installed
3: seeing uptime and uname explains other parts of the MRTG system, i.e. required return values of the scripts
4: portabilty
5: most of the time server are cruising below their capacity, adding a few more cycles because calling scripts etc does not really matter
Jobst
On Thu, Jan 06, 2011 at 04:58:50AM -0800, Benjamin Franz (jfranz at freerun.com) wrote:
> On 01/05/2011 09:33 PM, Jobst Schmalenbach wrote:
> > On Tue, Dec 21, 2010 at 10:09:30AM -0600, Matt (lm7812 at gmail.com) wrote:
> >> I check system load like so:
> >>
> >> [root at server cron.daily]# w
> >> 10:07:33 up 4 days, 15:01, 2 users, load average: 4.22, 3.17, 3.09
> >>
> >> I would like to to graph the 3.17 5 minute average with MRTG. Anyone
> >> know of some examples of doing this?
> > Make yourself a script, include this:
>
> [...]
>
> That is doing it the hard way. Use scripts only if there isn't an OID
> for what you want.
>
> Target[hostname_load]: laLoadInt.2&laLoadInt.2:community at host:::::2
> RouterUptime[hostname_load]: community at host:::::2
> MaxBytes[hostname_load]: 30000
> Title[hostname_load]: System Load
> Factor[hostname_load]: 0.01
> YTicsFactor[hostname_load]: 0.01
> YLegend[hostname_load]: System Load
> Legend1[hostname_load]: Load
> Legend2[hostname_load]:
> Legend3[hostname_load]:
> Legend4[hostname_load]:
> LegendI[hostname_load]: Load
> LegendO[hostname_load]:
> ShortLegend[hostname_load]: load
> Options[hostname_load]: gauge,growright,nopercent
> Directory[hostname_load]: hostname
>
> Make sure you load the correct MIB otherwise you might have to use the
> OID instead of the symbolic name.
>
> LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
>
> --
> Benjamin Franz
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
--
<Hoju> Keyboard solo! skskskskskskskskskskskskskskskskskskskskksksksksks
| |0| | Jobst Schmalenbach, jobst at barrett.com.au, General Manager
| | |0| Barrett Consulting Group P/L & The Meditation Room P/L
|0|0|0| +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
More information about the CentOS
mailing list