yeah here are several lines from openvpn-client.log
Sun Apr 6 00:14:39 2014 us=887909 /sbin/ip route add 18.104.22.168/1
Sun Apr 6 00:14:39 2014 us=890100 /sbin/ip route add 10.8.0.1/32
Sun Apr 6 00:14:39 2014 us=892228 Initialization Sequence Completed
Sun Apr 6 01:14:37 2014 us=8351 TLS: soft reset sec=0 bytes=151768170/0 pkts=209813/0
'Initialization Sequence Completed' is the pattern I want monit to look for and respond to. I've deleted the line
ignore match "^monit" from monit.conf as per your instruction.
btw, for no reason I can see the the monit.log file has suddenly started showing:
debug : monit: Cannot open proc file /proc/4945/stat -- No such file or directory
debug : system statistic error -- cannot read /proc/4945/stat
every time I start monit. Do you know why this is?
This is my monit.conf file:
set daemon 60
set logfile /home/share/monit.log
set idfile /var/monit/id
set statefile /var/monit/state
check file openvpn-client.log with path /home/share/openvpn-client.log
if match "^Initialization Sequence Completed | /home/share/openvpn-client.log"
then exec "/root/sendemail.sh"
thanks for your further help btw...