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:
Adam Amstrong
2010-08-11 17:08:56 +00:00
parent 5facf544d7
commit 0db6ad08ff
54 changed files with 262 additions and 159 deletions
+3 -3
View File
@@ -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;