forked from fernandobrunelli/Zabbix-Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTemplate Module EtherLike-MIB SNMP.xml
126 lines (126 loc) · 5.52 KB
/
Template Module EtherLike-MIB SNMP.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<groups>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<templates>
<template>
<template>Template Module EtherLike-MIB SNMP</template>
<name>Template Module EtherLike-MIB SNMP</name>
<description>Template EtherLike-MIB (duplex control only)
MIBs used:
EtherLike-MIB
Template tooling version used: 0.36</description>
<groups>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<applications>
<application>
<name>Network interfaces</name>
</application>
</applications>
<discovery_rules>
<discovery_rule>
<name>EtherLike-MIB Discovery</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]</snmp_oid>
<key>net.if.duplex.discovery</key>
<delay>1h</delay>
<filter>
<evaltype>AND</evaltype>
<conditions>
<condition>
<macro>{#IFOPERSTATUS}</macro>
<value>1</value>
<formulaid>A</formulaid>
</condition>
<condition>
<macro>{#SNMPVALUE}</macro>
<value>(2|3)</value>
<formulaid>B</formulaid>
</condition>
</conditions>
</filter>
<description>Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.</description>
<item_prototypes>
<item_prototype>
<name>Interface {#IFNAME}({#IFALIAS}): Duplex status</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}</snmp_oid>
<key>net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]</key>
<history>7d</history>
<description>MIB: EtherLike-MIB
The current mode of operation of the MAC
entity. 'unknown' indicates that the current
duplex mode could not be determined.
Management control of the duplex mode is
accomplished through the MAU MIB. When
an interface does not support autonegotiation,
or when autonegotiation is not enabled, the
duplex mode is controlled using
ifMauDefaultType. When autonegotiation is
supported and enabled, duplex mode is controlled
using ifMauAutoNegAdvertisedBits. In either
case, the currently operating duplex mode is
reflected both in this object and in ifMauType.
Note that this object provides redundant
information with ifMauType. Normally, redundant
objects are discouraged. However, in this
instance, it allows a management application to
determine the duplex status of an interface
without having to know every possible value of
ifMauType. This was felt to be sufficiently
valuable to justify the redundancy.
Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus.</description>
<application_prototypes>
<application_prototype>
<name>Interface {#IFNAME}({#IFALIAS})</name>
</application_prototype>
</application_prototypes>
<valuemap>
<name>EtherLike-MIB::dot3StatsDuplexStatus</name>
</valuemap>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}=2</expression>
<name>Interface {#IFNAME}({#IFALIAS}): In half-duplex mode</name>
<priority>WARNING</priority>
<description>Please check autonegotiation settings and cabling</description>
<manual_close>YES</manual_close>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
</discovery_rules>
</template>
</templates>
<value_maps>
<value_map>
<name>EtherLike-MIB::dot3StatsDuplexStatus</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>unknown</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>halfDuplex</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>fullDuplex</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>