[ZBXNEXT-4904] host auto registration message when kernel changed Created: 2018 Nov 13  Updated: 2018 Dec 06

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: 4.0.1
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: Dmitri Assignee: Zabbix Support Team
Resolution: Unresolved Votes: 0
Labels: autoregistration, server, uname
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04 LTS



 Description   

Steps to reproduce:

  1. Define new action for Linux  host auto registration with next conditions: "Host metadata contains Linux" and operations: "send message to user groups", "add to host group: Linux Host", "Link to template: Template OS Linux"
  2. Install zabbix agent on linux host and define next param: 
    1. ServerActive=[your zabbix server]
    2. #Hostname=Zabbix server  // disable this line
    3. HostnameItem=system.hostname
    4. HostMetadataItem=system.uname
  3. Run zabbix agent and wait for auto registration message
  4. Change server uname (for example upgrade Linux kernel)
  5. Restart zabbix agent

Result:
After kernel upgrade,  will get auto registration message again, but no new host created in zabbix.
No log about new host creation.
Same message, after each kernel change.
Same behavior with Windows hosts.
Problem appeared after update to from 3.4.15 to 4.0.1
Expected:
Only one message, after first host registration



 Comments   
Comment by richlv [ 2018 Nov 13 ]

This might be related to an improvement in 4.0 - https://www.zabbix.com/documentation/4.0/manual/introduction/whatsnew400#more_flexible_active_agent_auto-registration . No new host sounds correct, as the hostname did not change.

Comment by Dmitri [ 2018 Nov 13 ]

you are absolutely right, but now I have even more questions:

auto registration gives me a very large selection of Operations,
but at the same time I still have the same choice of Conditions, only: Host Metadata, Host Name and proxy.

I thought it was logical to add new condition, something like: "Host Exist? Y/N" 

It would also be logical to add to zabbix agent a parameter like: HostMetaTags, through which I can define the behavior of auto registration 

Comment by richlv [ 2018 Nov 13 ]

A condition to limit some operations to host creation seems useful indeed - perhaps this issue can be moved to ZBXNEXT.

Generated at Fri Apr 19 11:39:43 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.