Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
nagios_check_listening_port_linux
1.0
2015-09-08
MIT
6014
File | Description |
---|---|
nagios_check_listening_port_linux.py | Nagios 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.
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.
Reviews (0)
Be the first to review this listing!