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

nagios_check_listening_port_linux

Current Version
1.0
Last Release Date
2015-09-08
License
MIT
Hits
6993
Files:
FileDescription
nagios_check_listening_port_linux.pyNagios plugin written to verify that a specified process name can be found listening on a specified TCP port
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!
nagios_check_listening_port_linux is a plugin written to verify that a specified process name can be found listening on a specified TCP port.
nagios_check_listening_port_linux is a plugin written to verify that a specified process name can be found listening on a specified TCP port.

Example command definition:

command[check_listening_port]=/usr/bin/python /usr/lib/nagios/plugins/nagios_check_listening_port_linux.py -n $ARG1$ -p $ARG2$

Example output:

OK. nginx found listening on port 80 for the following address(es): [0.0.0.0] | 'listening_on_expected_port'=1;;;;
CRITICAL - No process named nginx could be found listening on port 9999 | 'listening_on_expected_port'=0;;;;

Installation instructions can be found on the project homepage: https://github.com/jlyoung/nagios_check_listening_port_linux

Requires Python 2.4 - 2.7.X and netstat installed on the system.

Limitations: Currently only parses the Linux version of netstat output.
Currently only gives status information for TCP port bindings.