Ad Widget

Collapse

Zabbix missing some data sent by agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pranky
    Junior Member
    • Jan 2012
    • 3

    #1

    Zabbix missing some data sent by agent

    Hello Friends,
    I have created my agent which is sending log data to the zabbix server with the type of information text ,and getting the log data in the table history_text table,

    problem: sometimes zabbix missed this data to update in the server

    agent is sending log data to the zabbix server which is showing in the zabbix log as

    20951:20120117:205453.509 Trapper got [{"request":"sender data",
    "data":[
    {
    "host":"ossPulse_3",
    "key":"ErrorMsg",
    "value":"2011-11-08 15:43:04,972 ERROR [STDERR] (main) java.io.FileNotFoundException: /usr/local/jboss-5.1.0.GA/server/ossPulse/bin/d:\\JBOSS.xml"}]}] len 225
    20951:20120117:205453.509 In recv_agenthistory()
    20951:20120117:205453.509 In process_hist_data()
    20951:20120117:205453.509 In process_mass_data()
    20951:20120117:205453.509 In DCinit_nextchecks()
    20951:20120117:205453.509 In zbx_hashset_search()
    20951:20120117:205453.509 End of zbx_hashset_search()
    20951:20120117:205453.509 In DCflush_nextchecks()
    20951:20120117:205453.509 End of process_mass_data()
    20951:20120117:205453.509 In zbx_send_response()
    20951:20120117:205453.509 zbx_send_response() '{
    "response":"success",
    "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000214"}'
    20951:20120117:205453.509 End of zbx_send_response():SUCCEED
    20951:20120117:205453.509 End of recv_agenthistory()
    20951:20120117:205453.612 Trapper got [{"request":"sender data",


    but sometimes zabbix missed this data to update in the server

    and the behaviour is unpredictable .


    Does zabzix get the whole data send by the agent or not ..?
    Last edited by pranky; 17-01-2012, 13:01.
  • pranky
    Junior Member
    • Jan 2012
    • 3

    #2
    why zbx_tcp_check_security returns fail

    Hello Friends,
    As I have found that below function zbx_tcp_check_security inside the function process_mass_data code in the trapper.c file gives the error

    static void process_mass_data(zbx_sock_t *sock, zbx_uint64_t proxy_hostid, AGENT_VALUE *values,
    int value_num, int *processed, time_t proxy_timediff)
    {
    /*
    Some code

    */
    if (item.type == ITEM_TYPE_TRAPPER &&
    FAIL == zbx_tcp_check_security(sock, item.trapper_hosts, 1))
    {
    zabbix_log(LOG_LEVEL_WARNING, "Process data failed: %s", zbx_tcp_strerror());
    continue;
    }

    /*
    Some code
    */
    }

    in this code the function
    zbx_tcp_check_security(sock, item.trapper_hosts, 1) returns fail

    what does mean by this zbx_tcp_check_security , and why is it being fail.



    Please suggest me if anyone knows its urgent , its urgent


    Thanks

    Comment

    • pranky
      Junior Member
      • Jan 2012
      • 3

      #3
      zbx_tcp_check_security(sock, item.trapper_hosts, 1))

      can any one please tell me the functionality of the function zbx_tcp_check_security(sock, item.trapper_hosts, 1))

      or

      the definition of the function

      or how can I get more log of this function ,so that I can trace the error


      Please Help me

      Comment

      • p__
        Junior Member
        • Oct 2011
        • 7

        #4
        Are you sure the problem lies with zbx_tcp_check_security? Because then it would produce an entry in your log which it apparently didn't.
        The function itself checks if the IP of the host sending the data is allowed to do this.

        Comment

        Working...