Ad Widget

Collapse

PATCH: Make Hostname Optional In zabbix_agent(d).conf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #1

    PATCH: Make Hostname Optional In zabbix_agent(d).conf

    Greetings,

    A number of people have asked to remove the hostname requirement in the configuration file and allow the Zabbix Agent(d) to fall back to using the fully qualified domain name of the system instead. The attached patch provides this. With this patch, the system will still read the configuration file and if the hostname is set there, it will use it, however, if the entry is commented out, the agent will attempt to determine the system's fully qualified domain name insted.

    There are a couple of caveats to this;
    • FQDN can be no more than 254 characters. FQDN's over 254 will be truncated to 254 characters.
    • FQDN uses gethostname and getdomainname to determine this information. For the average person this is not an issue, however, in some cases, your FQDN may be different from what is returned by gethostname and getdomainname, usually when using things like YP or NDS.
    • This patch is against the CVS code base, and has not been tested against 1.1.2, though it should work fine.
    Attached Files
    Unofficial Zabbix Developer
Working...