mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add support for Illustra network cameras (#10721)
* Create illustra.yaml * Create illustra.inc.php * Add illustra.png * Add illustra.png * Create illustra.snmprec * Create illustra.json
This commit is contained in:
committed by
Tony Murray
parent
caaa6a97bc
commit
48d4273267
BIN
html/images/logos/illustra.png
Normal file
BIN
html/images/logos/illustra.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
html/images/os/illustra.png
Normal file
BIN
html/images/os/illustra.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
8
includes/definitions/illustra.yaml
Normal file
8
includes/definitions/illustra.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
os: illustra
|
||||
text: 'Illustra Network Camera'
|
||||
type: network
|
||||
icon: illustra
|
||||
group: illustra
|
||||
discovery:
|
||||
- sysDescr:
|
||||
- 'illustra'
|
24
includes/polling/os/illustra.inc.php
Normal file
24
includes/polling/os/illustra.inc.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2014 Neil Lathwood <https://github.com/laf/ http://www.lathwood.co.uk/fa>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
$data1 = explode(' ', $device['sysDescr']);
|
||||
|
||||
if (isset($data1[1])) {
|
||||
$hardware = $data1[1];
|
||||
}
|
||||
|
||||
if (isset($data1[5])) {
|
||||
$data2 = explode('.', $data1[5]);
|
||||
$version = $data2[1].".".$data2[2].".".$data2[3].".".$data2[4];
|
||||
}
|
40
tests/data/illustra.json
Normal file
40
tests/data/illustra.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
|
||||
"sysDescr": "illustra IFS03D1OCWIT Network camera 05-27-2019 Illustra.SS004.01.06.05.0026",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "illustra",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "illustra.png",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
|
||||
"sysDescr": "illustra IFS03D1OCWIT Network camera 05-27-2019 Illustra.SS004.01.06.05.0026",
|
||||
"sysContact": "<private>",
|
||||
"version": "SS004.01.06.05",
|
||||
"hardware": "IFS03D1OCWIT",
|
||||
"features": null,
|
||||
"os": "illustra",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "illustra.png",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
38
tests/snmpsim/illustra.snmprec
Normal file
38
tests/snmpsim/illustra.snmprec
Normal file
@@ -0,0 +1,38 @@
|
||||
1.3.6.1.2.1.1.1.0|4|illustra IFS03D1OCWIT Network camera 05-27-2019 Illustra.SS004.01.06.05.0026
|
||||
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.8072.3.2.10
|
||||
1.3.6.1.2.1.1.3.0|67|147206114
|
||||
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.2.1.11.1.0|65|152803
|
||||
1.3.6.1.2.1.11.2.0|65|152783
|
||||
1.3.6.1.2.1.11.3.0|65|0
|
||||
1.3.6.1.2.1.11.4.0|65|0
|
||||
1.3.6.1.2.1.11.5.0|65|0
|
||||
1.3.6.1.2.1.11.6.0|65|0
|
||||
1.3.6.1.2.1.11.8.0|65|0
|
||||
1.3.6.1.2.1.11.9.0|65|0
|
||||
1.3.6.1.2.1.11.10.0|65|0
|
||||
1.3.6.1.2.1.11.11.0|65|0
|
||||
1.3.6.1.2.1.11.12.0|65|0
|
||||
1.3.6.1.2.1.11.13.0|65|873628
|
||||
1.3.6.1.2.1.11.14.0|65|0
|
||||
1.3.6.1.2.1.11.15.0|65|76980
|
||||
1.3.6.1.2.1.11.16.0|65|19718
|
||||
1.3.6.1.2.1.11.17.0|65|0
|
||||
1.3.6.1.2.1.11.18.0|65|0
|
||||
1.3.6.1.2.1.11.19.0|65|0
|
||||
1.3.6.1.2.1.11.20.0|65|0
|
||||
1.3.6.1.2.1.11.21.0|65|0
|
||||
1.3.6.1.2.1.11.22.0|65|0
|
||||
1.3.6.1.2.1.11.24.0|65|0
|
||||
1.3.6.1.2.1.11.25.0|65|0
|
||||
1.3.6.1.2.1.11.26.0|65|0
|
||||
1.3.6.1.2.1.11.27.0|65|0
|
||||
1.3.6.1.2.1.11.28.0|65|152783
|
||||
1.3.6.1.2.1.11.29.0|65|0
|
||||
1.3.6.1.2.1.11.30.0|2|1
|
||||
1.3.6.1.2.1.11.31.0|65|0
|
||||
1.3.6.1.2.1.11.32.0|65|0
|
||||
1.3.6.1.2.1.88.1.1.1.0|2|1
|
||||
1.3.6.1.6.3.10.2.1.3.0|2|1472061
|
Reference in New Issue
Block a user