diff options
author | Maxim Chudinov <maxim.chudinov@zabbix.com> | 2020-10-16 12:42:18 +0300 |
---|---|---|
committer | Maxim Chudinov <maxim.chudinov@zabbix.com> | 2020-10-16 12:44:17 +0300 |
commit | 8a8126f3f39f8b8a3ff059985aa32d236a37710f (patch) | |
tree | b2aec20824ccd420e001aa31af2a046371054bb4 /templates/net/huawei_snmp | |
parent | c7a81ea31bc5779872b76657b93cd354d7ef84c1 (diff) |
A......... [DEV-1648] converted existing XML files to a YAML format
Diffstat (limited to 'templates/net/huawei_snmp')
-rw-r--r-- | templates/net/huawei_snmp/template_net_huawei_snmp.xml | 426 | ||||
-rw-r--r-- | templates/net/huawei_snmp/template_net_huawei_snmp.yaml | 320 |
2 files changed, 320 insertions, 426 deletions
diff --git a/templates/net/huawei_snmp/template_net_huawei_snmp.xml b/templates/net/huawei_snmp/template_net_huawei_snmp.xml deleted file mode 100644 index 148a066af71..00000000000 --- a/templates/net/huawei_snmp/template_net_huawei_snmp.xml +++ /dev/null @@ -1,426 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<zabbix_export> - <version>5.2</version> - <date>2020-10-06T01:32:07Z</date> - <groups> - <group> - <name>Templates/Network devices</name> - </group> - </groups> - <templates> - <template> - <template>Huawei VRP SNMP</template> - <name>Huawei VRP SNMP</name> - <description>Template Net Huawei VRP - -MIBs used: -HUAWEI-ENTITY-EXTENT-MIB -ENTITY-MIB - -Template tooling version used: 0.38</description> - <templates> - <template> - <name>EtherLike-MIB SNMP</name> - </template> - <template> - <name>Generic SNMP</name> - </template> - <template> - <name>Interfaces SNMP</name> - </template> - </templates> - <groups> - <group> - <name>Templates/Network devices</name> - </group> - </groups> - <applications> - <application> - <name>CPU</name> - </application> - <application> - <name>Fans</name> - </application> - <application> - <name>Inventory</name> - </application> - <application> - <name>Memory</name> - </application> - <application> - <name>Temperature</name> - </application> - </applications> - <discovery_rules> - <discovery_rule> - <name>FAN Discovery</name> - <type>SNMP_AGENT</type> - <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.2011.5.25.31.1.1.10.1.1]</snmp_oid> - <key>discovery.fans</key> - <delay>1h</delay> - <item_prototypes> - <item_prototype> - <name>#{#SNMPVALUE}: Fan status</name> - <type>SNMP_AGENT</type> - <snmp_oid>1.3.6.1.4.1.2011.5.25.31.1.1.10.1.7.{#SNMPINDEX}</snmp_oid> - <key>sensor.fan.status[hwEntityFanState.{#SNMPINDEX}]</key> - <delay>3m</delay> - <history>2w</history> - <trends>0d</trends> - <description>MIB: HUAWEI-ENTITY-EXTENT-MIB</description> - <applications> - <application> - <name>Fans</name> - </application> - </applications> - <valuemap> - <name>HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState</name> - </valuemap> - <trigger_prototypes> - <trigger_prototype> - <expression>{count(#1,{$FAN_CRIT_STATUS},eq)}=1</expression> - <name>#{#SNMPVALUE}: Fan is in critical state</name> - <opdata>Current state: {ITEM.LASTVALUE1}</opdata> - <priority>AVERAGE</priority> - <description>Please check the fan unit</description> - </trigger_prototype> - </trigger_prototypes> - </item_prototype> - </item_prototypes> - <host_prototypes/> - </discovery_rule> - <discovery_rule> - <name>Entity Discovery</name> - <type>SNMP_AGENT</type> - <snmp_oid>discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]</snmp_oid> - <key>entity.discovery</key> - <delay>1h</delay> - <filter> - <evaltype>AND_OR</evaltype> - <conditions> - <condition> - <macro>{#ENT_CLASS}</macro> - <value>3</value> - <formulaid>A</formulaid> - </condition> - </conditions> - </filter> - <item_prototypes> - <item_prototype> - <name>{#ENT_NAME}: Hardware model name</name> - <type>SNMP_AGENT</type> - <snmp_oid>1.3.6.1.2.1.47.1.1.1.1.2.{#SNMPINDEX}</snmp_oid> - <key>system.hw.model[entPhysicalDescr.{#SNMPINDEX}]</key> - <delay>1h</delay> - <history>2w</history> - <trends>0</trends> - <value_type>CHAR</value_type> - <description>MIB: ENTITY-MIB</description> - <applications> - <application> - <name>Inventory</name> - </application> - </applications> - <preprocessing> - <step> - <type>DISCARD_UNCHANGED_HEARTBEAT</type> - <parameters> - <parameter>1d</parameter> - </parameters> - </step> - </preprocessing> - </item_prototype> - </item_prototypes> - <host_prototypes/> - </discovery_rule> - <discovery_rule> - <name>MPU Discovery</name> - <type>SNMP_AGENT</type> - <snmp_oid>discovery[{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]</snmp_oid> - <key>mpu.discovery</key> - <delay>1h</delay> - <filter> - <evaltype>AND_OR</evaltype> - <conditions> - <condition> - <macro>{#ENT_NAME}</macro> - <value>MPU.*</value> - <formulaid>A</formulaid> - </condition> - </conditions> - </filter> - <description>http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000090234. Filter limits results to Main Processing Units</description> - <item_prototypes> - <item_prototype> - <name>{#ENT_NAME}: Temperature</name> - <type>SNMP_AGENT</type> - <snmp_oid>1.3.6.1.4.1.2011.5.25.31.1.1.1.1.11.{#SNMPINDEX}</snmp_oid> - <key>sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}]</key> - <delay>3m</delay> - <value_type>FLOAT</value_type> - <units>°C</units> - <description>MIB: HUAWEI-ENTITY-EXTENT-MIB -The temperature for the {#SNMPVALUE}.</description> - <applications> - <application> - <name>Temperature</name> - </application> - </applications> - <trigger_prototypes> - <trigger_prototype> - <expression>{avg(5m)}>{$TEMP_WARN:""}</expression> - <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> - <recovery_expression>{max(5m)}<{$TEMP_WARN:""}-3</recovery_expression> - <name>{#ENT_NAME}: Temperature is above warning threshold: >{$TEMP_WARN:""}</name> - <opdata>Current value: {ITEM.LASTVALUE1}</opdata> - <priority>WARNING</priority> - <description>This trigger uses temperature sensor values as well as temperature sensor status if available</description> - <dependencies> - <dependency> - <name>{#ENT_NAME}: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name> - <expression>{Huawei VRP SNMP:sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""}</expression> - <recovery_expression>{Huawei VRP SNMP:sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression> - </dependency> - </dependencies> - </trigger_prototype> - <trigger_prototype> - <expression>{avg(5m)}>{$TEMP_CRIT:""}</expression> - <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> - <recovery_expression>{max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression> - <name>{#ENT_NAME}: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name> - <opdata>Current value: {ITEM.LASTVALUE1}</opdata> - <priority>HIGH</priority> - <description>This trigger uses temperature sensor values as well as temperature sensor status if available</description> - </trigger_prototype> - <trigger_prototype> - <expression>{avg(5m)}<{$TEMP_CRIT_LOW:""}</expression> - <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> - <recovery_expression>{min(5m)}>{$TEMP_CRIT_LOW:""}+3</recovery_expression> - <name>{#ENT_NAME}: Temperature is too low: <{$TEMP_CRIT_LOW:""}</name> - <opdata>Current value: {ITEM.LASTVALUE1}</opdata> - <priority>AVERAGE</priority> - </trigger_prototype> - </trigger_prototypes> - </item_prototype> - <item_prototype> - <name>{#ENT_NAME}: CPU utilization</name> - <type>SNMP_AGENT</type> - <snmp_oid>1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.{#SNMPINDEX}</snmp_oid> - <key>system.cpu.util[hwEntityCpuUsage.{#SNMPINDEX}]</key> - <history>7d</history> - <value_type>FLOAT</value_type> - <units>%</units> - <description>MIB: HUAWEI-ENTITY-EXTENT-MIB -The CPU usage for this entity. Generally, the CPU usage will calculate the overall CPU usage on the entity, and itis not sensible with the number of CPU on the entity. -Reference: http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000090234</description> - <applications> - <application> - <name>CPU</name> - </application> - </applications> - <trigger_prototypes> - <trigger_prototype> - <expression>{min(5m)}>{$CPU.UTIL.CRIT}</expression> - <name>{#ENT_NAME}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)</name> - <opdata>Current utilization: {ITEM.LASTVALUE1}</opdata> - <priority>WARNING</priority> - <description>CPU utilization is too high. The system might be slow to respond.</description> - </trigger_prototype> - </trigger_prototypes> - </item_prototype> - <item_prototype> - <name>{#ENT_NAME}: Hardware serial number</name> - <type>SNMP_AGENT</type> - <snmp_oid>1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}</snmp_oid> - <key>system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]</key> - <delay>1h</delay> - <history>2w</history> - <trends>0</trends> - <value_type>CHAR</value_type> - <description>MIB: ENTITY-MIB</description> - <applications> - <application> - <name>Inventory</name> - </application> - </applications> - <preprocessing> - <step> - <type>DISCARD_UNCHANGED_HEARTBEAT</type> - <parameters> - <parameter>1d</parameter> - </parameters> - </step> - </preprocessing> - <trigger_prototypes> - <trigger_prototype> - <expression>{diff()}=1 and {strlen()}>0</expression> - <name>{#ENT_NAME}: Device has been replaced (new serial number received)</name> - <priority>INFO</priority> - <description>Device serial number has changed. Ack to close</description> - <manual_close>YES</manual_close> - </trigger_prototype> - </trigger_prototypes> - </item_prototype> - <item_prototype> - <name>{#ENT_NAME}: Hardware version(revision)</name> - <type>SNMP_AGENT</type> - <snmp_oid>1.3.6.1.2.1.47.1.1.1.1.8.{#SNMPINDEX}</snmp_oid> - <key>system.hw.version[entPhysicalHardwareRev.{#SNMPINDEX}]</key> - <delay>1h</delay> - <history>2w</history> - <trends>0</trends> - <value_type>CHAR</value_type> - <description>MIB: ENTITY-MIB</description> - <applications> - <application> - <name>Inventory</name> - </application> - </applications> - <preprocessing> - <step> - <type>DISCARD_UNCHANGED_HEARTBEAT</type> - <parameters> - <parameter>1d</parameter> - </parameters> - </step> - </preprocessing> - </item_prototype> - <item_prototype> - <name>{#ENT_NAME}: Operating system</name> - <type>SNMP_AGENT</type> - <snmp_oid>1.3.6.1.2.1.47.1.1.1.1.10.{#SNMPINDEX}</snmp_oid> - <key>system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}]</key> - <delay>1h</delay> - <history>2w</history> - <trends>0</trends> - <value_type>CHAR</value_type> - <description>MIB: ENTITY-MIB</description> - <applications> - <application> - <name>Inventory</name> - </application> - </applications> - <preprocessing> - <step> - <type>DISCARD_UNCHANGED_HEARTBEAT</type> - <parameters> - <parameter>1d</parameter> - </parameters> - </step> - </preprocessing> - <trigger_prototypes> - <trigger_prototype> - <expression>{diff()}=1 and {strlen()}>0</expression> - <recovery_mode>NONE</recovery_mode> - <name>{#ENT_NAME}: Operating system description has changed</name> - <priority>INFO</priority> - <description>Operating system description has changed. Possible reasons that system has been updated or replaced. Ack to close.</description> - <manual_close>YES</manual_close> - </trigger_prototype> - </trigger_prototypes> - </item_prototype> - <item_prototype> - <name>{#ENT_NAME}: Memory utilization</name> - <type>SNMP_AGENT</type> - <snmp_oid>1.3.6.1.4.1.2011.5.25.31.1.1.1.1.7.{#SNMPINDEX}</snmp_oid> - <key>vm.memory.util[hwEntityMemUsage.{#SNMPINDEX}]</key> - <history>7d</history> - <value_type>FLOAT</value_type> - <units>%</units> - <description>MIB: HUAWEI-ENTITY-EXTENT-MIB -The memory usage for the entity. This object indicates what percent of memory are used. -Reference: http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000090234</description> - <applications> - <application> - <name>Memory</name> - </application> - </applications> - <trigger_prototypes> - <trigger_prototype> - <expression>{min(5m)}>{$MEMORY.UTIL.MAX}</expression> - <name>{#ENT_NAME}: High memory utilization ( >{$MEMORY.UTIL.MAX}% for 5m)</name> - <priority>AVERAGE</priority> - <description>The system is running out of free memory.</description> - </trigger_prototype> - </trigger_prototypes> - </item_prototype> - </item_prototypes> - <host_prototypes/> - <graph_prototypes> - <graph_prototype> - <name>{#ENT_NAME}: CPU utilization</name> - <ymin_type_1>FIXED</ymin_type_1> - <ymax_type_1>FIXED</ymax_type_1> - <graph_items> - <graph_item> - <drawtype>GRADIENT_LINE</drawtype> - <color>1A7C11</color> - <item> - <host>Huawei VRP SNMP</host> - <key>system.cpu.util[hwEntityCpuUsage.{#SNMPINDEX}]</key> - </item> - </graph_item> - </graph_items> - </graph_prototype> - <graph_prototype> - <name>{#ENT_NAME}: Memory utilization</name> - <ymin_type_1>FIXED</ymin_type_1> - <ymax_type_1>FIXED</ymax_type_1> - <graph_items> - <graph_item> - <drawtype>GRADIENT_LINE</drawtype> - <color>1A7C11</color> - <item> - <host>Huawei VRP SNMP</host> - <key>vm.memory.util[hwEntityMemUsage.{#SNMPINDEX}]</key> - </item> - </graph_item> - </graph_items> - </graph_prototype> - </graph_prototypes> - </discovery_rule> - </discovery_rules> - <macros> - <macro> - <macro>{$CPU.UTIL.CRIT}</macro> - <value>90</value> - </macro> - <macro> - <macro>{$FAN_CRIT_STATUS}</macro> - <value>2</value> - </macro> - <macro> - <macro>{$MEMORY.UTIL.MAX}</macro> - <value>90</value> - </macro> - <macro> - <macro>{$TEMP_CRIT_LOW}</macro> - <value>5</value> - </macro> - <macro> - <macro>{$TEMP_CRIT}</macro> - <value>60</value> - </macro> - <macro> - <macro>{$TEMP_WARN}</macro> - <value>50</value> - </macro> - </macros> - </template> - </templates> - <value_maps> - <value_map> - <name>HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState</name> - <mappings> - <mapping> - <value>1</value> - <newvalue>normal</newvalue> - </mapping> - <mapping> - <value>2</value> - <newvalue>abnormal</newvalue> - </mapping> - </mappings> - </value_map> - </value_maps> -</zabbix_export> diff --git a/templates/net/huawei_snmp/template_net_huawei_snmp.yaml b/templates/net/huawei_snmp/template_net_huawei_snmp.yaml new file mode 100644 index 00000000000..cce641d1a72 --- /dev/null +++ b/templates/net/huawei_snmp/template_net_huawei_snmp.yaml @@ -0,0 +1,320 @@ +zabbix_export: + version: '5.2' + date: '2020-10-16T09:33:33Z' + groups: + - + name: 'Templates/Network devices' + templates: + - + template: 'Huawei VRP SNMP' + name: 'Huawei VRP SNMP' + description: | + Template Net Huawei VRP + + MIBs used: + HUAWEI-ENTITY-EXTENT-MIB + ENTITY-MIB + + Template tooling version used: 0.38 + templates: + - + name: 'EtherLike-MIB SNMP' + - + name: 'Generic SNMP' + - + name: 'Interfaces SNMP' + groups: + - + name: 'Templates/Network devices' + applications: + - + name: CPU + - + name: Fans + - + name: Inventory + - + name: Memory + - + name: Temperature + discovery_rules: + - + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2011.5.25.31.1.1.10.1.1]' + key: discovery.fans + delay: 1h + item_prototypes: + - + name: '#{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.7.{#SNMPINDEX}' + key: 'sensor.fan.status[hwEntityFanState.{#SNMPINDEX}]' + delay: 3m + history: 2w + trends: 0d + description: 'MIB: HUAWEI-ENTITY-EXTENT-MIB' + applications: + - + name: Fans + valuemap: + name: 'HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState' + trigger_prototypes: + - + expression: '{count(#1,{$FAN_CRIT_STATUS},eq)}=1' + name: '#{#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + - + name: 'Entity Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: entity.discovery + delay: 1h + filter: + conditions: + - + macro: '{#ENT_CLASS}' + value: '3' + formulaid: A + item_prototypes: + - + name: '{#ENT_NAME}: Hardware model name' + type: SNMP_AGENT + snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.2.{#SNMPINDEX}' + key: 'system.hw.model[entPhysicalDescr.{#SNMPINDEX}]' + delay: 1h + history: 2w + trends: '0' + value_type: CHAR + description: 'MIB: ENTITY-MIB' + applications: + - + name: Inventory + preprocessing: + - + type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - + name: 'MPU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: mpu.discovery + delay: 1h + filter: + conditions: + - + macro: '{#ENT_NAME}' + value: 'MPU.*' + formulaid: A + description: 'http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000090234. Filter limits results to Main Processing Units' + item_prototypes: + - + name: '{#ENT_NAME}: Temperature' + type: SNMP_AGENT + snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.11.{#SNMPINDEX}' + key: 'sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: HUAWEI-ENTITY-EXTENT-MIB + The temperature for the {#SNMPVALUE}. + applications: + - + name: Temperature + trigger_prototypes: + - + expression: '{avg(5m)}>{$TEMP_CRIT:""}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '{max(5m)}<{$TEMP_CRIT:""}-3' + name: '{#ENT_NAME}: Temperature is above critical threshold: >{$TEMP_CRIT:""}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + - + expression: '{avg(5m)}>{$TEMP_WARN:""}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '{max(5m)}<{$TEMP_WARN:""}-3' + name: '{#ENT_NAME}: Temperature is above warning threshold: >{$TEMP_WARN:""}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - + name: '{#ENT_NAME}: Temperature is above critical threshold: >{$TEMP_CRIT:""}' + expression: '{Huawei VRP SNMP:sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""}' + recovery_expression: '{Huawei VRP SNMP:sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3' + - + expression: '{avg(5m)}<{$TEMP_CRIT_LOW:""}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '{min(5m)}>{$TEMP_CRIT_LOW:""}+3' + name: '{#ENT_NAME}: Temperature is too low: <{$TEMP_CRIT_LOW:""}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + - + name: '{#ENT_NAME}: CPU utilization' + type: SNMP_AGENT + snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.{#SNMPINDEX}' + key: 'system.cpu.util[hwEntityCpuUsage.{#SNMPINDEX}]' + history: 7d + value_type: FLOAT + units: '%' + description: | + MIB: HUAWEI-ENTITY-EXTENT-MIB + The CPU usage for this entity. Generally, the CPU usage will calculate the overall CPU usage on the entity, and itis not sensible with the number of CPU on the entity. + Reference: http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000090234 + applications: + - + name: CPU + trigger_prototypes: + - + expression: '{min(5m)}>{$CPU.UTIL.CRIT}' + name: '{#ENT_NAME}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + - + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}' + key: 'system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]' + delay: 1h + history: 2w + trends: '0' + value_type: CHAR + description: 'MIB: ENTITY-MIB' + applications: + - + name: Inventory + preprocessing: + - + type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + trigger_prototypes: + - + expression: '{diff()}=1 and {strlen()}>0' + name: '{#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Ack to close' + manual_close: 'YES' + - + name: '{#ENT_NAME}: Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.8.{#SNMPINDEX}' + key: 'system.hw.version[entPhysicalHardwareRev.{#SNMPINDEX}]' + delay: 1h + history: 2w + trends: '0' + value_type: CHAR + description: 'MIB: ENTITY-MIB' + applications: + - + name: Inventory + preprocessing: + - + type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - + name: '{#ENT_NAME}: Operating system' + type: SNMP_AGENT + snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.10.{#SNMPINDEX}' + key: 'system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}]' + delay: 1h + history: 2w + trends: '0' + value_type: CHAR + description: 'MIB: ENTITY-MIB' + applications: + - + name: Inventory + preprocessing: + - + type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + trigger_prototypes: + - + expression: '{diff()}=1 and {strlen()}>0' + recovery_mode: NONE + name: '{#ENT_NAME}: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possible reasons that system has been updated or replaced. Ack to close.' + manual_close: 'YES' + - + name: '{#ENT_NAME}: Memory utilization' + type: SNMP_AGENT + snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.7.{#SNMPINDEX}' + key: 'vm.memory.util[hwEntityMemUsage.{#SNMPINDEX}]' + history: 7d + value_type: FLOAT + units: '%' + description: | + MIB: HUAWEI-ENTITY-EXTENT-MIB + The memory usage for the entity. This object indicates what percent of memory are used. + Reference: http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000090234 + applications: + - + name: Memory + trigger_prototypes: + - + expression: '{min(5m)}>{$MEMORY.UTIL.MAX}' + name: '{#ENT_NAME}: High memory utilization ( >{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + graph_prototypes: + - + name: '{#ENT_NAME}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - + drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Huawei VRP SNMP' + key: 'system.cpu.util[hwEntityCpuUsage.{#SNMPINDEX}]' + - + name: '{#ENT_NAME}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - + drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Huawei VRP SNMP' + key: 'vm.memory.util[hwEntityMemUsage.{#SNMPINDEX}]' + macros: + - + macro: '{$CPU.UTIL.CRIT}' + value: '90' + - + macro: '{$FAN_CRIT_STATUS}' + value: '2' + - + macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - + macro: '{$TEMP_CRIT}' + value: '60' + - + macro: '{$TEMP_CRIT_LOW}' + value: '5' + - + macro: '{$TEMP_WARN}' + value: '50' + value_maps: + - + name: 'HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState' + mappings: + - + value: '1' + newvalue: normal + - + value: '2' + newvalue: abnormal |