1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-12-22 09:03:54 +01:00
nagios-plugins/misc/check_ports
Páll Guðjón Sigurðsson 2c1ae33ee4
2010-11-07 17:59:13 +00:00

13 lines
222 B
Bash

#!/bin/sh
HOST=$1
PORTS="3389 22 80 445 5666 1433";
for i in $PORTS; do
check_tcp -H $HOST -p $i >/dev/null 2>&1 && echo Port $i=yes || echo Port $i=no
done
echo -n "Checking NRPE Connectivity: "
check_nrpe -H $HOST