Ad Widget

Collapse

Zabbix Proxy Heartbeat

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ThomasHH
    Junior Member
    • Oct 2022
    • 3

    #1

    Zabbix Proxy Heartbeat

    Hi,
    I have an question regarding Zabbix Proxy.
    We have a slow link between Server and Proxy where we need to keep an eye on the traffic (Satellite).
    Everything works perfect, but the Proxy is talking to much to the server.
    Proxy is "Zabbix 6.2.3 (revision 98ee88fc19d)"
    Proxy is active mode.
    With tcpdump i could see, that the proxy is talking every second to the server (Heartbeat)?
    i have set
    Code:
    ConfigFrequency=300
    DataSenderFrequency=60
    HeartbeatFrequency=10
    ​
    however, HeartbeatFrequency seems to have no effect, if i set it to 0,10 or 100. TCP packets are send every second from Proxy to Server.


    I found something on github
    https://github.com/zabbix/zabbix/blo..._proxy/proxy.c

    in line 515 is mentioned
    Code:
    zabbix_log(LOG_LEVEL_WARNING, "HeartbeatFrequency parameter is deprecated, and has no effect");​
    however, there is nothing in the logs.

    How can i change the heartbeat interval and stop communication every second?

    Many thanks and best regards
    Thomas
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    See and vote for this: https://support.zabbix.com/browse/ZBXNEXT-4998 ("Make ZBX_TASK_UPDATE_FREQUENCY configurable")

    Markku

    Comment

    • ThomasHH
      Junior Member
      • Oct 2022
      • 3

      #3
      That is bad
      I added my comment to the ticket. Hope it will be changed.

      Comment

      • ThomasHH
        Junior Member
        • Oct 2022
        • 3

        #4
        just in case, someone need this too. I spend some time and with help of one developer, i could change the default behavior which send every second a heartbeat.
        Ticket is here:
        https://support.zabbix.com/browse/ZBXNEXT-4998​​
        please vote for it, if you find this useful.


        With this change the interval can be configured through the proxy config file. I compiled only the proxy and replaced the binary of an existing installation.
        No warranty if it is working long term or have other side effects.

        I have done this on Debian 11
        Code:
        apt-get install gcc make automake sqlite3 libsqlite3-dev zlib1g-dev libevent-dev libpcre3-dev libsnmp-dev snmp libssh2-1-dev libgnutls28-dev
        download source code and extract
        Code:
        wget https://cdn.zabbix.com/zabbix/sources/stable/6.2/zabbix-6.2.4.tar.gz
        tar -zxvf zabbix-6.2.4.tar.gz


        configure with only sqlite and things i may need
        Code:
        ​
        ./configure --enable-proxy --with-sqlite3 --with-net-snmp --with-ssh2 --with-gnutls


        apply the patch i attached to the ticked

        compile it
        Code:
        ​
        make


        the binary can be found in ./src/zabbix_proxy/zabbix_proxy

        Comment

        Working...