联想问天服务器ILO接入zabbix 联想国产问天系列服务器ILO没有可用的zabbix监控模板也没有官方的mib文件可用只能先获取一遍全部的snmp数据根据结果和联想官方的snmp说明手动创建监控模板实现zabbix监控接入。模板如下:1 ?xml version1.0 encodingUTF-8?2 zabbix_export3 7.44 template_groups5 template_group6 7df96b18c230490a9a0a9e23072263387 Templates8 /template_group9 /template_groups101112 8255b5076e074440a3fbbcccd1a153e713 Template_SNMP_Lenovo_WR3220_XCC14 Template SNMP Lenovo XClarity Controller (XCC) For WR322015 SNMP monitoring for Lenovo XClarity Controller (XCC): overall health, temperatures, fans, CPU, MEM, PSU modules.161718 Templates1920212223 11d912b11a534ebd867cda80fe761e9b24 CPUSummaryStatus25 SNMP_AGENT26 snmp_oid1.3.6.1.4.1.53184.17.2.1.3.0/snmp_oid27 lenovo.CPUSummaryStatus28 90d29 value_typeCHAR/value_type30 Values: OK,Warning,Critical313233 component34 health3536373839 f83638162f68473dae596816995a1abb40 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.CPUSummaryStatus)“Critical”41 XCC CPU health is CRITICAL42 HIGH434445 9ffc3befb54548ca84e0c79a58dc820946 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.CPUSummaryStatus)“Warning”47 XCC CPU health is Warning48 AVERAGE4950515253 ad3fc215cd90417ab525f10cb8d6b6ba54 DISKSummaryStatus55 SNMP_AGENT56 snmp_oid1.3.6.1.4.1.53184.17.2.1.5.0/snmp_oid57 lenovo.DISKSummaryStatus58 90d59 value_typeCHAR/value_type60 Values: OK,Warning,Critical616263 component64 health6566676869 4e3d9fb853364b11996560ba24f18b5770 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.DISKSummaryStatus)“Critical”71 XCC DISK health is CRITICAL72 HIGH737475 b89c558257e7436bb794c83f422841b176 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.DISKSummaryStatus)“Warning”77 XCC DISK health is Warning78 AVERAGE7980818283 d59d43d673ae42fbbabcc178eb3f484884 EntiretySummaryStatus85 SNMP_AGENT86 snmp_oid1.3.6.1.4.1.53184.17.2.1.2.0/snmp_oid87 lenovo.EntiretySummaryStatus88 90d89 value_typeCHAR/value_type90 Values: OK,Warning,Critical919293 component94 health9596979899 9ab89b495ee147fbb8337871fc1837c9100 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.EntiretySummaryStatus)“Critical”101 XCC system health is CRITICAL102 HIGH103104105 ad0d8014a4ff47f190a09d838359d467106 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.EntiretySummaryStatus)“Warning”107 XCC system health is Warning108 AVERAGE109110111112113 a910526d088c447e9b92c37fc2274b8a114 FANSummaryStatus115 SNMP_AGENT116 snmp_oid1.3.6.1.4.1.53184.17.2.1.7.0/snmp_oid117 lenovo.FANSummaryStatus118 90d119 value_typeCHAR/value_type120 Values: OK,Warning,Critical121122123 component124 health125126127128129 6d20868ce36d40d6871500f582d71381130 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.FANSummaryStatus)“Critical”131 XCC FAN health is CRITICAL132 HIGH133134135 f9b533e64a434656a8abd7854228c092136 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.FANSummaryStatus)“Warning”137 XCC FAN health is Warning138 AVERAGE139140141142143 0ac7d10010174b849ac6dfa6a5974f52144 MEMSummaryStatus145 SNMP_AGENT146 snmp_oid1.3.6.1.4.1.53184.17.2.1.4.0/snmp_oid147 lenovo.MEMSummaryStatus148 90d149 value_typeCHAR/value_type150 Values: OK,Warning,Critical151152153 component154 health155156157158159 09a8af86d3034c17927c08c4796dca71160 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.MEMSummaryStatus)“Critical”161 XCC MEM health is CRITICAL162 HIGH163164165 1a3923522b3147efa77a89ce28986d3a166 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.MEMSummaryStatus)“Warning”167 XCC MEM health is Warning168 AVERAGE169170171172173 410dc6c1fbb44ff3a32ebd7bff94e1ed174 PCISummaryStatus175 SNMP_AGENT176 snmp_oid1.3.6.1.4.1.53184.17.2.1.6.0/snmp_oid177 lenovo.PCISummaryStatus178 90d179 value_typeCHAR/value_type180 Values: OK,Warning,Critical181182183 component184 health185186187188189 9411f50901594ba38b8b19420ad20d96190 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.PCISummaryStatus)“Critical”191 XCC PCI health is CRITICAL192 HIGH193194195 a9342e5f434844d99e964bd200e79cb6196 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.PCISummaryStatus)“Warning”197 XCC PCI health is Warning198 AVERAGE199200201202203 9184796729134f598f5d1447869de210204 POWERSummaryStatus205 SNMP_AGENT206 snmp_oid1.3.6.1.4.1.53184.17.2.1.10.0/snmp_oid207 lenovo.POWERSummaryStatus208 90d209 value_typeCHAR/value_type210 Values: OK,Warning,Critical211212213 component214 health215216217218219 9a59473a1ccb4534a7d309f623425241220 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.POWERSummaryStatus)“Critical”221 XCC POEWR health is CRITICAL222 HIGH223224225 7e71ddd965964418867d35c1f96ede06226 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.POWERSummaryStatus)“Warning”227 XCC POWER health is Warning228 AVERAGE229230231232233 11cc7c2ec5ff48869c9836e1bb3268fe234 TEMPSummaryStatus235 SNMP_AGENT236 snmp_oid1.3.6.1.4.1.53184.17.2.1.8.0/snmp_oid237 lenovo.TEMPSummaryStatus238 90d239 value_typeCHAR/value_type240 Values: OK,Warning,Critical241242243 component244 health245246247248249 c41e58eb83f04725931aa98e0694ef63250 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.TEMPSummaryStatus)“Critical”251 XCC TEMP health is CRITICAL252 HIGH253254255 7f44cfd7ffaf410880ebcf497d667bb7256 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.TEMPSummaryStatus)“Warning”257 XCC TEMP health is Warning258 AVERAGE259260261262263 0e3e79dc4f4646479126657f018ba697264 VoltageSummaryStatus265 SNMP_AGENT266 snmp_oid1.3.6.1.4.1.53184.17.2.1.9.0/snmp_oid267 lenovo.VoltageSummaryStatus268 90d269 value_typeCHAR/value_type270 Values: OK,Warning,Critical271272273 component274 health275276277278279 5dfdff89eeb54857ad0a497ac703855d280 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.VoltageSummaryStatus)“Critical”281 XCC Voltage health is CRITICAL282 HIGH283284285 e384b9e299184723b04e60d7bc139cc4286 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.VoltageSummaryStatus)“Warning”287 XCC Voltage health is Warning288 AVERAGE289290291292293 ed88fab03cae4cda97495f46ec3cb551294 System hostname295 SNMP_AGENT296 snmp_oid1.3.6.1.4.1.53184.6.2.0/snmp_oid297 snmp.hostname298 6h299 90d300 value_typeTEXT/value_type301302303 component304 system305306307308309 a70524591b6543fbb367a831e011777c310 System uptime (sysUpTime)311 SNMP_AGENT312 snmp_oid1.3.6.1.2.1.1.3.0/snmp_oid313 snmp.sysUpTime314 5m315 90d316 uptime317318319 component320 system321322323324325 discovery_rules326 discovery_rule327 c4d755602e9441d89a192a7afb9e1454328 CPU discovery (Lenovo XCC)329 SNMP_AGENT330 snmp_oiddiscovery[{#IDX},1.3.6.1.4.1.53184.8.2.1.1,{#NAME},1.3.6.1.4.1.53184.8.2.1.14]/snmp_oid331 lenovo.xcc.cpu.discovery332 6h333 30d334 item_prototypes335 item_prototype336 68177483a81248c58f52fe4beda85963337 CPU {#NAME}: Health status338 SNMP_AGENT339 snmp_oid1.3.6.1.4.1.53184.8.2.1.13.{#IDX}/snmp_oid340 lenovo.xcc.cpu.health[{#IDX}]341 5m342 value_typeCHAR/value_type343344345 component346 cpu347348349 trigger_prototypes350 trigger_prototype351 f6b94aec31eb45639fd6d2f1e51262eb352 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.xcc.cpu.health[{#IDX}])“Ok”353 CPU {#NAME}: 状态异常354 HIGH355 /trigger_prototype356 /trigger_prototypes357 /item_prototype358 /item_prototypes359 /discovery_rule360 discovery_rule361 61b27274451b4146b3b64cfdb8390bdb362 Disk discovery (Lenovo XCC)363 SNMP_AGENT364 snmp_oiddiscovery[{#IDX},1.3.6.1.4.1.53184.16.2.1.1]/snmp_oid365 lenovo.xcc.disk.discovery366 1h367 30d368 item_prototypes369 item_prototype370 613c2ba72e794edab031db410cda935b371 Disk {#IDX}: 剩余寿命372 SNMP_AGENT373 snmp_oid1.3.6.1.4.1.53184.16.2.1.12.{#IDX}/snmp_oid374 lenovo.xcc.disk.life[{#IDX}]375 0376 %377378379 CHECK_NOT_SUPPORTED380381 -1382383384385 JAVASCRIPT386387 // 如果值等于 255字符串或数字则丢弃否则返回原值388 if (value ‘255’ || value 255) {389 return null;390 }391 return value;392393394395396397 component398 disk399400401 trigger_prototypes402 trigger_prototype403 7873a0d988554e8499410ad08fdd86cb404 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.xcc.disk.life[{#IDX}])10405 Disk {#IDX} 剩余寿命低于10%406 DISASTER407 /trigger_prototype408 trigger_prototype409 d7fffc8255184fbc8330be822d664988410 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.xcc.disk.life[{#IDX}])30411 Disk {#IDX} 剩余寿命低于30%412 HIGH413 /trigger_prototype414 trigger_prototype415 2f01ce5f441b4e08886542fa7f08cb60416 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.xcc.disk.life[{#IDX}])50417 Disk {#IDX} 剩余寿命低于50%418 AVERAGE419 /trigger_prototype420 /trigger_prototypes421 /item_prototype422 item_prototype423 c947b2921f5b4b4887fb5ea64fd13864424 Disk {#IDX}: 硬盘状态425 SNMP_AGENT426 snmp_oid1.3.6.1.4.1.53184.16.2.1.13.{#IDX}/snmp_oid427 lenovo.xcc.disk.status[{#IDX}]428 value_typeCHAR/value_type429430431 CHECK_NOT_SUPPORTED432433 -1434435436437438439 component440 disk441442443 trigger_prototypes444 trigger_prototype445 bcfcc98bf2cd4514a69a1a9497115b6f446 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.xcc.disk.status[{#IDX}])“OK”447 Disk {#IDX} 状态异常448 AVERAGE449 /trigger_prototype450 /trigger_prototypes451 /item_prototype452 /item_prototypes453 /discovery_rule454 discovery_rule455 6f64a3aca74a47e9978e5ce9f955d145456 Fan discovery (Lenovo XCC)457 SNMP_AGENT458 snmp_oiddiscovery[{#IDX},1.3.6.1.4.1.53184.19.2.1.1]/snmp_oid459 lenovo.xcc.fan.discovery460 1h461 30d462 item_prototypes463 item_prototype464 fd31deadbd0b40ac9c50d944cf445c20465 Fan {#IDX}: 前转子转速466 SNMP_AGENT467 snmp_oid1.3.6.1.4.1.53184.19.2.1.2.{#IDX}/snmp_oid468 lenovo.xcc.fan.FRspeed[{#IDX}]469 90d470 rpm471472473 CHECK_NOT_SUPPORTED474475 -1476477478479480481 component482 fan483484485 trigger_prototypes486 trigger_prototype487 0337c282fd7b46868ef6b9c54114a2b2488 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.xcc.fan.FRspeed[{#IDX}]){KaTeX parse error: Expected EOF, got } at position 15: LOWER_CRITICAL}̲/expression …LOWER_CRITICAL}578 Fan {#IDX} 后转子转速过低579 AVERAGE580 /trigger_prototype581 /trigger_prototypes582 /item_prototype583 /item_prototypes584 /discovery_rule585 discovery_rule586 9e9945b8b26a4022b866f281789bc361587 MEM discovery (Lenovo XCC)588 SNMP_AGENT589 snmp_oiddiscovery[{#IDX},1.3.6.1.4.1.53184.9.2.1.1]/snmp_oid590 lenovo.xcc.mem.discovery591 6h592 30d593 item_prototypes594 item_prototype595 f9636465ba174c08b6be5803a15c779f596 MEM {#IDX}: Health status597 SNMP_AGENT598 snmp_oid1.3.6.1.4.1.53184.9.2.1.10.{#IDX}/snmp_oid599 lenovo.xcc.mem.health[{#IDX}]600 5m601 value_typeCHAR/value_type602603604 component605 mem606607608 trigger_prototypes609 trigger_prototype610 d6cd3193d7884d829ed68d681c0e4354611 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.xcc.mem.health[{#IDX}])“Ok”612 MEM {#IDX}: 状态异常613 HIGH614 /trigger_prototype615 /trigger_prototypes616 /item_prototype617 /item_prototypes618 /discovery_rule619 discovery_rule620 4ffb0c8af46a49f0b3c049fafd29f6cb621 Power modules discovery (Lenovo XCC)622 SNMP_AGENT623 snmp_oiddiscovery[{#IDX},1.3.6.1.4.1.53184.10.2.1.1,{#NAME},1.3.6.1.4.1.53184.10.2.1.6]/snmp_oid624 lenovo.xcc.psu.discovery625 6h626 30d627 item_prototypes628 item_prototype629 b4a5c387c6414f1baa2cf38426f4ae5a630 PSU {#NAME}: Health status631 SNMP_AGENT632 snmp_oid1.3.6.1.4.1.53184.10.2.1.13.{#IDX}/snmp_oid633 lenovo.xcc.psu.health[{#IDX}]634 5m635 90d636 value_typeCHAR/value_type637638639 component640 psu641642643 trigger_prototypes644 trigger_prototype645 1910a63e84ba423d8c97c1264e53af58646 last(/Template_SNMP_Lenovo_WR3220_XCC/lenovo.xcc.psu.health[{#IDX}])“OK”647 电源 {#NAME} 状态异常648 HIGH649 /trigger_prototype650 /trigger_prototypes651 /item_prototype652 /item_prototypes653 /discovery_rule654 discovery_rule655 a9713877c99a4326be9f742d940745a7656 Temperature sensors discovery (Lenovo XCC)657 SNMP_AGENT658 snmp_oiddiscovery[{#IDX},1.3.6.1.4.1.53184.1.2.1.1,{#SENSOR_TYPE},1.3.6.1.4.1.53184.1.2.1.2,{#SENSOR_NAME},1.3.6.1.4.1.53184.1.2.1.3]/snmp_oid659 lenovo.xcc.temp.discovery660 1h661662663664 {#SENSOR_TYPE}665 ^1KaTeX parse error: Expected }, got # at position 396: … nameTemp{#̲SENSOR_NAME}: R…LOWER_CRITICAL}748 500749 最低风扇转速750751752753754755756 a9845e2299e04b86a42fdc80ed6ea3dc757 XCC Overview: Health Uptime758 graph_items759 graph_item760 1A7C11761762 Template_SNMP_Lenovo_WR3220_XCC763 lenovo.EntiretySummaryStatus764765 /graph_item766 graph_item767 1768 2774A4769770 Template_SNMP_Lenovo_WR3220_XCC771 snmp.sysUpTime772773 /graph_item774 /graph_items775776777 /zabbix_export