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";

It spits out 5 minute load average.  Would like to just have MRTG
graph the result every 5 minutes.
_______________________________________________
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