Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-3776

Agent should report an error and exit on UserParameter configuration entries with same keys

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.6, 1.9.4 (alpha)
    • Fix Version/s: 1.8.6, 1.9.4 (alpha)
    • Component/s: Agent (G), Server (S)
    • Labels:
      None

      Description

      Consider next UserParameters entries in agentd config file:

      UserParameter=custom.echo[*],echo $1
      UserParameter=custom.echo[*],echo $1
      UserParameter=custom.echo[*],echo $1
      UserParameter=custom.pgsql.version,psql --version | head -1
      UserParameter=custom.pgsql.version,psql --version | head -1
      UserParameter=custom.pgsql.version,psql --version | head -1

      Let's print available commands:

      $ sbin/zabbix_agentd -p | grep custom
      custom.echo[] [m|ZBX_NOTSUPPORTED]
      custom.echo[] [m|ZBX_NOTSUPPORTED]
      custom.echo[] [m|ZBX_NOTSUPPORTED]
      custom.pgsql.version [t|psql (PostgreSQL) 8.4.7]

      Duplicate Flexible UserParameters are all added as is, Simple UserParameters are replaced. We agreed that for any UserParameter in case of duplicate key an error should be reported and agent exited instantly.

        Attachments

          Activity

            People

            • Assignee:
              dimir dimir
              Reporter:
              dimir dimir
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: