forked from evolix/ansible-roles
11 lines
201 B
Bash
Executable file
11 lines
201 B
Bash
Executable file
#!/bin/bash
|
|
|
|
returnCode=0
|
|
|
|
for port in $(grep "^-p " /etc/memcached*.conf |cut -d ' ' -f 2); do
|
|
/usr/lib/nagios/plugins/check_tcp -p $port
|
|
returnCode=$(($returnCode|$?))
|
|
done
|
|
|
|
exit $returnCode
|