mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-16 15:33:46 +01:00
13 lines
222 B
Bash
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
|