mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix for php5.3 in sentry3 discovery file
This commit is contained in:
@@ -6,7 +6,7 @@ if (!$os) {
|
|||||||
// ServerTech doesn't have a way to distinguish between sentry3 and sentry4 devices
|
// ServerTech doesn't have a way to distinguish between sentry3 and sentry4 devices
|
||||||
// Hopefully, we can use the version string to figure it out
|
// Hopefully, we can use the version string to figure it out
|
||||||
$version = trim(snmp_get($device, 'Sentry3-MIB::serverTech.4.1.1.1.3.0', '-Osqnv'));
|
$version = trim(snmp_get($device, 'Sentry3-MIB::serverTech.4.1.1.1.3.0', '-Osqnv'));
|
||||||
$version = explode(" ", $version)[1];
|
$version = explode(" ", $version, 1);
|
||||||
$version = intval($version);
|
$version = intval($version);
|
||||||
|
|
||||||
// It appears that version 8 and up is good for sentry4
|
// It appears that version 8 and up is good for sentry4
|
||||||
|
Reference in New Issue
Block a user