forked from evolix/ansible-roles
11 lines
201 B
Plaintext
11 lines
201 B
Plaintext
|
#!/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
|