Check of the services are online

I have written a script that checks whether the services are still running, if not, I will receive an email and can take action. The script writes the data in a file. This file is in /var/www/up and is called up.htm. Now I can view the file via the browser. http://ip-adres/up/up.htm  # Only amprnet

I have add a cronjob for it. The cronjob runs the script every 5 minutes

The output look like this

Here is the script


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.