Add temperature detection for Force10 E/C/S-Series

git-svn-id: http://www.observium.org/svn/observer/trunk@1461 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong 2010-07-23 01:20:15 +00:00
parent cecb27250f
commit 589a32fe94
3 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,38 @@
<?php
### 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
global $valid_temp;
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" );
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.8.1.2.1.1.5.".$index;
$current = $entry['chSysCardTemp'];
discover_temperature($valid_temp, $device, $oid, $index, "ftos-cseries", $descr, "1", NULL, NULL, $current);
}
}
unset($oids);
}
?>

View File

@ -0,0 +1,38 @@
<?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);
}
?>

View File

@ -0,0 +1,36 @@
<?php
### Force10 S-Series
#F10-S-SERIES-CHASSIS-MIB::chStackUnitTemp.1 = Gauge32: 47
#F10-S-SERIES-CHASSIS-MIB::chStackUnitModelID.1 = STRING: S25-01-GE-24V
global $valid_temp;
if ($device['os'] == "ftos" || $device['os_group'] == "ftos")
{
echo("FTOS C-Series ");
$oids = snmpwalk_cache_oid($device, "chStackUnitTemp", array(), "F10-S-SERIES-CHASSIS-MIB", $config['mib_dir'].":".$config['mib_dir']."/ftos" );
$oids = snmpwalk_cache_oid($device, "chStackUnitSysType", $oids, "F10-S-SERIES-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 = "Unit ".$index . " " . $entry['chStackUnitSysType'];
$oid = ".1.3.6.1.4.1.6027.3.10.1.2.2.1.14.".$index;
$current = $entry['chStackUnitTemp'];
discover_temperature($valid_temp, $device, $oid, $index, "ftos-sseries", $descr, "1", NULL, NULL, $current);
}
}
unset($oids);
}
?>