mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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! ;-)
|
||||
|
||||
BIN
html/images/os/dell-laser.png
Normal file
BIN
html/images/os/dell-laser.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
10
includes/osdiscovery/discover-dell-laser.php
Normal file
10
includes/osdiscovery/discover-dell-laser.php
Normal 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"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
8
includes/polling/device-dell-laser.inc.php
Normal file
8
includes/polling/device-dell-laser.inc.php
Normal 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,')');
|
||||
?>
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user