Ad Widget

Collapse

Agent config: Hostname parameter unique?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • klabarre
    Junior Member
    • Mar 2011
    • 6

    #1

    Agent config: Hostname parameter unique?

    The agent configuration file states that the Hostname parameter (used for active checks only) needs to match what's used at the Zabbix server. It also states that it should be unique, but does not specify where it is to be unique. Does this name need to be unique *at the Zabbix server*?

    Example: I have two hosts I'm monitoring in different locations that just happen to have the same uname "mywebserver1". If using active checks is it necessary to set the Hostname= parameter at these two agents to unique values, maybe "mywebserver1a" and "mywebserver1b"?

    My guess is that this Hostname= parameter is used to identify while agent is connecting to the Zabbix server for active checks.

    -Kevin
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Correct assumptions.

    In regards to using Zabbix agent (active) -
    In Zabbix frontend, you cannot have 2 hosts named the same. You can name a host whatever you wish in the zabbix_agentd.conf file for HostName=xxxxxx

    Just make sure they match what is in the frontend in regards to spelling and case. if you make changes on the host agent, be sure to restart the agent process.

    Comment

    Working...