mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
device: Added feature to support Sharp printers
This commit is contained in:
BIN
html/images/os/sharp.png
Normal file
BIN
html/images/os/sharp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 592 B |
@@ -1538,6 +1538,14 @@ $config['os'][$os]['icon'] = 'ricoh';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_toner';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Toner';
|
||||
|
||||
$os = 'sharpprinter';
|
||||
$config['os'][$os]['group'] = 'printer';
|
||||
$config['os'][$os]['text'] = 'Sharp Printer';
|
||||
$config['os'][$os]['type'] = 'printer';
|
||||
$config['os'][$os]['icon'] = 'sharp';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_toner';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Toner';
|
||||
|
||||
// lanier is a rebadged ricoh
|
||||
$os = 'lanier';
|
||||
$config['os'][$os]['group'] = 'printer';
|
||||
|
||||
7
includes/discovery/os/sharpprinter.inc.php
Normal file
7
includes/discovery/os/sharpprinter.inc.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if (!$os) {
|
||||
// Sharp Multifunction Printer/Scanner
|
||||
if (strstr($sysDescr, 'SHARP MX-')) {
|
||||
$os = 'sharpprinter';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user