Merge pull request #2854 from laf/issue-2810

Added Lexmark printer support
This commit is contained in:
Daniel Preussker
2016-01-26 05:39:21 +00:00
4 changed files with 18 additions and 0 deletions

BIN
html/images/os/lexmark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -1178,6 +1178,14 @@ $config['os'][$os]['type'] = 'printer';
$config['os'][$os]['over'][0]['graph'] = 'device_toner';
$config['os'][$os]['over'][0]['text'] = 'Toner';
$os ='lexmarkprinter';
$config['os'][$os]['group'] = 'printer';
$config['os'][$os]['text'] = 'Lexmark Printer';
$config['os'][$os]['type'] = 'printer';
$config['os'][$os]['icon'] = 'lexmark';
$config['os'][$os]['over'][0]['graph'] = 'device_toner';
$config['os'][$os]['over'][0]['text'] = 'Toner';
$os = '3com';
$config['os'][$os]['text'] = '3Com';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';

View File

@@ -0,0 +1,6 @@
<?php
if (!$os) {
if (strstr($sysDescr, 'Lexmark ')) {
$os = 'lexmarkprinter';
}
}

View File

@@ -0,0 +1,4 @@
<?php
preg_match('/^Lexmark ([a-zA-Z0-9]+) version/', $poll_device['sysDescr'], $result);
$hardware = $result[1];