Skip to main content

Web monitor script

Comments

2 comments

  • WasChristine
    Hello, The
    0
  • plesk4lyf
    Hi Dan, Your script is disgusting... I love it. Here's your cronjob: [CODE=bash]*/5 * * * * timeout 3s curl -so /dev/null https://siteaddress.tld/success.html || (/scripts/restartsrv_httpd && echo ""|mailx -s "$(date):Timeout... Restarted HTTPD" youremailhere)
    You should probably actually just go through the apache logs to see what the reason was though.
    0

Please sign in to leave a comment.