remove support for GIF OS-icons, but add support to override OS icon through database, suitable for radlan devices and probably/possibly other OEMables

git-svn-id: http://www.observium.org/svn/observer/trunk@3087 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-24 22:50:15 +00:00
parent 7c36b0f9c2
commit b56d3d6320
5 changed files with 28 additions and 18 deletions
+6
View File
@@ -39,6 +39,12 @@ if ($serial && $serial != $device['serial'])
log_event("Serial -> ".$serial, $device, 'system');
}
if ($icon && $icon != $device['icon'])
{
$update_array['icon'] = $icon;
log_event("Icon -> ".nicecase($icon), $device, 'system');
}
echo("\nHardware: ".$hardware." Version: ".$version." Features: ".$features." Serial: ".$serial."\n");
?>
+2
View File
@@ -5,11 +5,13 @@ if ($poll_device['sysDescr'] == "Neyland 24T")
#$hardware = snmp_get($device, "productIdentificationVendor.0", "-Ovq", "Dell-Vendor-MIB");
$hardware = "Dell ".snmp_get($device, "productIdentificationDisplayName.0", "-Ovq", "Dell-Vendor-MIB");
$version = snmp_get($device, "productIdentificationVersion.0", "-Ovq", "Dell-Vendor-MIB");
$icon = 'dell';
}
else
{
$version = snmp_get($device, "rndBrgVersion.0", "-Ovq", "RADLAN-MIB");
$hardware = str_replace("ATI", "Allied Telesis", $poll_device['sysDescr']);
$icon = 'allied';
}
$features = snmp_get($device, "rndBaseBootVersion.00", "-Ovq", "RADLAN-MIB");