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

DB Monitoring result truncated in 2.2.17

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2.17
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:
      None
    • Environment:
      Centos 7.2
      unixODBC-2.3.2
      freetds 0.91
      MSSQL 2005

      Description

      After upgrading from 2.2.5 to 2.2.17 database monitoring results from MSSQL are truncated to 1 character.

      Apr 13 17:17:40 XXXXX zabbix_server[21082]: odbc_DBconnect() connected to Microsoft SQL Server(09.00.5000) using libtdsodbc.so(0.91)
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: End of odbc_DBconnect():SUCCEED
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: In odbc_DBselect() query:'SELECT ISNULL(#015#012(SELECT primary_database + ' ' + CAST(last_backup_date AS varchar) + '; ' AS [text()]#01
      5#012FROM log_shipping_monitor_primary#015#012WHERE threshold_alert_enabled = 1 and datediff(minute, last_backup_date_utc, getutcdate()) > backup_threshold#015#012FOR XML PATH (''))
      #015#012, 'OK')'
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: odbc_DBselect() selected 1 columns
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: End of odbc_DBselect()
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: In odbc_DBfetch()
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: odbc_DBfetch() fetched [0 col (-10)]: 'O'
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: End of odbc_DBfetch()
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: End of get_value_db():SUCCEED
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: End of get_value():SUCCEED
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: In activate_host() hostid:13456 itemid:724960 type:11
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: End of activate_host()
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: End of get_values():1
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: In DCconfig_get_poller_nextcheck() poller_type:0
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: End of DCconfig_get_poller_nextcheck():1492093061
      Apr 13 17:17:40 XXXXX zabbix_server[21082]: poller #32 [got 1 values in 0.095940 sec, idle 1 sec]
      Apr 13 17:17:40 XXXXX zabbix_server[21762]: http poller #27 [got 0 values in 0.000403 sec, getting values]
      

      Expected result: "OK"

      Queries to mysql works as expected.

      Probably this is caused by ZBX-8489 and not fixed in ZBX-11213.

      P.S. looks like such big changes as in ZBX-8489 are not appropriate for LTS release

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dimedrol Dmitry Samsonov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: