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

Directory Tree

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
5503
Files:
FileDescription
check_process_open_connections.shcheck_process_open_connections.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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