Removed specified MIB file for ServerIron temperatures since the OID used is RAW

This commit is contained in:
Xavier Beaudouin
2016-03-01 10:46:00 +01:00
parent 760f1be055
commit 386ad101c6
@@ -1,7 +1,7 @@
<?php <?php
if ($device['os'] == 'serveriron') { if ($device['os'] == 'serveriron') {
echo(" FOUNDRY-SN-AGENT-MIB "); echo(" FOUNDRY-SN-AGENT-MIB");
// Chassis temperature (default) // Chassis temperature (default)
$high_limit = 110; $high_limit = 110;
@@ -11,15 +11,15 @@ if ($device['os'] == 'serveriron') {
$oid = "1.3.6.1.4.1.1991.1.1.1.1.18.0"; // snChasActualTemperature $oid = "1.3.6.1.4.1.1991.1.1.1.1.18.0"; // snChasActualTemperature
$warn_oid = "1.3.6.1.4.1.1991.1.1.1.1.19.0"; // snChasWarningTemperature $warn_oid = "1.3.6.1.4.1.1991.1.1.1.1.19.0"; // snChasWarningTemperature
$high_oid = "1.3.6.1.4.1.1991.1.1.1.1.20.0"; // snChasShutdownTemperature $high_oid = "1.3.6.1.4.1.1991.1.1.1.1.20.0"; // snChasShutdownTemperature
$value = snmp_get($device, $oid, '-Oqv', 'FOUNDRY-SN-AGENT-MIB'); $value = snmp_get($device, $oid, '-Oqv');
$value_warn = snmp_get($device, $warn_oid, '-Oqv', 'FOUNDRY-SN-AGENT-MIB'); $value_warn = snmp_get($device, $warn_oid, '-Oqv');
if (is_numeric($value_warn)) { if (is_numeric($value_warn)) {
$high_warn_limit = ($value_warn / 2); $high_warn_limit = ($value_warn / 2);
} }
$value_high = snmp_get($device, $high_oid, '-Oqv', 'FOUNDRY-SN-AGENT-MIB'); $value_high = snmp_get($device, $high_oid, '-Oqv');
if (is_numeric($value_high)) { if (is_numeric($value_high)) {
$high_limit = ($value_high / 2); $high_limit = ($value_high / 2);
} }