mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
improve ADSL stats collection
git-svn-id: http://www.observium.org/svn/observer/trunk@1469 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -101,7 +101,9 @@
|
||||
$rrdupdate = "N";
|
||||
foreach($adsl_oids as $oid) {
|
||||
$oid = "adsl".$oid;
|
||||
$data = str_replace("\"", "", $this_port[$oid]) + 0;
|
||||
$data = str_replace("\"", "", $this_port[$oid]);
|
||||
## Set data to be "unknown" if it's garbled, unexistant or zero
|
||||
if(!is_numeric($data) || $data == "0") { $data = "-1"; }
|
||||
$rrdupdate .= ":$data";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user