Files
cacti/scripts/loadavg_multi.pl
T
Ian Berry dea7a01740 load averages above '10' where not being recognized (bug#131)
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1496 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-01-31 23:49:46 +00:00

11 lines
236 B
Perl

#!/usr/bin/perl
#get load avg for 1;5;10 min
$avg = `uptime`;
# 9:36pm up 15 days, 11:37, 2 users, load average: 0.14, 0.13, 0.10
$avg =~ s/^.*:\s(\d+\.\d{2}),\s(\d+\.\d{2}),\s(\d+\.\d{2})$//;
print "1min:$1 5min:$2 10min:$3";