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

active check data ignored if agent hostname case-mismatches hostname on server

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • Proxy (P), Server (S)
    • None

      Steps to reproduce:

      • configure host "SERVER085" on Server
      • configure agent for hostname "server085"
      • start agent and watch agent getting list of active checks
      • see server log, that host sends data and stopps after "In check_security()"

      Cause:

      • in trapper.c there is a strcmp against item.host_name and values[i].host_name in process_mass_data which compares case-sensitive and silently ignores data.
      • mysql server doens't care about case-sensitiveness

      Workaround:

      • fix hostname case on server or agent

      Notes:

      • version 1.4.x ignored hostname case-mismatches

      ZABBIX Server log :
      27554:20090930:090851 Trapper got [<req><host>...</host><key>...</k
      ey><data>...</data></req>] len 108
      27554:20090930:090851 In process_mass_data()
      27554:20090930:090851 Query [select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.
      snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.erro
      rs_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_sec
      uritylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.lo
      gtimefmt,i.valuemapid,i.delay_flex,h.dns,i.params,i.trends,h.useipmi,h.ipmi_port,h.ipmi_authtype,h.ipmi_privil
      ege,h.ipmi_username,h.ipmi_password,i.ipmi_sensor,i.lastlogsize from hosts h, items i where h.hostid=i.hostid
      and h.proxy_hostid=0 and h.status=0 and i.status in (0,3) and i.type in (2,7) and ((h.host='server085' and i.ke
      y_='agent.version')) and h.hostid between 5100000000000000 and 5199999999999999]
      27554:20090930:090851 In substitute_simple_macros (data:"agent.version")
      27554:20090930:090851 In check_security()
      27554:20090930:090852 Trapper got [<req><host>xxxx</host><key>xxxxxx</k
      ey><data>xxxxx</data></req>] len 100

            Unassigned Unassigned
            toshi Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: