Home Directory Plugins Network Connections, Stats and Bandwidth Number of connections opened by a process

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

Number of connections opened by a process

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2017-02-08
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
License
GPL
Hits
2434
Files:
FileDescription
check_process_open_connections.shcheck_process_open_connections.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Counts number of opened connections that a given process has opened.
Plugin uses netstat with sudo access. It can match process by regexp or
use pid file (which is strongly recommended).
Counts number of opened connections that a given process has opened. Plugin uses netstat with sudo access. It can match process by regexp or use pid file (which is strongly recomended).

Check number of opened connections by a process. Process may be given either by pid file or by regex to match "pgrep -f". Needs sudo to run netstat.

Options:
-p Path to pidfile containing pid of running
cess. Sets match type to pidfile.
-P Regular expression that matches process in
auxw output. Sets matchtype to ps.
-w Warning level.
-c Critical level.

Usage: $0 -p /var/run/processfile.pid -w 500 -c 1000