Ad Widget

Collapse

Set alias name automatically during Zabbix Auto Registration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • umapathy
    Junior Member
    • Oct 2016
    • 5

    #1

    Set alias name automatically during Zabbix Auto Registration

    Hi Team

    How to set alias name automatically during zabbix auto registraion action.

    Can you guide please

    Thanks
  • umapathy
    Junior Member
    • Oct 2016
    • 5

    #2
    Zabbix Team

    Can you guide to set alias name through agent config file.

    I use ansible to install agent and I want alias name to be a parameter.

    Thanks

    Comment

    • batchenr
      Senior Member
      • Sep 2016
      • 440

      #3
      i didnt understad

      Comment

      • umapathy
        Junior Member
        • Oct 2016
        • 5

        #4
        I install zabbix agent and pass the zabbix server information in config file through ansible (using ansible parameters)

        I want to know if alias name (display name) can be set in config file.

        Thanks

        Comment

        • batchenr
          Senior Member
          • Sep 2016
          • 440

          #5
          Originally posted by umapathy
          I install zabbix agent and pass the zabbix server information in config file through ansible (using ansible parameters)

          I want to know if alias name (display name) can be set in config file.

          Thanks
          you installed zabbix agent on anisble server ? and you want to know
          if you can change the display name ?

          Comment

          • umapathy
            Junior Member
            • Oct 2016
            • 5

            #6
            If we can set agent display name in agent configuration file.

            I automated the agent installation through ansible, I want to pass display name as parameter.
            Currently Zabbix dashboard shows the hostname / IP but end user will not know what the server (zabbix agent) is.

            Comment

            • batchenr
              Senior Member
              • Sep 2016
              • 440

              #7
              Originally posted by umapathy
              If we can set agent display name in agent configuration file.

              I automated the agent installation through ansible, I want to pass display name as parameter.
              Currently Zabbix dashboard shows the hostname / IP but end user will not know what the server (zabbix agent) is.
              you have this option at zabbix agent conf :

              ### Option: Alias
              # Sets an alias for an item key. It can be used to substitute long and complex item key with a smaller and simpler one.
              # Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed.
              # Different Alias keys may reference the same item key.
              # For example, to retrieve the ID of user 'zabbix':
              # Alias=zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.[0-9]+),,,,\1]
              # Now shorthand key zabbix.userid may be used to retrieve data.
              # Aliases can be used in HostMetadataItem but not in HostnameItem parameters.
              #
              # Mandatory: no
              # Range:
              # Default:


              im sorry i dont seem to have the knowledge that you need , i never used anisble

              Comment

              Working...