check_tcptraffic is a Nagios plugin to monitor the amount of TCP traffic
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
nagiosgrapher
t
.travis.yml
AUTHORS
COPYING
COPYRIGHT
Changes
INSTALL
MANIFEST
MANIFEST.SKIP
META.yml
Makefile.PL
NEWS
README.md
TODO
VERSION
check_tcptraffic
check_tcptraffic.pod
check_tcptraffic.spec

README.md

check_tcptraffic

check_tcptraffic is a Nagios plugin to monitor the amount of TCP traffic

Usage

     check_tcptraffic --critical=crit --warning=warn --interface=iface --speed=speed
                      [--verbose] [--reset] [--help]

     Required arguments
      --critical,c  crit      critical
      --warning,w   warn      warning
      --interface,i iface     network interface
      --speeed,s              speed (in Mbit/s)

     Options
      --help,-h,-?            this help message
      --reset,r               initialize counter
      --version,V             print version and exit
      --verbose,v             verbose

check_tcptraffic uses the /proc/net/dev Linux entry to compute the amount of transferred bytes from the last plugin execution (temporary data is stored in the /tmp/check_tcptraffic-iface file)

32 bit kernels

Since /proc/net/dev uses 32bit counters overflows are a problem (especially on a fast interface)

Speed Maximum safe check period
10Mbit/s 55'
100Mbit/s 5'8"
1GBit/s 32"