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

Zabbix agent on windows returns message size 63 exceeds the maximum size 0 bytes.

XMLWordPrintable

    • Team A
    • Sprint 80 (Sep 2021)
    • 0.25

      Zabbix agent on windows cannot retrieve active checks or send.

      In contrast __UINT64_C is not defined to uint64 on windows, the constant remains as it is.

      #       ifndef __UINT64_C
      
      #               define __UINT64_C(x)    x
      
      #       endif
      

      Zabbix agent should not send more than 1 gigabytes so for now fix can be simple without touching define and potentially breaking something:

      diff --git a/include/common.h b/include/common.h
      index 04800e09f2..e72edc6b7f 100644
      --- a/include/common.h
      +++ b/include/common.h
      @@ -1163,7 +1163,11 @@ void     zbx_setproctitle(const char *fmt, ...) __zbx_attr_format_printf(1, 2);
       #define ZBX_JAN_1970_IN_SEC    2208988800.0    /* 1970 - 1900 in seconds */
      
       #define ZBX_MAX_RECV_DATA_SIZE         (1 * ZBX_GIBIBYTE)
      +#if defined(_WINDOWS)
      +#define ZBX_MAX_RECV_LARGE_DATA_SIZE   (1 * ZBX_GIBIBYTE)
      +#else
       #define ZBX_MAX_RECV_LARGE_DATA_SIZE   (__UINT64_C(16) * ZBX_GIBIBYTE)
      +#endif
      
       /* max length of base64 data */
       #define ZBX_MAX_B64_LEN                (16 * ZBX_KIBIBYTE)
      

            vso Vladislavs Sokurenko
            vso Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: