mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
vastly improved entity-sensors and cisco-entity-sensors speed. improved entity-mib inventory. removed device_id element from oid caches. add min/max ranges to sensor graphs.
git-svn-id: http://www.observium.org/svn/observer/trunk@1669 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -29,8 +29,8 @@ if($device[os] != "Snom") {
|
||||
$rrdupdate = "N";
|
||||
|
||||
foreach($oids as $oid){
|
||||
if(is_numeric($data_array[$device['device_id']][0][$oid])) {
|
||||
$value = $data_array[$device['device_id']][0][$oid];
|
||||
if(is_numeric($data_array[0][$oid])) {
|
||||
$value = $data_array[0][$oid];
|
||||
} else {
|
||||
$value = "0";
|
||||
}
|
||||
@@ -39,7 +39,7 @@ if($device[os] != "Snom") {
|
||||
|
||||
unset($snmpstring);
|
||||
|
||||
if(isset($data_array[$device['device_id']][0]['icmpInMsgs']) && isset($data_array[$device['device_id']][0]['icmpOutMsgs'])) {
|
||||
if(isset($data_array[0]['icmpInMsgs']) && isset($data_array[0]['icmpOutMsgs'])) {
|
||||
if(!file_exists($rrd_file)) { rrdtool_create($rrd_file, $rrd_create); }
|
||||
rrdtool_update($rrd_file, $rrdupdate);
|
||||
$graphs['netstat_icmp'] = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user