Ad Widget

Collapse

Specify DNS name in zabbix_agentd.conf?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • linux_user419
    Junior Member
    • Jun 2012
    • 2

    #1

    Specify DNS name in zabbix_agentd.conf?

    Hello all,

    I am new to Zabbix and am currently running version 1.8.7 in my enterprise. I am using auto-registration and it is working just fine; however, I would like to specify the name of the host to be different than the DNS name (i.e. I don't want the name field in the Zabbix web UI to be a long FQDN, rather I would like it to just be a short, concise name). My problem is if I specify the hostname field in the zabbix_agentd.conf file to be a shorter name, then the DNS name field in the Zabbix web UI becomes that name as well, forcing me to make a change manually. If I leave the hostname field in zabbix_agentd.conf blank, then the DNS name field in the Zabbix web UI is correct, but the name field is a long FQDN. My point I guess is I would like to not have to go in and manually change one of these two fields in the Zabbix web UI every time a new host registers; I would like to find a way to specify clearly in the zabbix_agentd.conf file to set those two fields to different values upon auto-registration. Currently I cannot find any documentation on Zabbix's website that explains how this can be done.

    Any help is greatly appreciated!

    Thanks,

    Tom
  • Tekkell
    Junior Member
    • Mar 2011
    • 15

    #2
    Have you defined "system.hostname" in the zabbix_agent.conf?

    see LINK

    Comment

    • linux_user419
      Junior Member
      • Jun 2012
      • 2

      #3
      Yes, that is specified and fills in the DNS name appropriately. But, it also fills in the name field (the first column in the web UI) as the same FQDN. I do not wish to see the whole FQDN there; rather, I'd like to set a nice short name there. If I use the "hostname" option in the zabbix_agentd.conf file, it will set the nice short name as I would like it, but it overrides the "hostnameitem" option in the zabbix_agend.conf file and thus also sets the DNS field in the web UI to that short name (which is what I don't want either). What I would like is a way to set both of these fields to different values upon auto-registration, if possible.

      Thanks,

      Tom

      Comment

      • Tekkell
        Junior Member
        • Mar 2011
        • 15

        #4
        I see what you mean. The override spoils it. I am not that familiar with that part to do some tricks.
        My dumb option () would be editing the php file, but please don't tell anybody.

        rgrds,

        Tekkell

        Comment

        Working...