wiki:check_sockets
Last modified 22 months ago Last modified on 08/06/2010 09:44:38 AM

check_sockets

Check number of open Sockets.

Usage

check_sockets --tcp <PORT> [-w <warning count>] [-c <critical count>]

Options

-h, --help
Print detailed help screen.
-V, --version
Print version information.
-v, --verbose
Show details for command-line debugging.
-4, --ipv4
Use IPv4 to check.
-6, --ipv6
Use IPv6 to check.
-t, --tcp=PORT
Count TCP sockets on port PORT. Port 0 for all sockets.
-u, --udp=PORT
Count UDP sockets on port PORT. Port 0 for all sockets.
-r, --raw=PORT
Count RAW sockets on port PORT. Port 0 for all sockets.
-w, --warning=LIMIT
Return warning if socket count exceeds limit. Default to 1000
-c, --critical=LIMIT
Return critical if socket count exceeds limit. Default to 1024
--perfdata
Print perfdata for check.