Home Directory Plugins Network Protocols * TCP and UDP (Generic) check_tcp_connections - with netstat and filtered by states

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_tcp_connections - with netstat and filtered by states

Rating
0 votes
Favoured:
0
Current Version
1.1
Last Release Date
2017-01-17
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
8596
Files:
FileDescription
check_tcp_connectionscheck_tcp_connections_v1.1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
A small plugin to check the number of tcp connections by state.
Successfull tested with Raspberry Pi 1 Model B, Nagios 4 + NagiosGraph and Raspbian (Debian).

Usage:
./check_tcp_connections -s [a|l|w|e] -w -c
Only one state !!!
-s state: a:all, l:listen, w:wait, e:established

Update 1.1:
- New state added: s:syn (perfect to detect SYN-Flooding)
- netstat don't resolve names

Installation
============
1. Put the plugin into your plugin-directory.
2. Dont forget to set the permissions of the file to 755 on your linux machine. Also you need netstat.
3. At commands.cfg add the following lines:
define command {
command_name check_tcp_connections
command_line $USER1$/check_tcp_connections -s $ARG1$ -w $ARG2$ -c $ARG3$
}
Now you are ready to define your own service with "check_command check_tcp_connections!a!30!50" or other values.