1+ <?php
2+ /**
3+ * Observium
4+ *
5+ * This file was used to extend iDRAC from base observium
6+ *
7+ */
8+
9+ $ mib = 'IDRAC-MIB-SMIv2 ' ;
10+ $ config ['mibs ' ][$ mib ]['enable ' ] = 1 ;
11+ $ config ['mibs ' ][$ mib ]['identity_num ' ] = '.1.3.6.1.4.1.674.10892.5 ' ;
12+ $ config ['mibs ' ][$ mib ]['mib_dir ' ] = 'dell ' ;
13+ $ config ['mibs ' ][$ mib ]['descr ' ] = 'Dell iDRAC v7 and newer devices Extended ' ;
14+
15+ // Processor Object Status
16+ $ config ['mibs ' ][$ mib ]['status ' ][] = [
17+ 'table ' => 'processorDeviceTable ' ,
18+ 'oid ' => 'processorDeviceStatus ' ,
19+ 'oid_descr ' => 'processorDeviceFQDD ' ,
20+ 'descr_transform ' => [ 'action ' => 'replace ' , 'from ' => [ '. ' ], 'to ' => [ ' ' ] ],
21+ 'measured ' => 'processor ' ,
22+ 'oid_num ' => '.1.3.6.1.4.1.674.10892.5.4.1100.30.1.5 ' ,
23+ 'type ' => 'ObjectStatusEnum ' ,
24+ ];
25+
26+ // Memory Object Status
27+ $ config ['mibs ' ][$ mib ]['status ' ][] = [
28+ 'table ' => 'memoryDeviceTable ' ,
29+ 'oid ' => 'memoryDeviceStatus ' ,
30+ 'oid_descr ' => 'memoryDeviceLocationName ' ,
31+ 'descr_transform ' => [ 'action ' => 'replace ' , 'from ' => [ '. ' ], 'to ' => [ ' ' ] ],
32+ 'measured ' => 'memory ' ,
33+ 'oid_num ' => '.1.3.6.1.4.1.674.10892.5.4.1100.50.1.5 ' ,
34+ 'type ' => 'ObjectStatusEnum ' ,
35+ ];
36+
37+ // GPU Object Status
38+ $ config ['mibs ' ][$ mib ]['status ' ][] = [
39+ 'table ' => 'pCIDeviceTableEntry ' ,
40+ 'oid ' => 'pCIDeviceStatus ' ,
41+ 'oid_descr ' => 'pCIDeviceFQDD ' ,
42+ 'descr_transform ' => [ 'action ' => 'replace ' , 'from ' => [ 'Video.Slot. ' , '-1 ' ], 'to ' => [ 'System Board GPU ' , '' ] ],
43+ 'measured ' => 'gpu ' ,
44+ 'oid_num ' => '.1.3.6.1.4.1.674.10892.5.4.1100.80.1.5 ' ,
45+ 'type ' => 'ObjectStatusEnum ' ,
46+ 'test ' => [ 'field ' => 'pCIDeviceFQDD ' , 'operator ' => 'regex ' , 'value ' => '^Video\.Slot ' ],
47+ ];
48+
49+ // Network InfiniBand Object Status
50+ $ config ['mibs ' ][$ mib ]['status ' ][] = [
51+ 'table ' => 'pCIDeviceTableEntry ' ,
52+ 'oid ' => 'pCIDeviceStatus ' ,
53+ 'oid_descr ' => 'pCIDeviceFQDD ' ,
54+ 'descr_transform ' => [ 'action ' => 'replace ' , 'from ' => [ '. ' , '-1 ' ], 'to ' => [ ' ' , '' ] ],
55+ 'measured ' => 'network ' ,
56+ 'oid_num ' => '.1.3.6.1.4.1.674.10892.5.4.1100.80.1.5 ' ,
57+ 'type ' => 'ObjectStatusEnum ' ,
58+ 'test ' => [ 'field ' => 'pCIDeviceFQDD ' , 'operator ' => 'regex ' , 'value ' => '^InfiniBand\.Slot\. ' ],
59+ ];
60+
61+ // Network Object Status
62+ $ config ['mibs ' ][$ mib ]['status ' ][] = [
63+ 'table ' => 'networkDeviceTableEntry ' ,
64+ 'oid ' => 'networkDeviceStatus ' ,
65+ 'oid_descr ' => 'networkDeviceFQDD ' ,
66+ 'descr_transform ' => [ 'action ' => 'replace ' , 'from ' => [ '. ' , '-1-1 ' , '-2-1 ' ], 'to ' => [ ' ' , '' , '' ] ],
67+ 'measured ' => 'network ' ,
68+ 'oid_num ' => '.1.3.6.1.4.1.674.10892.5.4.1100.90.1.3 ' ,
69+ 'type ' => 'ObjectStatusEnum ' ,
70+ ];
71+
72+ // EOF
0 commit comments