Ad Widget

Collapse

More socket connection on zabbix agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omid1979
    Member
    • Nov 2016
    • 33

    #1

    More socket connection on zabbix agent

    Dear All,
    our zabbixagent install on our server using most connection ( like the image attached ) however it work without any problem
    1- can we use one connection for zabbix ( permanent connection ) ?
    2- how can limite connection time to solve socket using by zabbix agent ?
    Attached Files
    Last edited by omid1979; 26-08-2017, 14:36. Reason: Add Attachment
  • andris
    Zabbix developer
    • Feb 2012
    • 228

    #2
    Permanent connections are not supported between agent and server/proxy.
    In passive checks (server connects to agent) a new connection is opened/closed for every value of every item.
    Active checks (agent connects to server to send item values) can be more efficient - several items/several values can be transfered in one connection.
    Proxy-server connection also is not permanent but it supports multiple item transfer in one connection.

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      It is really shame that after more than decade when other OSes like FreeBSD, Solaris (and even Windows) added reuse TCP sockets in default kernel tunables Linux still needs to be manually tuned for this.
      Just add to /etc/sysctl.conf:

      net.ipv4.tcp_tw_reuse = 1
      net.ipv4.tcp_tw_recycle = 1

      and then "sysctl -p /etc/sysctl.conf"
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      Working...