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

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.6, 1.9.4 (alpha)
    • 1.8.6, 1.9.4 (alpha)
    • Agent (G), Server (S)
    • 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

            dimir dimir
            dimir dimir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: