Templates for SNMP v1 and v2 devices (ZBXNEXT-3725)

[ZBXNEXT-3920] SNMP Devices Templates: Out of the box availability for the users Created: 2017 Jun 07  Updated: 2024 Apr 10  Resolved: 2017 Aug 24

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: None
Affects Version/s: None
Fix Version/s: 3.4.0rc1, 3.4.1rc1, 3.4 (plan), 4.0.0alpha1, 4.0 (plan)

Type: Change Request (Sub-task) Priority: Trivial
Reporter: Rostislav Palivoda Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
depends on ZBXNEXT-4001 Introduce unique keys for Items and T... Closed
Team: Team C
Sprint: Sprint 2, Sprint 3, Sprint 4, Sprint 5, Sprint 6, Sprint 7, Sprint 8, Sprint 9, Sprint 10, Sprint 11, Sprint 12, Sprint 13, Sprint 14, Sprint 15, Sprint 16
Story Points: 1

 Description   

Currently templates are not pre-installed in distributive - we just have folder trunk/templates. It does not make sense for end users.
For 3.4 we could add them manually to SQL scripts.

Still solution is required for use cases:
1) I'm end user and want to install / update single template through web interface.
2) I'm admin and making new installation of Zabbix 3.4 - all SNMP devices templates should be available out of the box.

Possible solutions:



 Comments   
Comment by Vitaly Zhuravlev [ 2017 Jun 22 ]

(1) We need to add global macro {$SNMP_PORT} with default value of 161 as this would be used in all out of the box templates' items.
Not required anymore. will use empty port instead.
SOLVED
vso WONTFIX

Comment by Vitaly Zhuravlev [ 2017 Jun 28 ]

(2) Also it is required to update Global Regular expression @Network interfaces for discovery:
They are needed to filter out loopbacks and null interfaces on most systems from network pack, like Cisco, Juniper, Huawei, D-Link, Aclatel and others.

Result is FALSE: ^Software Loopback Interface
Result is FALSE: ^(In)?[lL]oop[bB]ack[0-9._]*$
Result is FALSE: ^NULL[0-9.]*$
Result is FALSE: ^[lL]o[0-9.]*$
Result is FALSE: ^[sS]ystem$
Result is FALSE: ^Nu[0-9.]*$

vso expression does not match In Loopback is it as expected ? Notice that there can be no space between.

^(In)?[lL]oop[bB]ack[0-9._]*$

vzhuravlev, no its fine, we need to match 'InLoopBack0' without spaces

vso RESOLVED in r70979

wiper CLOSED

Comment by Vitaly Zhuravlev [ 2017 Jul 31 ]

(3) - We need to convert XMLs from trunk/templates/module and trunk/templates/net to templates.sql.
Notes:

  • Current templates from previous versions of Zabbix should probably also go there from data.sql?
  • As well as all Global Regular Expressions (since they are used in preinstalled Templates only)?

P.S. Please note that Network devices templates are not final. There will be few fixes before 3.4 release.

vso we already have export_data.sh script for this, simply should import templates and do export of new data.
vso RESOLVED in r70921:70979

wiper CLOSED

Comment by Andris Zeila [ 2017 Aug 15 ]

Data exporting/importing is working.

But isn't names of some templates too long? For example Template Module Cisco CISCO-PROCESS-MIB IOS later to 12.0_3_T and prior to 12.2_3.5 SNMPv2 pushes the UI to the limits.

Comment by Vladislavs Sokurenko [ 2017 Aug 15 ]

Available in 3.4.0rc1 r71261 (trunk)

Comment by Martins Valkovskis [ 2017 Aug 15 ]

(7) Documentation:

vso WON'T FIX, documentation will be finished in parent task.

Comment by Vladislavs Sokurenko [ 2017 Aug 24 ]

Fixed in:
pre-3.4.1rc1 r71615
pre-4.0.0alpha1 r71616 (trunk)

Generated at Fri Apr 26 03:19:04 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.