Ad Widget

Collapse

Change the machine name discovered by the Zabbix Agent on install

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • J_Adatasol
    Member
    • Dec 2018
    • 74

    #1

    Change the machine name discovered by the Zabbix Agent on install

    Hey all,

    I was wondering if there was a way to change the name of the machine that the Zabbix agent finds and uses when it is installed?

    I have an AWS instance I want to monitor; when I installed the Zabbix agent (this is a custom installer that someone made for me...not sure what it does under the hood...) the Windows OS Service says something like "Zabbix_Agent (EC2SRRR-9TETHEAR.newHost.com)". And when the agent phones home to the server, it shows up with the same name.

    This machine has a fixed IP and I have assigned it a FQDN. I would like the service and internal name used by the Agent to reflect that FQDN, instead of the machine name.

    Is this something that I can change on the Service itself, and perhaps in the config file for the Agent? Any other ideas?

    Thanks,
    Justin
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Look on Hostaname and HostnameItem in zabbix agent configuration parameters.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • J_Adatasol
      Member
      • Dec 2018
      • 74

      #3
      Long time to get back to this - sorry for the delay.

      But my Agent config file is set with a more common name. And when the Service gets installed on Windows, that is happening before I can edit the Agent config file. (It's an EXE installer that someone made - just installs the Zabbix agent and sets up the Service.) So I don't have the ability to edit that before it gets setup.

      Maybe the name comes from the Computer Name defined by the Windows. I'm not sure that I can edit that...but does it have to come from there? Or...how can I edit the Service definition after it has been installed?

      Thanks.

      Comment

      • J_Adatasol
        Member
        • Dec 2018
        • 74

        #4
        Circling back on this issue... I'm trying to install these Agents on a new server, and I would love to be able to specify/control the Service Name and the machine name reported back to the Zabbix Server.

        Comment

        • J_Adatasol
          Member
          • Dec 2018
          • 74

          #5
          It think it is a bit clearer now... I think the piece that I was missing was that there is the implied step to these requirements: that you set this configuration BEFORE you install the client. Changing these settings in the configuration file does NOT cause the name of the Service being started to change.

          I can't say for sure about how the phone-home name changes at the Zabbix server, when making a change to the config file.

          Comment

          Working...