1 | <?php |
||
2 | |||
3 | // Force10 S-Series |
||
4 | // F10-S-SERIES-CHASSIS-MIB::chStackUnitTemp.1 = Gauge32: 47 |
||
5 | // F10-S-SERIES-CHASSIS-MIB::chStackUnitModelID.1 = STRING: S25-01-GE-24V |
||
6 | echo 'FTOS C-Series '; |
||
7 | |||
8 | $oids = snmpwalk_cache_oid($device, 'chStackUnitTemp', [], 'F10-S-SERIES-CHASSIS-MIB', 'ftos'); |
||
9 | $oids = snmpwalk_cache_oid($device, 'chStackUnitSysType', $oids, 'F10-S-SERIES-CHASSIS-MIB', 'ftos'); |
||
10 | |||
11 | if (is_array($oids)) { |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
12 | foreach ($oids as $index => $entry) { |
||
13 | $descr = 'Unit ' . $index . ' ' . $entry['chStackUnitSysType']; |
||
14 | $oid = '.1.3.6.1.4.1.6027.3.10.1.2.2.1.14.' . $index; |
||
15 | $current = $entry['chStackUnitTemp']; |
||
16 | discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, 'ftos-sseries', $descr, '1', '1', null, null, null, null, $current); |
||
17 | } |
||
18 | } |
||
19 | |||
20 | $oids = snmpwalk_cache_oid($device, 'chSysCardTemp', [], 'F10-C-SERIES-CHASSIS-MIB', 'ftos'); |
||
21 | if (is_array($oids)) { |
||
0 ignored issues
–
show
|
|||
22 | foreach ($oids as $index => $entry) { |
||
23 | $entry['descr'] = 'Slot ' . $index; |
||
24 | $entry['oid'] = '.1.3.6.1.4.1.6027.3.8.1.2.1.1.5.' . $index; |
||
25 | $entry['current'] = $entry['chSysCardTemp']; |
||
26 | discover_sensor($valid['sensor'], 'temperature', $device, $entry['oid'], $index, 'ftos-cseries', $entry['descr'], '1', '1', null, null, null, null, $entry['current']); |
||
27 | } |
||
28 | } |
||
29 | |||
30 | echo 'FTOS E-Series '; |
||
31 | |||
32 | $oids = snmpwalk_cache_oid($device, 'chSysCardUpperTemp', [], 'F10-CHASSIS-MIB', 'ftos'); |
||
33 | |||
34 | if (is_array($oids)) { |
||
0 ignored issues
–
show
|
|||
35 | foreach ($oids as $index => $entry) { |
||
36 | $descr = 'Slot ' . $index; |
||
37 | $oid = '.1.3.6.1.4.1.6027.3.1.1.2.3.1.8.' . $index; |
||
38 | $current = $entry['chSysCardUpperTemp']; |
||
39 | |||
40 | discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, 'ftos-eseries', $descr, '1', '1', null, null, null, null, $current); |
||
41 | } |
||
42 | } |
||
43 |