forked from evolix/ansible-roles
11 lines
180 B
Bash
Executable file
11 lines
180 B
Bash
Executable file
#!/bin/sh
|
|
ports="2222 2223"
|
|
|
|
for port in $ports; do
|
|
/usr/lib/nagios/plugins/check_ssh -p $port localhost
|
|
exitCode=$?
|
|
[ $exitCode -ne 0 ] && exit $exitCode
|
|
done
|
|
|
|
exit 0
|