Create Windows dynamic link library with zabbix_sender functionality

XMLWordPrintable

    • Type: New Feature Request
    • Resolution: Fixed
    • Priority: Major
    • 2.1.7
    • Affects Version/s: None
    • Component/s: Agent (G)
    • None
    • Environment:
      Windows

      The dynamic link library must be named ZabbixSender.dll and will export two functions:

      int zbx_sender_send_values(const char *address, unsigned short port, const char *source, const zbx_sender_value_t *values, int count, char **result);
      Parameters:

      • address - the server address
      • port - the server port
      • source - the soruce ip address (optional)
      • values - an array of zabbix sender values
      • count - the number of items in values array
      • result - the server response or connection error message. The result must be freed with zbx_sender_result_free() function by the caller

      Return value: SUCCEED if the data was sent successfully, the result contains server response (failed/succeeded items)
      FAIL if the data sending failed, result contains an error message

      void zbx_sender_result_free(void *ptr);
      Parameters:

      • ptr - the result data allocated by zbx_sender_send_values() function

            Assignee:
            Unassigned
            Reporter:
            Andris Zeila
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: