Ad Widget

Collapse

Newbie agent question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tx270
    Junior Member
    • Sep 2013
    • 5

    #1

    Newbie agent question

    I did some searching here and on google but I can't seem to find the answer to the agent install issue. I edited my config file to use the ip address of the zabbix server and the host name to match the hostname of the windows server that matches the hostname entered into zabbix hostname but I keep getting the:

    Error: invalid host name: name of host being monitred here. Should match what is in Zambix frontend for hsot name.

    I have verified that it is and tried it on several machines (changing the hostname on each to match) all with the same end result.

    What am I missing here?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    So you are saying that on your monitored Windows server, in the zabbix_agentd.conf file, you have Hostname=xxxxxxxx and then in the Zabbix frontend under Configuration --> Host you have the exact same name as xxxxxxxx put there? And they are an exact match, including case sensitive?

    And after you made any changes to the conf file on your Windows server, you restarted the Zabbix agent service?

    Comment

    • Tx270
      Junior Member
      • Sep 2013
      • 5

      #3
      I have edited the Option: Hostname part of the config file

      ### Option: Hostname
      # Unique, case sensitive hostname.
      # Required for active checks and must match hostname as configured on the server.
      # Value is acquired from HostnameItem if undefined.
      #
      # Mandatory: no
      # Default:
      # Hostname=TEST0633

      I have gone to the configuration - Hosts and in the Host name portion it is also TEST0633

      When I go to do the agent install I get the error. I don't get to the point where I restart the agent service because it isn't installed yet.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Originally posted by Tx270
        # Hostname=TEST0633
        You need to remove the comment "#" for that line to be read.

        It should look like this:
        Code:
        ### Option: Hostname
        # Unique, case sensitive hostname.
        # Required for active checks and must match hostname as configured on the server.
        # Value is acquired from HostnameItem if undefined.
        #
        # Mandatory: no
        # Default:
        Hostname=TEST0633
        But that shouldn't affect the install of the agent. This is the command I use to do the install on a Windows server:

        c:\zabbix\zabbix_agentd –i --install -c c:\zabbix\zabbix_agentd.conf
        Last edited by tchjts1; 20-09-2013, 00:09.

        Comment

        • Tx270
          Junior Member
          • Sep 2013
          • 5

          #5
          Originally posted by tchjts1
          You need to remove the comment "#" for that line to be read.

          But that shouldn't affect the install of the agent. This is the command I use to do the install on a Windows server:

          c:\zabbix\zabbix_agentd –i --install -c c:\zabbix\zabbix_agentd.conf
          After removing the # comment from in front of the Hostname line still the same hostname error when I try to do the install.

          I used your command line install changing the location of the zabbix_agentd.conf file and got the same hostename error.

          Very confused.

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            - What version of the agent are you trying to install?
            - Where are you seeing this error message? In the zabbix_agentd.log file?
            - Please copy and paste the exact error message

            Comment

            • Tx270
              Junior Member
              • Sep 2013
              • 5

              #7
              2.0.8 is the agent version

              The log file is empty, in the conf file it has

              LogFile=c:\zabbix\zabbix_agentd.log

              but the log file is blank.

              Error I get:

              [99968]: ERROR: invalid host name: [Name of host being monitored here. Should match what is in Zabbix frontend for host name]

              The first set of numbers changes withe every install attempt randomly.

              Comment

              • tchjts1
                Senior Member
                • May 2008
                • 1605

                #8
                Try this, put the Hostname= field back to being blank. I don't recall that I have ever done an install with having that field populated, until after the install was completed.

                Comment

                • Tx270
                  Junior Member
                  • Sep 2013
                  • 5

                  #9
                  Originally posted by tchjts1
                  Try this, put the Hostname= field back to being blank. I don't recall that I have ever done an install with having that field populated, until after the install was completed.
                  That did it, after the install I edited the config again to put the Zabbix server IP and the hostname of my machine and the host Z went from red to green.

                  Thanks for the help, now back to the quickstart walkthrough to learn how to do things.

                  Comment

                  Working...