All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: jason.faulkner@mailtrust.com
Cc: netfilter@vger.kernel.org
Subject: Re: Determining number of active connections
Date: Wed, 11 Mar 2009 10:16:37 +0100	[thread overview]
Message-ID: <49B78175.7010608@netfilter.org> (raw)
In-Reply-To: <1236694715.945517171@192.168.1.202>

jason.faulkner@mailtrust.com wrote:
> Hi all,
> 
> I'd like to be able to monitor (trend) the number of tracked connections in iptables; however, doing something like "cat /proc/net/ip_conntrack | wc -l" eats up too much CPU to run with regularity (we track somewhere in the realm of 200,000 connections).
> 
> Is there a way to just pull the total number? It'd be nice to know that we aren't even getting close to the number of connections set in the sysctl. 

$ cat /proc/sys/net/netfilter/nf_conntrack_count

or with the conntrack-tools-0.9.11

# conntrack -C

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

      parent reply	other threads:[~2009-03-11  9:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-10 14:18 Determining number of active connections jason.faulkner
2009-03-10 15:22 ` Erik Wasser
2009-03-10 15:30   ` jason.faulkner
2009-03-11  9:16 ` Pablo Neira Ayuso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49B78175.7010608@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=jason.faulkner@mailtrust.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.