Ad Widget

Collapse

Help in Auto-registration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Supriya123
    Junior Member
    • Jun 2019
    • 17

    #1

    Help in Auto-registration

    am new to Zabbix.I am trying to figure out, if I can use Auto-registration by specifying name in HostMetadataItem

    Here is my configuration in Agent /etc/zabbix/zabbix_agentd.conf

    ### Option: HostMetadata

    # Optional parameter that defines host metadata.

    # Host metadata is used at host auto-registration process.

    # An agent will issue an error and not start if the value is over limit of 255 characters.

    # If not defined, value will be acquired from HostMetadataItem.

    #

    # Mandatory: no

    # Range: 0-255 characters

    # Default:

    HostMetadata=MPHPPfortnite




    ### Option: HostMetadataItem

    # Optional parameter that defines an item used for getting host metadata.

    # Host metadata is used at host auto-registration process.

    # During an auto-registration request an agent will log a warning message if

    # the value returned by specified item is over limit of 255 characters.

    # This option is only used when HostMetadata is not defined.

    #

    # Mandatory: no

    # Default:

    HostMetadataItem=MPHPPfortnite



    From UI

    These are the configuration I have done in UI. But the host is not auto-registering.
    Can someone help me?

    ​​​​​​​Appreciate your help[/QUOTE]
    Attached Files
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    pls fix the "Action" screenshot. And pls note "HostMetadataItem is only used when HostMetadata is NOT defined" (if you define HostMetadata - no need define HostMetadataItem and viсe versa)

    Comment

    • Supriya123
      Junior Member
      • Jun 2019
      • 17

      #3
      Hi,

      I have updated the agent configuration file to only refer to HostMetadata. Here is the configuration

      ### Option: HostnameItem

      # Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.

      # Does not support UserParameters or aliases.

      #

      # Mandatory: no

      # Default:

      # HostnameItem=system.hostname




      ### Option: HostMetadata

      # Optional parameter that defines host metadata.

      # Host metadata is used at host auto-registration process.

      # An agent will issue an error and not start if the value is over limit of 255 characters.

      # If not defined, value will be acquired from HostMetadataItem.

      #

      # Mandatory: no

      # Range: 0-255 characters

      # Default:

      HostMetadata=MPHPPfortnite




      ### Option: HostMetadataItem

      # Optional parameter that defines an item used for getting host metadata.

      # Host metadata is used at host auto-registration process.

      # During an auto-registration request an agent will log a warning message if

      # the value returned by specified item is over limit of 255 characters.

      # This option is only used when HostMetadata is not defined.

      #

      # Mandatory: no

      # Default:

      #HostMetadataItem=MPHPP fortnite




      ### Option: RefreshActiveChecks

      # How often list of active checks is refreshed, in seconds.

      #

      # Mandatory: no

      # Range: 60-3600

      # Default:



      In The UI
      Attached Files

      Comment

      • Supriya123
        Junior Member
        • Jun 2019
        • 17

        #4
        Hi,

        I have updated the agent configuration file to only refer to HostMetadata. But still it is not auto-registering. Here is the configuration

        ### Option: HostnameItem

        # Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.

        # Does not support UserParameters or aliases.

        #

        # Mandatory: no

        # Default:

        # HostnameItem=system.hostname




        ### Option: HostMetadata

        # Optional parameter that defines host metadata.

        # Host metadata is used at host auto-registration process.

        # An agent will issue an error and not start if the value is over limit of 255 characters.

        # If not defined, value will be acquired from HostMetadataItem.

        #

        # Mandatory: no

        # Range: 0-255 characters

        # Default:

        HostMetadata=MPHPPfortnite




        ### Option: HostMetadataItem

        # Optional parameter that defines an item used for getting host metadata.

        # Host metadata is used at host auto-registration process.

        # During an auto-registration request an agent will log a warning message if

        # the value returned by specified item is over limit of 255 characters.

        # This option is only used when HostMetadata is not defined.

        #

        # Mandatory: no

        # Default:

        #HostMetadataItem=MPHPP fortnite




        ### Option: RefreshActiveChecks

        # How often list of active checks is refreshed, in seconds.

        #

        # Mandatory: no

        # Range: 60-3600

        # Default:



        In The UI, I have defined these values. Attached are the screen shot. Can you please help me?

        Comment

        • Hamardaban
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • May 2019
          • 2713

          #5
          From manual: (https://www.zabbix.com/documentation...o_registration)
          1) Make sure you have the Zabbix server identified in the agent configuration file (ServerActive=)
          2) Pls note:
          Auto-registration is rerun ONLY:
          if host metadata information changes:
          due to HostMetadata changed and agent restarted
          due to value returned by HostMetadataItem changed
          for manually created hosts with metadata missing
          if a host is manually changed to be monitored by another Zabbix proxy
          if auto-registration for the same host comes from a new Zabbix proxy

          Comment

          Working...