Skip to content

Commit

Permalink
Adding 'by SNMP' to template name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo committed Jan 25, 2023
1 parent 4b4666f commit da8e82f
Showing 1 changed file with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
zabbix_export:
version: '6.2'
date: '2023-01-25T06:05:01Z'
date: '2023-01-25T08:37:04Z'
template_groups:
-
uuid: 36bff6c29af64692839d077febfc7079
name: 'Templates/Network devices'
templates:
-
uuid: 0de648facfa14d89b3bcff20e81fae6d
template: 'Mikrotik RB260 v1.17'
name: 'Mikrotik RB260 v1.17'
template: 'Mikrotik RB260 v1.17 by SNMP'
name: 'Mikrotik RB260 v1.17 by SNMP'
description: 'Monitor the old Mikrotik RB260 (fw1.17) switches'
groups:
-
Expand Down Expand Up @@ -458,9 +458,9 @@ zabbix_export:
trigger_prototypes:
-
uuid: d02e2b11451348d285adaef3a0dda16f
expression: '{$IFCONTROL:"{#IFDESCR}"}=1 and last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
expression: '{$IFCONTROL:"{#IFDESCR}"}=1 and last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: 'last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
recovery_expression: 'last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
name: 'Interface {#IFDESCR}: Link down'
opdata: 'Current state: {ITEM.LASTVALUE1}'
priority: AVERAGE
Expand Down Expand Up @@ -502,21 +502,21 @@ zabbix_export:
-
uuid: 6fbc44f0298149b398cf8d28052fb9c9
expression: |
change(/Mikrotik RB260 v1.17/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Mikrotik RB260 v1.17/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
change(/Mikrotik RB260 v1.17 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Mikrotik RB260 v1.17 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
and (
last(/Mikrotik RB260 v1.17/net.if.type[ifType.{#SNMPINDEX}])=6 or
last(/Mikrotik RB260 v1.17/net.if.type[ifType.{#SNMPINDEX}])=7 or
last(/Mikrotik RB260 v1.17/net.if.type[ifType.{#SNMPINDEX}])=11 or
last(/Mikrotik RB260 v1.17/net.if.type[ifType.{#SNMPINDEX}])=62 or
last(/Mikrotik RB260 v1.17/net.if.type[ifType.{#SNMPINDEX}])=69 or
last(/Mikrotik RB260 v1.17/net.if.type[ifType.{#SNMPINDEX}])=117
last(/Mikrotik RB260 v1.17 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or
last(/Mikrotik RB260 v1.17 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or
last(/Mikrotik RB260 v1.17 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or
last(/Mikrotik RB260 v1.17 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or
last(/Mikrotik RB260 v1.17 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or
last(/Mikrotik RB260 v1.17 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117
)
and
(last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2)
(last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2)
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: |
(change(/Mikrotik RB260 v1.17/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Mikrotik RB260 v1.17/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or
(last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}])=2)
(change(/Mikrotik RB260 v1.17 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Mikrotik RB260 v1.17 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or
(last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2)
name: 'Interface {#IFDESCR}: Ethernet has changed to lower speed than it was before'
opdata: 'Current reported speed: {ITEM.LASTVALUE1}'
priority: INFO
Expand All @@ -525,22 +525,22 @@ zabbix_export:
dependencies:
-
name: 'Interface {#IFDESCR}: Link down'
expression: '{$IFCONTROL:"{#IFDESCR}"}=1 and last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
recovery_expression: 'last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
expression: '{$IFCONTROL:"{#IFDESCR}"}=1 and last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
recovery_expression: 'last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
tags:
-
tag: scope
value: performance
-
uuid: 6c7b1778f09c42348656bb1eb86b2580
expression: |
(avg(/Mikrotik RB260 v1.17/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mikrotik RB260 v1.17/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or
avg(/Mikrotik RB260 v1.17/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mikrotik RB260 v1.17/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and
last(/Mikrotik RB260 v1.17/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
(avg(/Mikrotik RB260 v1.17 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mikrotik RB260 v1.17 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or
avg(/Mikrotik RB260 v1.17 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mikrotik RB260 v1.17 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and
last(/Mikrotik RB260 v1.17 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: |
avg(/Mikrotik RB260 v1.17/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mikrotik RB260 v1.17/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and
avg(/Mikrotik RB260 v1.17/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mikrotik RB260 v1.17/net.if.speed[ifHighSpeed.{#SNMPINDEX}])
avg(/Mikrotik RB260 v1.17 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mikrotik RB260 v1.17 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and
avg(/Mikrotik RB260 v1.17 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mikrotik RB260 v1.17 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])
name: 'Interface {#IFDESCR}: High bandwidth usage'
opdata: 'Current state: {ITEM.LASTVALUE1}'
priority: WARNING
Expand All @@ -549,8 +549,8 @@ zabbix_export:
dependencies:
-
name: 'Interface {#IFDESCR}: Link down'
expression: '{$IFCONTROL:"{#IFDESCR}"}=1 and last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
recovery_expression: 'last(/Mikrotik RB260 v1.17/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
expression: '{$IFCONTROL:"{#IFDESCR}"}=1 and last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
recovery_expression: 'last(/Mikrotik RB260 v1.17 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
tags:
-
tag: scope
Expand All @@ -564,14 +564,14 @@ zabbix_export:
color: 1A7C11
calc_fnc: ALL
item:
host: 'Mikrotik RB260 v1.17'
host: 'Mikrotik RB260 v1.17 by SNMP'
key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]'
-
sortorder: '1'
color: 0288D1
calc_fnc: ALL
item:
host: 'Mikrotik RB260 v1.17'
host: 'Mikrotik RB260 v1.17 by SNMP'
key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]'
tags:
-
Expand Down Expand Up @@ -610,7 +610,7 @@ zabbix_export:
type: GRAPH_PROTOTYPE
name: graphid
value:
host: 'Mikrotik RB260 v1.17'
host: 'Mikrotik RB260 v1.17 by SNMP'
name: 'Interface {#IFDESCR}: Network traffic'
valuemaps:
-
Expand Down

0 comments on commit da8e82f

Please sign in to comment.