root / templates / Template_SNMP_BGP.xml @ 98d9bbd4
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
<zabbix_export>
|
3 |
<version>2.0</version> |
4 |
<date>2015-02-12T23:52:40Z</date> |
5 |
<groups>
|
6 |
<group>
|
7 |
<name>Network Devices</name> |
8 |
</group>
|
9 |
</groups>
|
10 |
<templates>
|
11 |
<template>
|
12 |
<template>Template SNMP BGP</template> |
13 |
<name>Template SNMP BGP</name> |
14 |
<groups>
|
15 |
<group>
|
16 |
<name>Network Devices</name> |
17 |
</group>
|
18 |
</groups>
|
19 |
<applications>
|
20 |
<application>
|
21 |
<name>Routing</name> |
22 |
</application>
|
23 |
</applications>
|
24 |
<items/>
|
25 |
<discovery_rules>
|
26 |
<discovery_rule>
|
27 |
<name>BGP Peers</name> |
28 |
<type>10</type> |
29 |
<snmp_community/>
|
30 |
<snmp_oid/>
|
31 |
<key>advsnmp.discovery[{HOST.IP},"-v2c -c{$SNMP_COMMUNITY}",.1.3.6.1.2.1.15.3.1.7,1.4]</key> |
32 |
<delay>3600</delay> |
33 |
<status>0</status> |
34 |
<allowed_hosts/>
|
35 |
<snmpv3_contextname/>
|
36 |
<snmpv3_securityname/>
|
37 |
<snmpv3_securitylevel>0</snmpv3_securitylevel> |
38 |
<snmpv3_authprotocol>0</snmpv3_authprotocol> |
39 |
<snmpv3_authpassphrase/>
|
40 |
<snmpv3_privprotocol>0</snmpv3_privprotocol> |
41 |
<snmpv3_privpassphrase/>
|
42 |
<delay_flex/>
|
43 |
<params/>
|
44 |
<ipmi_sensor/>
|
45 |
<authtype>0</authtype> |
46 |
<username/>
|
47 |
<password/>
|
48 |
<publickey/>
|
49 |
<privatekey/>
|
50 |
<port/>
|
51 |
<filter>:</filter> |
52 |
<lifetime>30</lifetime> |
53 |
<description/>
|
54 |
<item_prototypes>
|
55 |
<item_prototype>
|
56 |
<name>BGP Peer {#ADVSNMPVALUE} Administrative Status</name> |
57 |
<type>4</type> |
58 |
<snmp_community>{$SNMP_COMMUNITY}</snmp_community> |
59 |
<multiplier>0</multiplier> |
60 |
<snmp_oid>BGP4-MIB::bgpPeerAdminStatus.{#ADVSNMPINDEX2}</snmp_oid> |
61 |
<key>bgpPeerAdminStatus[{#ADVSNMPVALUE}]</key> |
62 |
<delay>60</delay> |
63 |
<history>7</history> |
64 |
<trends>365</trends> |
65 |
<status>0</status> |
66 |
<value_type>3</value_type> |
67 |
<allowed_hosts/>
|
68 |
<units/>
|
69 |
<delta>0</delta> |
70 |
<snmpv3_contextname/>
|
71 |
<snmpv3_securityname/>
|
72 |
<snmpv3_securitylevel>0</snmpv3_securitylevel> |
73 |
<snmpv3_authprotocol>0</snmpv3_authprotocol> |
74 |
<snmpv3_authpassphrase/>
|
75 |
<snmpv3_privprotocol>0</snmpv3_privprotocol> |
76 |
<snmpv3_privpassphrase/>
|
77 |
<formula>1</formula> |
78 |
<delay_flex/>
|
79 |
<params/>
|
80 |
<ipmi_sensor/>
|
81 |
<data_type>0</data_type> |
82 |
<authtype>0</authtype> |
83 |
<username/>
|
84 |
<password/>
|
85 |
<publickey/>
|
86 |
<privatekey/>
|
87 |
<port/>
|
88 |
<description/>
|
89 |
<inventory_link>0</inventory_link> |
90 |
<applications>
|
91 |
<application>
|
92 |
<name>Routing</name> |
93 |
</application>
|
94 |
</applications>
|
95 |
<valuemap>
|
96 |
<name>SNMP BGP Peer Admin Status (bgpPeerAdminStatus)</name> |
97 |
</valuemap>
|
98 |
<logtimefmt/>
|
99 |
</item_prototype>
|
100 |
<item_prototype>
|
101 |
<name>BGP Peer {#ADVSNMPVALUE} Session Time</name> |
102 |
<type>4</type> |
103 |
<snmp_community>{$SNMP_COMMUNITY}</snmp_community> |
104 |
<multiplier>0</multiplier> |
105 |
<snmp_oid>BGP4-MIB::bgpPeerFsmEstablishedTime.{#ADVSNMPINDEX2}</snmp_oid> |
106 |
<key>bgpPeerFsmEstablishedTime[{#ADVSNMPVALUE}]</key> |
107 |
<delay>60</delay> |
108 |
<history>7</history> |
109 |
<trends>365</trends> |
110 |
<status>0</status> |
111 |
<value_type>3</value_type> |
112 |
<allowed_hosts/>
|
113 |
<units>s</units> |
114 |
<delta>0</delta> |
115 |
<snmpv3_contextname/>
|
116 |
<snmpv3_securityname/>
|
117 |
<snmpv3_securitylevel>0</snmpv3_securitylevel> |
118 |
<snmpv3_authprotocol>0</snmpv3_authprotocol> |
119 |
<snmpv3_authpassphrase/>
|
120 |
<snmpv3_privprotocol>0</snmpv3_privprotocol> |
121 |
<snmpv3_privpassphrase/>
|
122 |
<formula>1</formula> |
123 |
<delay_flex/>
|
124 |
<params/>
|
125 |
<ipmi_sensor/>
|
126 |
<data_type>0</data_type> |
127 |
<authtype>0</authtype> |
128 |
<username/>
|
129 |
<password/>
|
130 |
<publickey/>
|
131 |
<privatekey/>
|
132 |
<port/>
|
133 |
<description/>
|
134 |
<inventory_link>0</inventory_link> |
135 |
<applications>
|
136 |
<application>
|
137 |
<name>Routing</name> |
138 |
</application>
|
139 |
</applications>
|
140 |
<valuemap/>
|
141 |
<logtimefmt/>
|
142 |
</item_prototype>
|
143 |
<item_prototype>
|
144 |
<name>BGP Peer {#ADVSNMPVALUE} State</name> |
145 |
<type>4</type> |
146 |
<snmp_community>{$SNMP_COMMUNITY}</snmp_community> |
147 |
<multiplier>0</multiplier> |
148 |
<snmp_oid>BGP4-MIB::bgpPeerState.{#ADVSNMPINDEX2}</snmp_oid> |
149 |
<key>bgpPeerState[{#ADVSNMPVALUE}]</key> |
150 |
<delay>60</delay> |
151 |
<history>7</history> |
152 |
<trends>365</trends> |
153 |
<status>0</status> |
154 |
<value_type>3</value_type> |
155 |
<allowed_hosts/>
|
156 |
<units/>
|
157 |
<delta>0</delta> |
158 |
<snmpv3_contextname/>
|
159 |
<snmpv3_securityname/>
|
160 |
<snmpv3_securitylevel>0</snmpv3_securitylevel> |
161 |
<snmpv3_authprotocol>0</snmpv3_authprotocol> |
162 |
<snmpv3_authpassphrase/>
|
163 |
<snmpv3_privprotocol>0</snmpv3_privprotocol> |
164 |
<snmpv3_privpassphrase/>
|
165 |
<formula>1</formula> |
166 |
<delay_flex/>
|
167 |
<params/>
|
168 |
<ipmi_sensor/>
|
169 |
<data_type>0</data_type> |
170 |
<authtype>0</authtype> |
171 |
<username/>
|
172 |
<password/>
|
173 |
<publickey/>
|
174 |
<privatekey/>
|
175 |
<port/>
|
176 |
<description/>
|
177 |
<inventory_link>0</inventory_link> |
178 |
<applications>
|
179 |
<application>
|
180 |
<name>Routing</name> |
181 |
</application>
|
182 |
</applications>
|
183 |
<valuemap>
|
184 |
<name>SNMP BGP Peer State (bgpPeerState)</name> |
185 |
</valuemap>
|
186 |
<logtimefmt/>
|
187 |
</item_prototype>
|
188 |
</item_prototypes>
|
189 |
<trigger_prototypes>
|
190 |
<trigger_prototype>
|
191 |
<expression>{Template SNMP BGP:bgpPeerAdminStatus[{#ADVSNMPVALUE}].count(#4320, 2, "eq")}=4320 & {Template SNMP BGP:bgpPeerState[{#ADVSNMPVALUE}].count(#4320, 6,"eq")}<3888 & {Template SNMP BGP:bgpPeerState[{#ADVSNMPVALUE}].last(#1)}#6</expression> |
192 |
<name>BGP Session Down (>3j) with Peer {#ADVSNMPVALUE} on host {HOST.NAME}</name> |
193 |
<url/>
|
194 |
<status>0</status> |
195 |
<priority>3</priority> |
196 |
<description/>
|
197 |
<type>0</type> |
198 |
</trigger_prototype>
|
199 |
<trigger_prototype>
|
200 |
<expression>{Template SNMP BGP:bgpPeerAdminStatus[{#ADVSNMPVALUE}].count(#300, 2, "eq")}=300 & {Template SNMP BGP:bgpPeerState[{#ADVSNMPVALUE}].count(#300, 6,"eq")}<270 & {Template SNMP BGP:bgpPeerState[{#ADVSNMPVALUE}].last(#1)}#6</expression> |
201 |
<name>BGP Session Down (>5h) with Peer {#ADVSNMPVALUE} on host {HOST.NAME}</name> |
202 |
<url/>
|
203 |
<status>0</status> |
204 |
<priority>2</priority> |
205 |
<description/>
|
206 |
<type>0</type> |
207 |
</trigger_prototype>
|
208 |
</trigger_prototypes>
|
209 |
<graph_prototypes/>
|
210 |
<host_prototypes/>
|
211 |
</discovery_rule>
|
212 |
</discovery_rules>
|
213 |
<macros/>
|
214 |
<templates/>
|
215 |
<screens/>
|
216 |
</template>
|
217 |
</templates>
|
218 |
</zabbix_export>
|