12 lines
193 B
Bash
Executable file
12 lines
193 B
Bash
Executable file
#!/bin/sh
|
|
|
|
for port in 3308 3309; do
|
|
/usr/lib/nagios/plugins/check_mysql -H 127.0.0.1 -P $port -u nrpe -p MYSQL_PASSWD
|
|
ret=$?
|
|
|
|
[ $ret -ne 0 ] && exit $ret
|
|
done
|
|
|
|
exit 0
|
|
|