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
6014
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
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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.