Ad Widget

Collapse

PATCH: Number of TCP connections

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sithmein
    Junior Member
    • Mar 2008
    • 4

    #1

    PATCH: Number of TCP connections

    Hi all,

    I found it quite useful for our Mailserver to report the number of established SMTP connections. If I haven't overlooked this function nothing for doing this exists in Zabbix yet. So I wrote a patch, that adds a new
    Code:
    net.tcp.connected[port<,mode>]
    item. It counts the number of ESTABLISHED TCP connection on the specified port. By default only incoming connection to the port are counted. Mode can be set to 'remote', then only connections whose remote port matches are counted. 'all' counts both matching ports on the local and remote side. The patch is against 1.4.4. and works only for Linux. Also only IPV4 are counted, but is is quite straightforward to extend this to IPV6. BTW, the disabled net.tcp.listen item can be implemented the same way.

    P.S. I also have a Gentoo ebuild for this
    Attached Files
  • Crazy Marty
    Member
    • Sep 2007
    • 75

    #2
    Great stuff!

    Alexei, please promote this for inclusion in 1.6 (and, of course, it'd be nice to have it in 1.4.5)!

    Thanks for the patch!

    Comment

    • skogan
      Member
      • Nov 2007
      • 70

      #3
      I totally second that - I, for example, use an external script to cound active LDAP instances. This patch would greatly simplify this task.

      Comment

      Working...