Ad Widget

Collapse

Active proxy creates connection every second

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aasay
    Junior Member
    • Jun 2013
    • 1

    #1

    Active proxy creates connection every second

    I am setting up a lot of active proxies that are going to be in remote locations. As I was setting up the first proxy I noticed that it is connecting back to the server ever second. I wanted to cut this back, and started looking at configuration variables. I have set all of these variables;

    DataSenderFrequency=60
    HeartbeatFrequency=60
    ConfigFrequency=60

    and still received a connection every second, so I went into the source to take a look. I am seeing in zabbix_proxy/datasender/datasender.c there is a default flag being set.

    if (SUCCEED == upload_state && ZBX_TASK_UPDATE_FREQUENCY <= now - task_timestamp)
    {
    task_timestamp = now;

    zbx_tm_get_remote_tasks(&tasks, 0);

    if (0 != tasks.values_num)

    {
    zbx_tm_json_serialize_tasks(&j, &tasks);
    flags |= ZBX_DATASENDER_TASKS;
    }

    // REMOVED
    //flags |= ZBX_DATASENDER_TASKS_REQUEST;
    }

    After I commented this out everything seems to work as expected, but I am not sure of the ramifications of this. Should this be a bug, or is this something that needs to be in place?

    Any help is appreciated.
Working...