diff --git a/includes/discovery/sensors/temperatures/ibm-amm.inc.php b/includes/discovery/sensors/temperatures/ibm-amm.inc.php index af5c020e83..45becf70e7 100644 --- a/includes/discovery/sensors/temperatures/ibm-amm.inc.php +++ b/includes/discovery/sensors/temperatures/ibm-amm.inc.php @@ -12,7 +12,7 @@ if ($device['os'] == 'ibm-amm') { $oid = 'BLADE-MIB::mmTemp.0'; - $mmtemp = snmp_get($device, $oid, '-OsqnU'); + $mmtemp = snmp_get($device, $oid, '-Oqv'); preg_match('/[\d\.]+/', $mmtemp, $temp_response); if (!empty($temp_response[0])) { @@ -29,7 +29,7 @@ if ($device['os'] == 'ibm-amm') { } $oid = 'BLADE-MIB::frontPanelTemp.0'; - $fptemp = snmp_get($device, $oid, '-OsqnU'); + $fptemp = snmp_get($device, $oid, '-Oqv'); preg_match('/[\d\.]+/', $fptemp, $temp_response); if (!empty($temp_response[0])) { diff --git a/validate.php b/validate.php index 9efdb54b59..65ebe89565 100755 --- a/validate.php +++ b/validate.php @@ -76,8 +76,7 @@ $versions = version_info(); echo "Version info:\n"; $cur_sha = $versions['local_sha']; if ($config['update_channel'] == 'master' && $cur_sha != $versions['github']['sha']) { - $commit_date = new DateTime($versions['local_date']); - $commit_date->setTimezone(new DateTimeZone(date_default_timezone_get())); + $commit_date = new DateTime($versions['local_date'], new DateTimeZone(date_default_timezone_get())); print_warn("Your install is out of date: $cur_sha " . $commit_date->format('(r)')); } else {