newdevice: Savin printer support (#6982)

Toner supply levels supported
This commit is contained in:
Tony Murray
2017-07-12 02:16:05 -05:00
committed by Neil Lathwood
parent 5bc2444499
commit 282e4b77a5
4 changed files with 46 additions and 0 deletions

1
html/images/os/savin.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 167.19499 38.31506"><path d="M155.394 9.835v28.48h11.8V3.59s0-3.592-3.59-3.592H132.9v38.314h12.4V9.834zM127.514 0h-12.4v38.314h12.4zM97.58 38.314s1.71 0 2.395-1.453L113.83 0h-12.485L91.17 28.822V.685A.677.677 0 0 0 90.482 0H79.877c-.428 0-.684.342-.684 1.368v36.946zM61.49 28.822H51.484v-5.475h9.92zM74.062 5.046a4.964 4.964 0 0 0-4.96-4.96L39.255 0v8.895h22.15v5.9l-17.532-.17a4.965 4.965 0 0 0-4.96 4.96v13.77a4.964 4.964 0 0 0 4.96 4.96h30.19zM.512 28.736H21.81v-5.39H4.96A4.963 4.963 0 0 1 0 18.387V4.962A4.963 4.963 0 0 1 4.96 0h28.137v8.896H12.144v5.73h16.59a4.964 4.964 0 0 1 4.96 4.96v13.768a4.963 4.963 0 0 1-4.96 4.96H.515z" clip-rule="evenodd" fill="#255398" fill-rule="evenodd"/></svg>

After

Width:  |  Height:  |  Size: 751 B

View File

@@ -0,0 +1,15 @@
os: savin
group: printer
text: 'Savin Printer'
type: printer
icon: savin
over:
- { graph: device_toner, text: Toner }
discovery:
- sysDescr:
- SAVIN
discovery_modules:
toner: 1
poller_modules:
toner: 1

View File

@@ -0,0 +1,28 @@
<?php
/**
* savin.inc.php
*
* -Description-
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2017 Tony Murray
* @author Tony Murray <murraytony@gmail.com>
*/
$hardware = trim(snmp_get($device, '1.3.6.1.4.1.367.3.2.1.1.1.1.0', '-OQv', '', ''), '" ');
$version = trim(snmp_get($device, '1.3.6.1.4.1.367.3.2.1.1.1.2.0', '-OQv', '', ''), '" ');
$serial = trim(snmp_get($device, '1.3.6.1.4.1.367.3.2.1.2.1.4.0', '-OQv', '', ''), '" ');

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|SAVIN MP C4503 1.18 / SAVIN Network Printer C model / SAVIN Network Scanner C model
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.367.1.1