[ZBX-4997] Import of modified SNMP Template leads to SNMP checks failing for all Items of affected Host Created: 2012 May 14  Updated: 2017 May 30  Resolved: 2012 May 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 2.0.0rc4
Fix Version/s: 2.0.0rc5

Type: Incident report Priority: Blocker
Reporter: Simon Kowallik Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: export, import, items, snmp, template
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix server v2.0.0rc4 (revision 27508) (12 May 2012)
Compilation time: May 14 2012 11:17:25
psql (PostgreSQL) 9.1.3


Attachments: XML File zbx_host_A.xml     XML File zbx_host_B.xml     XML File zbx_templates_A_MODIFIED.xml     XML File zbx_templates_A_ORIG.xml     XML File zbx_templates_B_MODIFIED.xml     XML File zbx_templates_B_ORIG.xml    

 Description   

When exporting a Template with SNMP Items, modifying it offline and importing it again, SNMP checks fail for all SNMP Items.

I have attached two test scenarios which replicate the problem.
The _ORIG xml files are the original Templates exported. The _MODIFIED xml files contain the modification.
After importing the _MODIFIED xml files, the problem will occur.

zabbix_server.log:

Test_A zabbix_server.log:
26894:20120514:220408.548 enabling SNMP checks on host [test.example.com]: host became available
26929:20120514:220712.691 item [test.example.com:sysname.1.3.6.1.2.1.1.5.0] became not supported: : [-3] Temporary failure in name resolution

Test_B zabbix_server.log:
26894:20120514:221441.686 enabling SNMP checks on host [test.example.com]: host became available
26894:20120514:221641.722 SNMP item [sysdesc.SNMP] on host [test.example.com] failed: first network error, wait for 15 seconds
26896:20120514:221656.739 SNMP item [sysdesc.SNMP] on host [test.example.com] failed: another network error, wait for 15 seconds
26896:20120514:221711.747 SNMP item [sysdesc.SNMP] on host [test.example.com] failed: another network error, wait for 15 seconds
26896:20120514:221726.755 SNMP item [sysdesc.SNMP] on host [test.example.com] failed: another network error, wait for 15 seconds
26896:20120514:221741.775 temporarily disabling SNMP checks on host [test.example.com]: host unavailable

zabbix_server restart does not solve the problem.

Maybe some problem in the Interface code of zabbix_server?

Test_A:
Just one Item in one Template with one Host.
zbx_host_A.xml
zbx_template_A_ORIG.xml
zbx_template_A_MODIFIED.xml

Test_B:
Two Items in one Template with one Host. Only one Item will be modified.
zbx_host_B.xml
zbx_template_B_ORIG.xml
zbx_template_B_MODIFIED.xml



 Comments   
Comment by Simon Kowallik [ 2012 May 15 ]

After some more testing (and chating with richlv on #zabbix) it turns out, that an import of an existing template sets the 'interfaceid' to NULL for all Items of that template.
It doesn't matter if the Template was modified or not, just export & import will reproduce the problem.

As always: Thanks richlv!

Comment by Eduards Samersovs (Inactive) [ 2012 May 15 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4995

Comment by Toms (Inactive) [ 2012 May 15 ]

TESTED

Comment by Alexey Fukalov [ 2012 May 17 ]

svn://svn.zabbix.com/trunk 27605

Generated at Thu Apr 25 07:53:32 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.