Modification of the OS linux pooling to detect MobileIron appliance

Hi All,

I modify the “./includes/polling/os/unix.inc.php” file to detect the mobileiron appliance (it’s Linux server using centos).

Can you tel me how I can submit my modifications ?

Thanks,
Vincent
# Mobile Iron Appliance Detection
$softwares = snmp_walk($device, ‘hrSWInstalledName’, ‘-Osqnv’, ‘HOST-RESOURCES-MIB’);
if (str_contains($softwares, ‘mobileiron’)) {
$softwares = explode("\n", $softwares) ;
foreach ($softwares as $software) {
if (str_contains($software, ‘mobileiron-core-base’)) {
$version = str_replace(‘mobileiron-core-base’, ‘mobileiron-core’, $software) ;
$hardware = “MobileIron Core”;
break;
}
if (str_contains($software, ‘mi-mics’)) {
$version = str_replace(‘mi-mics’, ‘mobileiron-sentry’, $software) ;
$hardware = “MobileIron Sentry”;
break;
}
}
}

This doc should help you through the process:

http://docs.librenms.org/Developing/Using-Git/