2010-07-23 01:20:15 +00:00
|
|
|
<?php
|
|
|
|
|
2010-07-29 18:25:11 +00:00
|
|
|
global $valid_sensor;
|
|
|
|
|
2010-07-23 01:20:15 +00:00
|
|
|
### Force10 C-Series
|
|
|
|
|
|
|
|
#F10-C-SERIES-CHASSIS-MIB::chSysCardType.1 = INTEGER: lc4802E48TB(1024)
|
|
|
|
#F10-C-SERIES-CHASSIS-MIB::chSysCardType.2 = INTEGER: lc0810EX8PB(2049)
|
|
|
|
#F10-C-SERIES-CHASSIS-MIB::chSysCardTemp.1 = Gauge32: 25
|
|
|
|
#F10-C-SERIES-CHASSIS-MIB::chSysCardTemp.2 = Gauge32: 26
|
|
|
|
|
|
|
|
if ($device['os'] == "ftos" || $device['os_group'] == "ftos")
|
|
|
|
{
|
|
|
|
echo("FTOS C-Series ");
|
|
|
|
|
|
|
|
$oids = snmpwalk_cache_oid($device, "chSysCardTemp", array(), "F10-C-SERIES-CHASSIS-MIB", $config['mib_dir'].":".$config['mib_dir']."/ftos" );
|
|
|
|
|
2010-08-11 17:08:56 +00:00
|
|
|
if(is_array($oids))
|
2010-07-23 01:20:15 +00:00
|
|
|
{
|
2010-08-11 17:08:56 +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.8.1.2.1.1.5.".$index;
|
|
|
|
$current = $entry['chSysCardTemp'];
|
2010-07-29 18:25:11 +00:00
|
|
|
discover_sensor($valid_sensor, 'temperature', $device, $oid, $index, 'ftos-cseries', $descr, '1', '1', NULL, NULL, NULL, NULL, $current);
|
2010-07-23 01:20:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unset($oids);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|