mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
OS Detection for Mobileiron Core, Sentry appliances (#11510)
* Detection for MobileIron appliances * Test data * Remove references for GANDI-MIB Turns out these aren't actually needed for Linux-likes * Remove module filters
This commit is contained in:
BIN
html/images/os/mobileiron.png
Executable file
BIN
html/images/os/mobileiron.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
14
includes/definitions/mobileiron.yaml
Normal file
14
includes/definitions/mobileiron.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
os: mobileiron
|
||||||
|
type: appliance
|
||||||
|
group: unix
|
||||||
|
text: MobileIron
|
||||||
|
ifXmcbc: true
|
||||||
|
ifname: true
|
||||||
|
mib_dir:
|
||||||
|
- supermicro
|
||||||
|
- dell
|
||||||
|
over:
|
||||||
|
- { graph: device_processor, text: 'Processor Usage' }
|
||||||
|
- { graph: device_ucd_memory, text: 'Memory Usage' }
|
||||||
|
- { graph: device_storage, text: 'Storage Usage' }
|
||||||
|
processor_stacked: true
|
10
includes/discovery/os/mobileiron.inc.php
Normal file
10
includes/discovery/os/mobileiron.inc.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
|
// At ths time, MI don't make any customisations to the tree, so we just detect their packages
|
||||||
|
if (Str::startsWith($device['sysDescr'], 'Linux') && Str::startsWith($device['sysObjectID'], '.1.3.6.1.4.1.8072.3.2.10')) {
|
||||||
|
if (Str::contains(snmp_walk($device, 'hrSWInstalledName', '-Osqnv', 'HOST-RESOURCES-MIB'), 'mobileiron')) {
|
||||||
|
$os = 'mobileiron';
|
||||||
|
}
|
||||||
|
}
|
1207
tests/data/mobileiron_core.json
Normal file
1207
tests/data/mobileiron_core.json
Normal file
File diff suppressed because it is too large
Load Diff
1129
tests/data/mobileiron_sentry.json
Normal file
1129
tests/data/mobileiron_sentry.json
Normal file
File diff suppressed because it is too large
Load Diff
1424
tests/snmpsim/mobileiron_core.snmprec
Normal file
1424
tests/snmpsim/mobileiron_core.snmprec
Normal file
File diff suppressed because it is too large
Load Diff
1052
tests/snmpsim/mobileiron_sentry.snmprec
Normal file
1052
tests/snmpsim/mobileiron_sentry.snmprec
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user