git-svn-id: http://www.observium.org/svn/observer/trunk@140 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-03-12 16:21:13 +00:00
parent 544180decc
commit 7b46376616
6 changed files with 26 additions and 11 deletions

View File

@@ -168,7 +168,7 @@ function interface_rates ($interface) {
function interface_errors ($interface) {
global $config;
global $config, $rrd_dir;
$rrdfile = $rrd_dir . "/" . $interface['hostname'] . "/" . $interface['ifIndex'] . ".rrd";
$cmd = $config['rrdtool']." fetch -s -1d -e -300s $rrdfile AVERAGE | grep : | cut -d\" \" -f 4,5";
$data = trim(`$cmd`);