mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@140 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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`);
|
||||
|
Reference in New Issue
Block a user