zabbix snmp模板通用

<?xml version="1.0" encoding="ISO-8859-1"?>
<zabbix_export>
<version>3.0</version>
<date>2018-12-11T09:01:53Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template SNMP Device</template>
<name>Template SNMP Device</name>
<description/>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications/>
<items>
<item>
<name>总内存</name>
<type>4</type>
<snmp_community>{SNMP_COMMUNITY}</snmp_community> <multiplier>1</multiplier> <snmp_oid>.1.3.6.1.2.1.25.2.2.0</snmp_oid> <key>hrMemorySize</key> <delay>60</delay> <history>7</history> <trends>365</trends> <status>0</status> <value_type>0</value_type> <allowed_hosts/> <units>B</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>1024</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>空闲内存百分比</name> <type>15</type> <snmp_community/> <multiplier>0</multiplier> <snmp_oid/> <key>idlememory</key> <delay>60</delay> <history>7</history> <trends>365</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>100*last("memTotalFree")/last("hrMemorySize")</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>1分钟内平均负载</name> <type>4</type> <snmp_community>{SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.2021.10.1.3.1</snmp_oid>
<key>Load1</key>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>0</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>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>虚拟内存剩余</name>
<type>4</type>
<snmp_community>{SNMP_COMMUNITY}</snmp_community> <multiplier>1</multiplier> <snmp_oid>.1.3.6.1.4.1.2021.4.4.0</snmp_oid> <key>memAvailSwap</key> <delay>60</delay> <history>7</history> <trends>365</trends> <status>0</status> <value_type>0</value_type> <allowed_hosts/> <units>B</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>1024</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>RAM内存剩余</name> <type>4</type> <snmp_community>{SNMP_COMMUNITY}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>.1.3.6.1.4.1.2021.4.11.0</snmp_oid>
<key>memTotalFree</key>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>B</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>1024</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>虚拟内存大小</name>
<type>4</type>
<snmp_community>{SNMP_COMMUNITY}</snmp_community> <multiplier>1</multiplier> <snmp_oid>.1.3.6.1.4.1.2021.4.3.0</snmp_oid> <key>memTotalSwap</key> <delay>60</delay> <history>7</history> <trends>365</trends> <status>0</status> <value_type>0</value_type> <allowed_hosts/> <units>B</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>1024</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>空闲CPU百分比</name> <type>4</type> <snmp_community>{SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.2021.11.11.0</snmp_oid>
<key>ssCpuIdle</key>
<delay>60</delay>
<history>7</history>
<trends>365</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>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
</items>
<discovery_rules/>
<macros>
<macro>
<macro>{SNMP_COMMUNITY}</macro> <value>zabbix</value> </macro> </macros> <templates> <template> <name>Template SNMP Generic</name> </template> <template> <name>Template SNMP Interfaces</name> </template> </templates> <screens/> </template> <template> <template>Template SNMP Disks</template> <name>Template SNMP Disks</name> <description/> <groups> <group> <name>Templates</name> </group> </groups> <applications> <application> <name>Disk partitions</name> </application> </applications> <items/> <discovery_rules> <discovery_rule> <name>Disk partitions</name> <type>4</type> <snmp_community>{SNMP_COMMUNITY}</snmp_community>
<snmp_oid>discovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]</snmp_oid>
<key>hrStorageDescr</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>1</formula>
<conditions>
<condition>
<macro>{#SNMPVALUE}</macro>
<value>@Storage devices for SNMP discovery</value>
<operator>8</operator>
<formulaid>A</formulaid>
</condition>
</conditions>
</filter>
<lifetime>30</lifetime>
<description>The rule will discover all disk partitions matching the global regexp "Storage devices for SNMP discovery". {SNMP_COMMUNITY} is a global macro.</description> <item_prototypes> <item_prototype> <name>Allocation units for storage1</name>
<type>4</type>
<snmp_community>{SNMP_COMMUNITY}</snmp_community> <multiplier>0</multiplier> <snmp_oid>HOST-RESOURCES-MIB::hrStorageAllocationUnits.{#SNMPINDEX}</snmp_oid> <key>hrStorageAllocationUnits[{#SNMPVALUE}]</key> <delay>3600</delay> <history>7</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts/> <units>B</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>The size, in bytes, of the data objects allocated from this pool. If this entry is monitoring sectors, blocks, buffers, or packets, for example, this number will commonly be greater than one. Otherwise this number will typically be one.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Disk partitions</name> </application> </applications> <valuemap/> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Description of storage1</name>
<type>4</type>
<snmp_community>{SNMP_COMMUNITY}</snmp_community> <multiplier>0</multiplier> <snmp_oid>HOST-RESOURCES-MIB::hrStorageDescr.{#SNMPINDEX}</snmp_oid> <key>hrStorageDescr[{#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>A description of the type and instance of the storage described by this entry.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Disk partitions</name> </application> </applications> <valuemap/> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Total disk space on1</name>
<type>15</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>hrStorageSizeInBytes[{#SNMPVALUE}]</key>
<delay>3600</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>B</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>last("hrStorageSize[{#SNMPVALUE}]") * last("hrStorageAllocationUnits[{#SNMPVALUE}]")</params>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>This is a calculated item, we need it to get total disk space in bytes.</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Disk partitions</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Total disk space on 1 in units</name> <type>4</type> <snmp_community>{SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>HOST-RESOURCES-MIB::hrStorageSize.{#SNMPINDEX}</snmp_oid>
<key>hrStorageSize[{#SNMPVALUE}]</key>
<delay>3600</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>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>The size of the storage represented by this entry, in units of hrStorageAllocationUnits. This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. For example, the amount of main memory allocated to a buffer pool might be modified or the amount of disk space allocated to virtual memory might be modified.</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Disk partitions</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Used disk space on 1</name> <type>15</type> <snmp_community/> <multiplier>0</multiplier> <snmp_oid/> <key>hrStorageUsedInBytes[{#SNMPVALUE}]</key> <delay>60</delay> <history>7</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts/> <units>B</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>last("hrStorageUsed[{#SNMPVALUE}]") * last("hrStorageAllocationUnits[{#SNMPVALUE}]")</params> <ipmi_sensor/> <data_type>0</data_type> <authtype>0</authtype> <username/> <password/> <publickey/> <privatekey/> <port/> <description>This is a calculated item, we need it to get used disk space in bytes.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Disk partitions</name> </application> </applications> <valuemap/> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Used disk space on1 in units</name>
<type>4</type>
<snmp_community>{SNMP_COMMUNITY}</snmp_community> <multiplier>0</multiplier> <snmp_oid>HOST-RESOURCES-MIB::hrStorageUsed.{#SNMPINDEX}</snmp_oid> <key>hrStorageUsed[{#SNMPVALUE}]</key> <delay>60</delay> <history>7</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts/> <units>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>The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Disk partitions</name> </application> </applications> <valuemap/> <logtimefmt/> <application_prototypes/> </item_prototype> </item_prototypes> <trigger_prototypes> <trigger_prototype> <expression>{Template SNMP Disks:hrStorageUsed[{#SNMPVALUE}].last(0)} / {Template SNMP Disks:hrStorageSize[{#SNMPVALUE}].last(0)} > 0.8</expression> <name>Free disk space is less than 20% on volume {#SNMPVALUE}</name> <url/> <status>0</status> <priority>2</priority> <description/> <type>0</type> <dependencies/> </trigger_prototype> </trigger_prototypes> <graph_prototypes> <graph_prototype> <name>Disk space usage {#SNMPVALUE}</name> <width>600</width> <height>340</height> <yaxismin>0.0000</yaxismin> <yaxismax>100.0000</yaxismax> <show_work_period>0</show_work_period> <show_triggers>0</show_triggers> <type>2</type> <show_legend>1</show_legend> <show_3d>1</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>0</drawtype> <color>00C800</color> <yaxisside>0</yaxisside> <calc_fnc>2</calc_fnc> <type>2</type> <item> <host>Template SNMP Disks</host> <key>hrStorageSizeInBytes[{#SNMPVALUE}]</key> </item> </graph_item> <graph_item> <sortorder>1</sortorder> <drawtype>0</drawtype> <color>C80000</color> <yaxisside>0</yaxisside> <calc_fnc>2</calc_fnc> <type>0</type> <item> <host>Template SNMP Disks</host> <key>hrStorageUsedInBytes[{#SNMPVALUE}]</key> </item> </graph_item> </graph_items> </graph_prototype> </graph_prototypes> <host_prototypes/> </discovery_rule> </discovery_rules> <macros/> <templates/> <screens/> </template> <template> <template>Template SNMP Generic</template> <name>Template SNMP Generic</name> <description/> <groups> <group> <name>Templates</name> </group> </groups> <applications> <application> <name>General</name> </application> </applications> <items> <item> <name>Device contact details</name> <type>4</type> <snmp_community>{SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>SNMPv2-MIB::sysContact.0</snmp_oid>
<key>sysContact</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>The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string.</description>
<inventory_link>23</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Device description</name>
<type>4</type>
<snmp_community>{SNMP_COMMUNITY}</snmp_community> <multiplier>0</multiplier> <snmp_oid>SNMPv2-MIB::sysDescr.0</snmp_oid> <key>sysDescr</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>A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software.</description> <inventory_link>14</inventory_link> <applications> <application> <name>General</name> </application> </applications> <valuemap/> <logtimefmt/> </item> <item> <name>Device location</name> <type>4</type> <snmp_community>{SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>SNMPv2-MIB::sysLocation.0</snmp_oid>
<key>sysLocation</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>The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string.</description>
<inventory_link>24</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Device name</name>
<type>4</type>
<snmp_community>{SNMP_COMMUNITY}</snmp_community> <multiplier>0</multiplier> <snmp_oid>SNMPv2-MIB::sysName.0</snmp_oid> <key>sysName</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>An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.</description> <inventory_link>3</inventory_link> <applications> <application> <name>General</name> </application> </applications> <valuemap/> <logtimefmt/> </item> <item> <name>Device uptime</name> <type>4</type> <snmp_community>{SNMP_COMMUNITY}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>SNMPv2-MIB::sysUpTime.0</snmp_oid>
<key>sysUpTime</key>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</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>0.01</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>The time since the network management portion of the system was last re-initialized.</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens/>
</template>
<template>
<template>Template SNMP Interfaces</template>
<name>Template SNMP Interfaces</name>
<description/>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>Interfaces</name>
</application>
</applications>
<items>
<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>365</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>The number of network interfaces (regardless of their current state) present on this system.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Interfaces</name> </application> </applications> <valuemap/> <logtimefmt/> </item> </items> <discovery_rules> <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>You may also consider using IF-MIB::ifType or IF-MIB::ifAlias for discovery depending on your filtering needs. {SNMP_COMMUNITY} is a global macro.</description> <item_prototypes> <item_prototype> <name>Admin status of interface1</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>365</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>The desired state of the interface.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Interfaces</name> </application> </applications> <valuemap> <name>SNMP interface status (ifAdminStatus)</name> </valuemap> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Alias of interface1</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>Interfaces</name> </application> </applications> <valuemap/> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Description of interface1</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>A textual string containing information about the interface. This string should include the name of the manufacturer, the product name and the version of the interface hardware/software.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Interfaces</name> </application> </applications> <valuemap/> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Inbound errors on interface1</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>365</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>For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Interfaces</name> </application> </applications> <valuemap/> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Incoming traffic on interface1</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>365</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>The number of octets in valid MAC frames received on this interface, including the MAC header and FCS.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Interfaces</name> </application> </applications> <valuemap/> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Operational status of interface1</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>365</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>The current operational state of the interface.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Interfaces</name> </application> </applications> <valuemap> <name>SNMP interface status (ifOperStatus)</name> </valuemap> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Outbound errors on interface1</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>365</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>For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors. For character-oriented or fixed-length interfaces, the number of outbound transmission units that could not be transmitted because of errors.</description> <inventory_link>0</inventory_link> <applications> <application> <name>Interfaces</name> </application> </applications> <valuemap/> <logtimefmt/> <application_prototypes/> </item_prototype> <item_prototype> <name>Outgoing traffic on interface1</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>365</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>The number of octets transmitted in MAC frames on this interface, including the MAC header and FCS.</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Interfaces</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{Template SNMP Interfaces:ifOperStatus[{#SNMPVALUE}].diff(0)}=1</expression>
<name>Operational status was changed on {HOST.NAME} interface {#SNMPVALUE}</name>
<url/>
<status>0</status>
<priority>1</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>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>5</drawtype>
<color>00AA00</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template SNMP Interfaces</host>
<key>ifInOctets[{#SNMPVALUE}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>5</drawtype>
<color>3333FF</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template SNMP Interfaces</host>
<key>ifOutOctets[{#SNMPVALUE}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<host_prototypes/>
</discovery_rule>
</discovery_rules>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<triggers>
<trigger>
<expression>{Template SNMP Device:idlememory.last()}<20</expression>
<name>设备内存不足20%</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>{Template SNMP Device:Load1.avg(5m)}>5</expression>
<name>设备负载过高</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>{Template SNMP Device:sysUpTime.change(0)}<0</expression>
<name>设备重启</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
</triggers>
<value_maps>
<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>

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 220,367评论 6 512
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,959评论 3 396
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 166,750评论 0 357
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 59,226评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 68,252评论 6 397
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,975评论 1 308
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,592评论 3 420
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,497评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 46,027评论 1 319
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,147评论 3 340
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,274评论 1 352
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,953评论 5 347
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,623评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,143评论 0 23
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,260评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,607评论 3 375
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,271评论 2 358

推荐阅读更多精彩内容