Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Shell script to check the number of connections/sockets in a given state. Uses iproute2's ss tool to retrieve connections (Linux only).
Current Version
Last Release Date
2014-04-03
Owner
Jon Schipp
Download URL
https://github.com/jonschipp/nagios-plugins/blob/master/check_connections.sh
Compatible With
Check the number of connections/sockets in a given state. Uses iproute2's ss tool to retrieve connections.
Options: -s State of connection (def: all) (established, syn-sent, syn-recv, fin-wait-1, fin-wait-2, time-wait, closed, close-wait, last-ack, listen, and closing) -f Apply quoted ss expression filter e.g. '( dst 192.168.1/24 and dport >= :1024 )' -p <type> Set protocol or family type (udp/tcp/inet/inet6) -c Critical threshold as an integer -w Warning threshold as an integer
########## # Example: # ##########
# 1.) Critical if more than 1000 connections to port 443 are in the TCP ESTABLISHED state. # $ ./check_connections.sh -s established '( sport = :443 )' -w 800 -c 1000
Work good!
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!