mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
4f2972660f
git-svn-id: http://www.observium.org/svn/observer/trunk@1529 61d68cd4-352d-0410-923a-c4978735b2b8
35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?php
|
|
|
|
global $valid_sensor;
|
|
|
|
### Force10 S-Series
|
|
|
|
#F10-S-SERIES-CHASSIS-MIB::chStackUnitTemp.1 = Gauge32: 47
|
|
#F10-S-SERIES-CHASSIS-MIB::chStackUnitModelID.1 = STRING: S25-01-GE-24V
|
|
|
|
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_sensor($valid_sensor, 'temperature', $device, $oid, $index, 'ftos-sseries', $descr, '1', '1', NULL, NULL, NULL, NULL, $current);
|
|
}
|
|
}
|
|
|
|
unset($oids);
|
|
|
|
}
|
|
|
|
|
|
?>
|