Re: Graphing System Load MRTG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



>> I check system load like so:
>>
>> [root@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?
>
> Wrote this simple perl script:
>
> #!/usr/bin/perl -w
>
> my $uptime = `uptime`;
> my $load = ( split /load/, $uptime )[1];
> $load = ( split /,/, $load )[1];
> chomp $load;
> print "$load\n";

Isn't that a bit overkill?

cut -d"" -f2 /proc/loadavg

> It spits out 5 minute load average.  Would like to just have MRTG
> graph the result every 5 minutes.

Alexander


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux