1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-16 23:43:47 +01:00
nagios-plugins/misc/check_ports

13 lines
222 B
Plaintext
Raw Normal View History

2010-11-07 18:30:26 +01:00
#!/bin/sh
2010-11-07 18:59:13 +01:00
HOST=$1
2010-11-07 18:30:26 +01:00
2010-11-07 18:59:13 +01:00
PORTS="3389 22 80 445 5666 1433";
2010-11-07 18:30:26 +01:00
2010-11-07 18:59:13 +01:00
for i in $PORTS; do
check_tcp -H $HOST -p $i >/dev/null 2>&1 && echo Port $i=yes || echo Port $i=no
2010-11-07 18:30:26 +01:00
done
2010-11-07 18:59:13 +01:00
echo -n "Checking NRPE Connectivity: "
check_nrpe -H $HOST