Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2903

zabbix_sender and default hostname in config file

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:
      None
    • Environment:
      v2.2.10, 2.4.6

      Description

      The zabbix_sender utility can use the "-c config_file" parameter, in this case it can extract the reference to Zabbix-server (hostname/IP-address and port number) as well as Agent's hostname (to avoid the "-s", "-p" and "-s" parameters usage). It is great; however, the keyword "Hostname=" in config file could be absent (or commented out) in many installations. The agent in this case use some algorithm for the hostname obtaining (check for the "HostnameItem" keyword in the config file, use the default "system.hostname" for it, etc.). However, zabbix_sender utility in this case requires the "-s" parameter obligatory, otherwise it fails.

      It will great to have the zabbix_sender utility with the same logic for a hostname calculation if it called with "-c" parameter, but the "Hostname" absent in config file. In the simplest case, just to use the default "system.hostname" metric by some way (asking the agent, or just replaying the same logic as the agent). Of course, it should be consistent with the agent's results (for example, transforming the hostname to uppercase on Windows platform and keeping it "as is" otherwise).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              constantin.oshmyan Constantin Oshmyan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: