Merge pull request #3224 from Rosiak/issue-3029

Basic Develop Ineo Printer Support
This commit is contained in:
Neil Lathwood
2016-03-15 10:01:33 +00:00
4 changed files with 36 additions and 0 deletions

BIN
html/images/os/develop.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -1236,6 +1236,14 @@ $config['os'][$os]['icon'] = 'lexmark';
$config['os'][$os]['over'][0]['graph'] = 'device_toner';
$config['os'][$os]['over'][0]['text'] = 'Toner';
$os ='developprinter';
$config['os'][$os]['group'] = 'printer';
$config['os'][$os]['text'] = 'Develop Printer';
$config['os'][$os]['type'] = 'printer';
$config['os'][$os]['icon'] = 'develop';
$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,16 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
if(!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.18334.1.2.1.2.1.50.2.2')) {
$os = 'developprinter';
}
}

View File

@@ -0,0 +1,12 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
$hardware = str_replace("Develop ","",$poll_device['sysDescr']);