basic dell laserprinter support

git-svn-id: http://www.observium.org/svn/observer/trunk@736 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-28 17:27:02 +00:00
parent fe4db767c9
commit 5f82d33ff8
5 changed files with 21 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ Create includes/polling/device-$osname.inc.php, for device specific polling.
Create html/pages/device/graphs/os-$osname.inc.php to display a custom graph
set for this device type.
Add an OS text name in includes/static-config.php
If desired, create a 32x32 logo, in html/images/os/$osname.png.
When tested and satisfied, please submit a patch to the development team! ;-)

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,10 @@
<?php
if(!$os) {
if(strstr($sysDescr, "Dell Color Laser")) { $os = "dell-laser"; }
elseif(strstr($sysDescr, "Dell Laser Printer")) { $os = "dell-laser"; }
}
?>

View File

@@ -0,0 +1,8 @@
<?php
$hardware = trim(exec($config['snmpget'] . " -O Qv -" . $device['snmpver'] . " -c " . $device['community'] . " " .
$device['hostname'].":".$device['port'] . " hrDeviceDescr.1"));
list(,$version) = split('Engine ',$sysDescr);
$version = "Engine " . trim($version,')');
?>

View File

@@ -45,6 +45,7 @@ $os_text['windows'] = "Microsoft Windows";
$os_text['junos'] = "Juniper JunOS";
$os_text['procurve'] = "HP ProCurve";
$os_text['speedtouch'] = "Thomson Speedtouch";
$os_text['dell-laser'] = "Dell Laser Printer";
if(!$config['graph_colours']['greens']) {
$config['graph_colours']['greens'] = array('B6D14B','91B13C','6D912D','48721E','24520F','003300');