Bug 825833 - default configuration of Hostname causes conflicts and false alarms
Summary: default configuration of Hostname causes conflicts and false alarms
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: zabbix
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dan Horák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-28 15:49 UTC by Paul Wouters
Modified: 2013-11-21 17:37 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-20 21:14:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Paul Wouters 2012-05-28 15:49:17 UTC
Description of problem:
I'm new to zabbix, but it seems that the default "Hostname=Zabbix Server" in the agent file is both wrong and misleading. It should be the name of the client not the server. It should also be unique, so by setting this, you break the default agent install. 

I believe this option should be left unset, so it defaults to the HostItem using the hostname of the machine it runs on.

Comment 1 Volker Fröhlich 2012-05-28 21:00:50 UTC
Adding to the discussion:

This setting is upstream's default. Upstreams idea with this is, getting Zabbix up and running as quick as possible. While I don't like that setting a lot either, I don't consider it a huge problem. You have to configure your agent anyways -- be it just to configure the server address.

"Hostname" is only used for active items, being, the agent creates a TCP connection to the server. If two agents on different machines use the same "Hostname", the server accepts data from both of them. There seems to be no way to detect that on the server side, right now.

I'm not sure if this is exactly what you are describing though. The "Hostname" in Zabbix does not have to reflect the real name of the machine at all. It is totally arbitrary. As you already stated, the name must be unique in the Zabbix database.

Just using the default HostNameItem does not necessarily result in a unique name, as it is not the FQDN.

Comment 2 Paul Wouters 2012-06-04 22:40:21 UTC
But at least it will not mislead you into thinking that the option specifies the server name, not the client name.

Comment 3 Volker Fröhlich 2012-07-26 06:35:53 UTC
While this could, of course, be changed in EPEL/Fedora, Dan Horak is inclined to stick with upstream as close as feasible.

May I suggest to rather discuss this matter there, as it affects Zabbix users in general?

Comment 4 Volker Fröhlich 2012-08-16 06:40:44 UTC
I just stumbled upon

https://support.zabbix.com/browse/ZBXNEXT-498

Comment 5 Volker Fröhlich 2012-10-15 17:17:48 UTC
What are we going to do now?

Comment 6 Volker Fröhlich 2013-11-20 21:14:16 UTC
With the upstream ticket marked as WONTFIX and no useful solution to the problem: WONTFIX.

Comment 7 Paul Wouters 2013-11-21 17:37:05 UTC
I disagree with this outcome, but I gave up on running zabbix a long time ago.


Note You need to log in before you can comment on or make changes to this bug.