Files
librenms-librenms/includes/discovery/os/mobileiron.inc.php
Adam Bishop 3acbd72ab1 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
2020-05-24 15:53:17 -05:00

11 lines
403 B
PHP

<?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';
}
}