mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Add model for Christie Digital projectors (#15088)
This commit is contained in:
parent
584768549a
commit
f9ef5fe3fe
BIN
html/images/os/christie.png
Normal file
BIN
html/images/os/christie.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
8
includes/definitions/christie-projector.yaml
Normal file
8
includes/definitions/christie-projector.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
os: christie-projector
|
||||||
|
text: 'Christie Projector'
|
||||||
|
type: collaboration
|
||||||
|
icon: christie
|
||||||
|
group: christie
|
||||||
|
discovery:
|
||||||
|
- sysObjectID:
|
||||||
|
- '.1.3.6.1.4.1.25766.'
|
5
includes/definitions/discovery/christie-projector.yaml
Normal file
5
includes/definitions/discovery/christie-projector.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
modules:
|
||||||
|
os:
|
||||||
|
hardware: .1.3.6.1.4.1.25766.1.12.1.1.2.1.0
|
||||||
|
version: .1.3.6.1.4.1.25766.1.12.1.1.2.7.0
|
||||||
|
serial: .1.3.6.1.4.1.25766.1.12.1.1.2.4.0
|
37
includes/discovery/sensors/count/christie-projector.inc.php
Normal file
37
includes/discovery/sensors/count/christie-projector.inc.php
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* LibreNMS
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
* @package LibreNMS
|
||||||
|
* @subpackage webui
|
||||||
|
* @link http://librenms.org
|
||||||
|
* @copyright 2023 LibreNMS
|
||||||
|
* @author LibreNMS Contributors
|
||||||
|
*/
|
||||||
|
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
|
if (Str::startsWith($device['sysObjectID'], '.1.3.6.1.4.1.25766')) {
|
||||||
|
discover_sensor(
|
||||||
|
$valid['sensor'],
|
||||||
|
'count',
|
||||||
|
$device,
|
||||||
|
'.1.3.6.1.4.1.25766.1.12.1.1.3.5.1.6.1',
|
||||||
|
0,
|
||||||
|
'christie-projector',
|
||||||
|
'Lamp Hours',
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
snmp_get($device, '.1.3.6.1.4.1.25766.1.12.1.1.3.5.1.6.1', '-Ovq')
|
||||||
|
);
|
||||||
|
}
|
10
tests/snmpsim/christie-projector_cp.snmprec
Normal file
10
tests/snmpsim/christie-projector_cp.snmprec
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
1.3.6.1.2.1.1.1.0|4|Solaria
|
||||||
|
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.25766.1.12.1.4
|
||||||
|
1.3.6.1.2.1.1.3.0|67|40880396
|
||||||
|
1.3.6.1.2.1.1.4.0|4|<private>
|
||||||
|
1.3.6.1.2.1.1.5.0|4|<private>
|
||||||
|
1.3.6.1.2.1.1.6.0|4|<private>
|
||||||
|
1.3.6.1.4.1.25766.1.12.1.1.2.1.0|4|<private>
|
||||||
|
1.3.6.1.4.1.25766.1.12.1.1.2.4.0|4|<private>
|
||||||
|
1.3.6.1.4.1.25766.1.12.1.1.2.7.0|4|4.8.1.3
|
||||||
|
1.3.6.1.4.1.25766.1.12.1.1.3.5.1.6.1|2|3475
|
Loading…
Reference in New Issue
Block a user