mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-15 00:14:25 +02:00
git-svn-id: http://www.observium.org/svn/observer/trunk@1461 61d68cd4-352d-0410-923a-c4978735b2b8
39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
<?php
|
|
|
|
### 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
|
|
|
|
global $valid_temp;
|
|
|
|
if ($device['os'] == "ftos" || $device['os_group'] == "ftos")
|
|
{
|
|
echo("FTOS E-Series ");
|
|
|
|
$oids = snmpwalk_cache_oid($device, "chSysCardUpperTemp", array(), "F10-CHASSIS-MIB", $config['mib_dir'].":".$config['mib_dir']."/ftos" );
|
|
|
|
if(is_array($oids[$device['device_id']]))
|
|
{
|
|
foreach($oids[$device['device_id']] as $index => $entry)
|
|
{
|
|
|
|
$descr = "Slot ".$index;
|
|
$oid = ".1.3.6.1.4.1.6027.3.1.1.2.3.1.8.".$index;
|
|
$current = $entry['chSysCardUpperTemp'];
|
|
|
|
discover_temperature($valid_temp, $device, $oid, $index, "ftos-eseries", $descr, "1", NULL, NULL, $current);
|
|
}
|
|
}
|
|
|
|
unset($oids);
|
|
|
|
}
|
|
|
|
|
|
?>
|