[ZBX-13455] No LLD rule error in frontend after creating host with errors Created: 2018 Feb 09  Updated: 2024 Apr 10  Resolved: 2018 Mar 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.0.0alpha3
Fix Version/s: 3.0.16rc1, 3.4.8rc1, 4.0.0alpha5, 4.0 (plan)

Type: Incident report Priority: Trivial
Reporter: dimir Assignee: Viktors Tjarve
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team A
Sprint: Sprint 28
Story Points: 0.5

 Description   

Using LLD host discovery and SNMP items. Zabbix is configured incorrectly: initial host has only "Zabbix agent" host interface but discovered host items expect "SNMP agent" interface. The problem is that in this case instead of getting an error the discovered host is created without the configured template and the error message is only in Zabbix server log file, no error indication in frontend.

Steps to reproduce:

  1. Create template "Template SNMP" with at least one SNMP type item.
  2. Create template "Template host discovery" with LLD rule and host prototype.
  3. Link "Template SNMP" to that host prototype.
  4. Create host "host1" with default interface.
  5. Link "Template host discovery" to it.
  6. Using zabbix_sender send data for host discovery rule.
  7. Make sure the host is created.
  8. Now go to Templates of that host.

Result:
No templates are linked to discovered host.
No identification of an error in frontend.
There is an error message in zabbix server log file:

  2535:20180209:021758.628 cannot link template(s) "Template SNMP" to host "discovered.host": cannot find "SNMP" host interface

Expected:
The templateless host is not created and host discovery rule displays error in frontend.



 Comments   
Comment by Viktors Tjarve [ 2018 Feb 21 ]

It seems to me that a frontend error message is defiantly required in this case. But I'm not so sure about "not creating" a templateless host. Because when it is detected that host interface cannot be found the host is already created. That means removing an already created host or redesigning host validation. The decision should be made about not creating such templateless host.

Comment by richlv [ 2018 Feb 21 ]

yeah, this would have to be caught during the validation. adding-deleting a host is a no-go.

Comment by dimir [ 2018 Feb 21 ]

Sounds perfect.

Comment by Vladislavs Sokurenko [ 2018 Feb 22 ]

I propose simply to add error message in frontend as task name says:

No LLD rule error in frontend after creating host with errors

Comment by Viktors Tjarve [ 2018 Feb 26 ]

It was decided that at this point there will be no changes to the behavior of how hosts are created for LLD.
Added error message to the frontend when templates cannot be linked or unlinked from host.

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

Comment by Viktors Tjarve [ 2018 Mar 02 ]
  • 3.0.16rc1 r78220
  • 3.4.8rc1 r78222
  • 4.0.0alpha5 r78224
Generated at Thu Apr 25 23:35:38 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.