[CentOS] Graphing System Load MRTG

Thu Jan 6 12:58:50 UTC 2011
Benjamin Franz <jfranz at freerun.com>

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
LegendI[hostname_load]: 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