2010-07-23 01:20:15 +00:00
|
|
|
<?php
|
|
|
|
|
2011-05-04 11:04:19 +00:00
|
|
|
|
2010-07-29 18:25:11 +00:00
|
|
|
|
2010-07-23 01:20:15 +00:00
|
|
|
### Force10 E-Series
|
|
|
|
|
|
|
|
#F10-CHASSIS-MIB::chSysCardType.1 = INTEGER: rpmCardEF3(206)
|
|
|
|
#F10-CHASSIS-MIB::chSysCardType.3 = INTEGER: lc2401E24PG3(69)
|
|
|
|
#F10-CHASSIS-MIB::chSysCardType.4 = INTEGER: lc2401E24PG3(69)
|
|
|
|
#F10-CHASSIS-MIB::chSysCardUpperTemp.1 = Gauge32: 34
|
|
|
|
#F10-CHASSIS-MIB::chSysCardUpperTemp.3 = Gauge32: 34
|
|
|
|
#F10-CHASSIS-MIB::chSysCardUpperTemp.4 = Gauge32: 34
|
|
|
|
|
2011-03-15 09:57:13 +00:00
|
|
|
if ($device['os'] == "ftos" || $device['os_group'] == "ftos")
|
2010-07-23 01:20:15 +00:00
|
|
|
{
|
|
|
|
echo("FTOS E-Series ");
|
|
|
|
|
|
|
|
$oids = snmpwalk_cache_oid($device, "chSysCardUpperTemp", array(), "F10-CHASSIS-MIB", $config['mib_dir'].":".$config['mib_dir']."/ftos" );
|
|
|
|
|
2011-03-15 09:57:13 +00:00
|
|
|
if (is_array($oids))
|
2010-07-23 01:20:15 +00:00
|
|
|
{
|
2011-03-15 09:57:13 +00:00
|
|
|
foreach ($oids as $index => $entry)
|
2010-07-23 01:20:15 +00:00
|
|
|
{
|
|
|
|
$descr = "Slot ".$index;
|
|
|
|
$oid = ".1.3.6.1.4.1.6027.3.1.1.2.3.1.8.".$index;
|
|
|
|
$current = $entry['chSysCardUpperTemp'];
|
2011-03-15 09:57:13 +00:00
|
|
|
|
2011-05-04 11:04:19 +00:00
|
|
|
discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, 'ftos-eseries', $descr, '1', '1', NULL, NULL, NULL, NULL, $current);
|
2010-07-23 01:20:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unset($oids);
|
|
|
|
}
|
|
|
|
|
2011-03-15 09:57:13 +00:00
|
|
|
?>
|