@ -44,10 +44,7 @@ and your command runs. If it completes successfully (exit code 0),
curl or wget runs a HTTP GET call to the ping URL.
curl or wget runs a HTTP GET call to the ping URL.
< / p >
< / p >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
{% include "front/snippets/crontab.html" %}
< / div >
{% include "front/snippets/crontab.html" %}
< p > With this simple modification, you monitor several failure
< p > With this simple modification, you monitor several failure
scenarios:< / p >
scenarios:< / p >
@ -113,41 +110,21 @@ thing: they fire off a HTTP GET method.</p>
Ubuntu, for example, does not have curl installed out of the box.
Ubuntu, for example, does not have curl installed out of the box.
< / p >
< / p >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
{% include "front/snippets/bash_curl.html" %}
< / div >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
{% include "front/snippets/bash_wget.html" %}
< / div >
{% include "front/snippets/bash_curl.html" %}
{% include "front/snippets/bash_wget.html" %}
< a name = "python" > < / a >
< a name = "python" > < / a >
< h3 > Python< / h3 >
< h3 > Python< / h3 >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
{% include "front/snippets/python_urllib2.html" %}
< / div >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
{% include "front/snippets/python_requests.html" %}
< / div >
{% include "front/snippets/python_urllib2.html" %}
{% include "front/snippets/python_requests.html" %}
< a name = "node" > < / a >
< a name = "node" > < / a >
< h3 > Node< / h3 >
< h3 > Node< / h3 >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
{% include "front/snippets/node.html" %}
< / div >
{% include "front/snippets/node.html" %}
< a name = "php" > < / a >
< a name = "php" > < / a >
< h3 > PHP< / h3 >
< h3 > PHP< / h3 >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
{% include "front/snippets/php.html" %}
< / div >
{% include "front/snippets/php.html" %}
< a name = "browser" > < / a >
< a name = "browser" > < / a >
< h3 > Browser< / h3 >
< h3 > Browser< / h3 >
@ -156,10 +133,7 @@ thing: they fire off a HTTP GET method.</p>
CORS header in its ping responses, so cross-domain AJAX requests
CORS header in its ping responses, so cross-domain AJAX requests
should work.
should work.
< / p >
< / p >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
{% include "front/snippets/browser.html" %}
< / div >
{% include "front/snippets/browser.html" %}
< a name = "powershell" > < / a >
< a name = "powershell" > < / a >
< h3 > PowerShell< / h3 >
< h3 > PowerShell< / h3 >
@ -173,20 +147,14 @@ When scheduled to run with Task Scheduler, it will essentially
just send regular "I'm alive" messages. You can of course extend it to
just send regular "I'm alive" messages. You can of course extend it to
do more things.< / p >
do more things.< / p >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
{% include "front/snippets/powershell.html" %}
< / div >
{% include "front/snippets/powershell.html" %}
< p > Save the above to e.g. < code > C:\Scripts\healthchecks.ps1< / code > . Then use
< p > Save the above to e.g. < code > C:\Scripts\healthchecks.ps1< / code > . Then use
the following command in a Scheduled Task to run the script:
the following command in a Scheduled Task to run the script:
< / p >
< / p >
< div class = "snippet" >
< button class = "copy-snippet-link hidden-sm" > copy< / button >
< div class = "highlight" >
< pre > powershell.exe -ExecutionPolicy bypass -File C:\Scripts\healthchecks.ps1< / pre >
< / div >
< div class = "highlight" >
< pre > powershell.exe -ExecutionPolicy bypass -File C:\Scripts\healthchecks.ps1< / pre >
< / div >
< / div >
< a name = "email" > < / a >
< a name = "email" > < / a >
@ -284,6 +252,7 @@ the following command in a Scheduled Task to run the script:
{% block scripts %}
{% block scripts %}
{% compress js %}
{% compress js %}
< script src = "{% static 'js/jquery-2.1.4.min.js' %}" > < / script >
< script src = "{% static 'js/jquery-2.1.4.min.js' %}" > < / script >
< script src = "{% static 'js/bootstrap.min.js' %}" > < / script >
< script src = "{% static 'js/clipboard.min.js' %}" > < / script >
< script src = "{% static 'js/clipboard.min.js' %}" > < / script >
< script src = "{% static 'js/snippet-copy.js' %}" > < / script >
< script src = "{% static 'js/snippet-copy.js' %}" > < / script >
{% endcompress %}
{% endcompress %}