check host myserver.domain.com address 8.8.8.8 if failed ping count 3 then exec "/usr/local/etc/monitpush.sh" if failed port 443 protocol https and certificate valid > 30 days then exec "/usr/local/etc/monitpush.sh"
#!/bin/sh/usr/local/bin/curl -s \ -F "token=TOKEN" \ -F "user=USERKEY" \ --form-string "title=$MONIT_HOST - $MONIT_EVENT" \ --form-string "message=$MONIT_DATE - $MONIT_DESCRIPTION" \ https://api.pushover.net/1/messages.json
if failed <test> then exec "/usr/local/bin/sms.sh" as uid "nobody" and gid "nobody" repeat every 5 cycles