ansible-roles/nagios-nrpe/files/plugins_bsd/check_openvpn

10 lines
157 B
Plaintext
Raw Normal View History

2017-02-25 16:28:49 +01:00
#!/bin/sh
if netstat -an|grep '.1194' >/dev/null; then
echo "VPN OK"
return 0
else
echo "PROCESS NOT LISTENING"
return 2
fi