设为首页 收藏本站
查看: 1424|回复: 1

[经验分享] zabbix 布署实践【7 H3C网络设备监控模版制作思路】

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2018-1-1 21:41:41 | 显示全部楼层 |阅读模式
<?xml version="1.0" encoding="UTF-8"?>  
<zabbix_export>
  <version>3.0</version>
  <date>2017-01-18T10:19:42Z</date>
  <groups>
  <group>
  <name>Templates</name>
  </group>
  </groups>
  <templates>
  <template>
  <template>H3C</template>
  <name>H3C MSR5660 S5560 S5110 WX3010AC F1030</name>
  <description/>
  <groups>
  <group>
  <name>Templates</name>
  </group>
  </groups>
  <applications>
  <application>
  <name>Discovery Env</name>
  </application>
  <application>
  <name>Discovery Int</name>
  </application>
  <application>
  <name>General</name>
  </application>
  </applications>
  <items>
  <item>
  <name>ICMP loss</name>
  <type>3</type>
  <snmp_community/>
  <multiplier>0</multiplier>
  <snmp_oid/>
  <key>icmppingloss</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>0</value_type>
  <allowed_hosts/>
  <units>%</units>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>General</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  </item>
  <item>
  <name>ICMP response time</name>
  <type>3</type>
  <snmp_community/>
  <multiplier>1</multiplier>
  <snmp_oid/>
  <key>icmppingsec</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>0</value_type>
  <allowed_hosts/>
  <units>s</units>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>General</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  </item>
  <item>
  <name>Number of network interfaces</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>IF-MIB::ifNumber.0</snmp_oid>
  <key>ifNumber</key>
  <delay>3600</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units/>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Int</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  </item>
  <item>
  <name>sysUpTime</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>DISMAN-EVENT-MIB::sysUpTimeInstance</snmp_oid>
  <key>sysUpTime</key>
  <delay>300</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>0</value_type>
  <allowed_hosts/>
  <units>uptime</units>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>General</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  </item>
  </items>
  <discovery_rules>
  <discovery_rule>
  <name>Number of DevicePower</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.25506.8.35.9.1.2.1.1]</snmp_oid>
  <key>hh3cDevMPowerNum</key>
  <delay>3600</delay>
  <status>0</status>
  <allowed_hosts/>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <filter>
  <evaltype>0</evaltype>
  <formula/>
  <conditions/>
  </filter>
  <lifetime>30</lifetime>
  <description/>
  <item_prototypes>
  <item_prototype>
  <name>Status of Power $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>1.3.6.1.4.1.25506.8.35.9.1.2.1.2.{#SNMPINDEX}</snmp_oid>
  <key>hh3cDevMPowerStatus[{#SNMPVALUE}]</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units/>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Env</name>
  </application>
  </applications>
  <valuemap>
  <name>H3C PowerStatus</name>
  </valuemap>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  </item_prototypes>
  <trigger_prototypes>
  <trigger_prototype>
  <expression>{H3C:hh3cDevMPowerStatus[{#SNMPVALUE}].diff(0)}=1</expression>
  <name>Operational status was changed on {HOST.NAME} Power {#SNMPVALUE}</name>
  <url/>
  <status>0</status>
  <priority>2</priority>
  <description/>
  <type>0</type>
  <dependencies/>
  </trigger_prototype>
  </trigger_prototypes>
  <graph_prototypes/>
  <host_prototypes/>
  </discovery_rule>
  <discovery_rule>
  <name>Number of Slot</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.25506.8.35.18.4.3.1.1]</snmp_oid>
  <key>hh3cLswSlotIndex</key>
  <delay>3600</delay>
  <status>0</status>
  <allowed_hosts/>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <filter>
  <evaltype>0</evaltype>
  <formula/>
  <conditions/>
  </filter>
  <lifetime>30</lifetime>
  <description/>
  <item_prototypes>
  <item_prototype>
  <name>CPU Useage of slot $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>1.3.6.1.4.1.25506.8.35.18.4.3.1.4.{#SNMPINDEX}</snmp_oid>
  <key>hh3cLswSlotCpuRatio[{#SNMPVALUE}]</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units>%</units>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Env</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  <item_prototype>
  <name>Memory Usage of slot $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>1.3.6.1.4.1.25506.8.35.18.4.3.1.13.{#SNMPINDEX}</snmp_oid>
  <key>hh3cLswSlotMemoryRatio[{#SNMPVALUE}]</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units>%</units>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Env</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  </item_prototypes>
  <trigger_prototypes>
  <trigger_prototype>
  <expression>{H3C:hh3cLswSlotCpuRatio[{#SNMPVALUE}].last(0)}&gt;80</expression>
  <name>{HOST.NAME} CPU {#SNMPVALUE} &gt;80%</name>
  <url/>
  <status>0</status>
  <priority>2</priority>
  <description/>
  <type>0</type>
  <dependencies/>
  </trigger_prototype>
  <trigger_prototype>
  <expression>{H3C:hh3cLswSlotMemoryRatio[{#SNMPVALUE}].last(0)}&gt;80</expression>
  <name>{HOST.NAME} slot {#SNMPVALUE} memory &gt;80%</name>
  <url/>
  <status>0</status>
  <priority>2</priority>
  <description/>
  <type>1</type>
  <dependencies/>
  </trigger_prototype>
  </trigger_prototypes>
  <graph_prototypes>
  <graph_prototype>
  <name>Usage on CPU {#SNMPVALUE}</name>
  <width>900</width>
  <height>200</height>
  <yaxismin>0.0000</yaxismin>
  <yaxismax>100.0000</yaxismax>
  <show_work_period>1</show_work_period>
  <show_triggers>1</show_triggers>
  <type>0</type>
  <show_legend>0</show_legend>
  <show_3d>0</show_3d>
  <percent_left>0.0000</percent_left>
  <percent_right>0.0000</percent_right>
  <ymin_type_1>0</ymin_type_1>
  <ymax_type_1>0</ymax_type_1>
  <ymin_item_1>0</ymin_item_1>
  <ymax_item_1>0</ymax_item_1>
  <graph_items>
  <graph_item>
  <sortorder>0</sortorder>
  <drawtype>1</drawtype>
  <color>1A7C11</color>
  <yaxisside>0</yaxisside>
  <calc_fnc>2</calc_fnc>
  <type>0</type>
  <item>
  <host>H3C</host>
  <key>hh3cLswSlotCpuRatio[{#SNMPVALUE}]</key>
  </item>
  </graph_item>
  </graph_items>
  </graph_prototype>
  <graph_prototype>
  <name>Usage on memory {#SNMPVALUE}</name>
  <width>900</width>
  <height>200</height>
  <yaxismin>0.0000</yaxismin>
  <yaxismax>100.0000</yaxismax>
  <show_work_period>1</show_work_period>
  <show_triggers>1</show_triggers>
  <type>0</type>
  <show_legend>1</show_legend>
  <show_3d>0</show_3d>
  <percent_left>0.0000</percent_left>
  <percent_right>0.0000</percent_right>
  <ymin_type_1>0</ymin_type_1>
  <ymax_type_1>0</ymax_type_1>
  <ymin_item_1>0</ymin_item_1>
  <ymax_item_1>0</ymax_item_1>
  <graph_items>
  <graph_item>
  <sortorder>0</sortorder>
  <drawtype>1</drawtype>
  <color>00EEEE</color>
  <yaxisside>0</yaxisside>
  <calc_fnc>2</calc_fnc>
  <type>0</type>
  <item>
  <host>H3C</host>
  <key>hh3cLswSlotMemoryRatio[{#SNMPVALUE}]</key>
  </item>
  </graph_item>
  </graph_items>
  </graph_prototype>
  </graph_prototypes>
  <host_prototypes/>
  </discovery_rule>
  <discovery_rule>
  <name>Network interfaces</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <snmp_oid>discovery[{#SNMPVALUE},IF-MIB::ifDescr]</snmp_oid>
  <key>ifDescr</key>
  <delay>3600</delay>
  <status>0</status>
  <allowed_hosts/>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <filter>
  <evaltype>0</evaltype>
  <formula/>
  <conditions/>
  </filter>
  <lifetime>30</lifetime>
  <description/>
  <item_prototypes>
  <item_prototype>
  <name>Admin status of interface $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>IF-MIB::ifAdminStatus.{#SNMPINDEX}</snmp_oid>
  <key>ifAdminStatus[{#SNMPVALUE}]</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units/>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Int</name>
  </application>
  </applications>
  <valuemap>
  <name>SNMP interface status (ifAdminStatus)</name>
  </valuemap>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  <item_prototype>
  <name>Alias of interface $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>IF-MIB::ifAlias.{#SNMPINDEX}</snmp_oid>
  <key>ifAlias[{#SNMPVALUE}]</key>
  <delay>3600</delay>
  <history>7</history>
  <trends>0</trends>
  <status>0</status>
  <value_type>1</value_type>
  <allowed_hosts/>
  <units/>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Int</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  <item_prototype>
  <name>Description of interface $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>IF-MIB::ifDescr.{#SNMPINDEX}</snmp_oid>
  <key>ifDescr[{#SNMPVALUE}]</key>
  <delay>3600</delay>
  <history>7</history>
  <trends>0</trends>
  <status>0</status>
  <value_type>1</value_type>
  <allowed_hosts/>
  <units/>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Int</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  <item_prototype>
  <name>Inbound errors on interface $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>IF-MIB::ifInErrors.{#SNMPINDEX}</snmp_oid>
  <key>ifInErrors[{#SNMPVALUE}]</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units/>
  <delta>1</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Int</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  <item_prototype>
  <name>Incoming traffic on interface $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>1</multiplier>
  <snmp_oid>IF-MIB::ifInOctets.{#SNMPINDEX}</snmp_oid>
  <key>ifInOctets[{#SNMPVALUE}]</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units>bps</units>
  <delta>1</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>8</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Int</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  <item_prototype>
  <name>Operational status of interface $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>IF-MIB::ifOperStatus.{#SNMPINDEX}</snmp_oid>
  <key>ifOperStatus[{#SNMPVALUE}]</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units/>
  <delta>0</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Int</name>
  </application>
  </applications>
  <valuemap>
  <name>SNMP interface status (ifOperStatus)</name>
  </valuemap>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  <item_prototype>
  <name>Outbound errors on interface $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>0</multiplier>
  <snmp_oid>IF-MIB::ifOutErrors.{#SNMPINDEX}</snmp_oid>
  <key>ifOutErrors[{#SNMPVALUE}]</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units/>
  <delta>1</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>1</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Int</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  <item_prototype>
  <name>Outgoing traffic on interface $1</name>
  <type>4</type>
  <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
  <multiplier>1</multiplier>
  <snmp_oid>IF-MIB::ifOutOctets.{#SNMPINDEX}</snmp_oid>
  <key>ifOutOctets[{#SNMPVALUE}]</key>
  <delay>60</delay>
  <history>7</history>
  <trends>14</trends>
  <status>0</status>
  <value_type>3</value_type>
  <allowed_hosts/>
  <units>bps</units>
  <delta>1</delta>
  <snmpv3_contextname/>
  <snmpv3_securityname/>
  <snmpv3_securitylevel>0</snmpv3_securitylevel>
  <snmpv3_authprotocol>0</snmpv3_authprotocol>
  <snmpv3_authpassphrase/>
  <snmpv3_privprotocol>0</snmpv3_privprotocol>
  <snmpv3_privpassphrase/>
  <formula>8</formula>
  <delay_flex/>
  <params/>
  <ipmi_sensor/>
  <data_type>0</data_type>
  <authtype>0</authtype>
  <username/>
  <password/>
  <publickey/>
  <privatekey/>
  <port/>
  <description/>
  <inventory_link>0</inventory_link>
  <applications>
  <application>
  <name>Discovery Int</name>
  </application>
  </applications>
  <valuemap/>
  <logtimefmt/>
  <application_prototypes/>
  </item_prototype>
  </item_prototypes>
  <trigger_prototypes>
  <trigger_prototype>
  <expression>{H3C:ifInErrors[{#SNMPVALUE}].last(0)}&gt;100 or {H3C:ifOutErrors[{#SNMPVALUE}].last(0)}&gt;100</expression>
  <name>Errors on {HOST.NAME} interface {#SNMPVALUE}</name>
  <url/>
  <status>0</status>
  <priority>2</priority>
  <description/>
  <type>0</type>
  <dependencies/>
  </trigger_prototype>
  <trigger_prototype>
  <expression>{H3C:ifOperStatus[{#SNMPVALUE}].diff(0)}=1</expression>
  <name>Operational status was changed on {HOST.NAME} interface {#SNMPVALUE}</name>
  <url/>
  <status>0</status>
  <priority>2</priority>
  <description/>
  <type>0</type>
  <dependencies/>
  </trigger_prototype>
  </trigger_prototypes>
  <graph_prototypes>
  <graph_prototype>
  <name>Traffic on interface {#SNMPVALUE}</name>
  <width>900</width>
  <height>200</height>
  <yaxismin>0.0000</yaxismin>
  <yaxismax>100.0000</yaxismax>
  <show_work_period>0</show_work_period>
  <show_triggers>1</show_triggers>
  <type>0</type>
  <show_legend>1</show_legend>
  <show_3d>0</show_3d>
  <percent_left>0.0000</percent_left>
  <percent_right>0.0000</percent_right>
  <ymin_type_1>0</ymin_type_1>
  <ymax_type_1>0</ymax_type_1>
  <ymin_item_1>0</ymin_item_1>
  <ymax_item_1>0</ymax_item_1>
  <graph_items>
  <graph_item>
  <sortorder>0</sortorder>
  <drawtype>5</drawtype>
  <color>006600</color>
  <yaxisside>0</yaxisside>
  <calc_fnc>2</calc_fnc>
  <type>0</type>
  <item>
  <host>H3C</host>
  <key>ifInOctets[{#SNMPVALUE}]</key>
  </item>
  </graph_item>
  <graph_item>
  <sortorder>1</sortorder>
  <drawtype>0</drawtype>
  <color>000033</color>
  <yaxisside>0</yaxisside>
  <calc_fnc>2</calc_fnc>
  <type>0</type>
  <item>
  <host>H3C</host>
  <key>ifOutOctets[{#SNMPVALUE}]</key>
  </item>
  </graph_item>
  </graph_items>
  </graph_prototype>
  </graph_prototypes>
  <host_prototypes/>
  </discovery_rule>
  </discovery_rules>
  <macros>
  <macro>
  <macro>{$SNMP_COMMUNITY}</macro>
  <value>public</value>
  </macro>
  </macros>
  <templates/>
  <screens/>
  </template>
  </templates>
  <triggers>
  <trigger>
  <expression>{H3C:icmppingloss.min(2m)}&gt;40</expression>
  <name>Ping loss is too high on {HOST.NAME}</name>
  <url/>
  <status>0</status>
  <priority>3</priority>
  <description>Packet loss more than 40% on {HOST.IP}</description>
  <type>0</type>
  <dependencies/>
  </trigger>
  <trigger>
  <expression>{H3C:icmppingsec.avg(2m)}&gt;0.20</expression>
  <name>Response time is too high on {HOST.NAME}</name>
  <url/>
  <status>0</status>
  <priority>2</priority>
  <description>Response time more than 200ms for 2 minutes.</description>
  <type>0</type>
  <dependencies/>
  </trigger>
  <trigger>
  <expression>{H3C:sysUpTime.last(0)}&lt;600</expression>

  <name>{HOST.NAME}>  <url/>
  <status>0</status>
  <priority>1</priority>

  <description>{HOST.NAME}>  <type>1</type>
  <dependencies/>
  </trigger>
  </triggers>
  <value_maps>
  <value_map>
  <name>H3C PowerStatus</name>
  <mappings>
  <mapping>
  <value>1</value>
  <newvalue>Normal</newvalue>
  </mapping>
  <mapping>
  <value>2</value>
  <newvalue>Power Off</newvalue>
  </mapping>
  <mapping>
  <value>3</value>
  <newvalue>No insert</newvalue>
  </mapping>
  </mappings>
  </value_map>
  <value_map>
  <name>SNMP interface status (ifAdminStatus)</name>
  <mappings>
  <mapping>
  <value>1</value>
  <newvalue>up</newvalue>
  </mapping>
  <mapping>
  <value>2</value>
  <newvalue>down</newvalue>
  </mapping>
  <mapping>
  <value>3</value>
  <newvalue>testing</newvalue>
  </mapping>
  </mappings>
  </value_map>
  <value_map>
  <name>SNMP interface status (ifOperStatus)</name>
  <mappings>
  <mapping>
  <value>1</value>
  <newvalue>up</newvalue>
  </mapping>
  <mapping>
  <value>2</value>
  <newvalue>down</newvalue>
  </mapping>
  <mapping>
  <value>3</value>
  <newvalue>testing</newvalue>
  </mapping>
  <mapping>
  <value>4</value>
  <newvalue>unknown</newvalue>
  </mapping>
  <mapping>
  <value>5</value>
  <newvalue>dormant</newvalue>
  </mapping>
  <mapping>
  <value>6</value>
  <newvalue>notPresent</newvalue>
  </mapping>
  <mapping>
  <value>7</value>
  <newvalue>lowerLayerDown</newvalue>
  </mapping>
  </mappings>
  </value_map>
  </value_maps>
  
</zabbix_export>

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-430650-1-1.html 上篇帖子: zabbix监控php-fpm的性能 下篇帖子: Zabbix 3.2升级至3.4最新版
累计签到:5 天
连续签到:1 天
发表于 2018-4-12 14:44:27 | 显示全部楼层
大哥,文件格式都不对,能不能给个附件或者按格式粘贴一下~~~

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表