We will look at very basic script which will make sure multiple websites are up and running. This is very basic script that utilities power of Linux tool called curl. Curl is well know tool used to automate url related tasks and much more. The basic script will use variable called $LIST_OF_WEBSITES which will contain
Nagios is excellent monitoring tool and python is very powerful scripting language. Lets take a look how we can put this 2 together to create our own website monitoring plug-in. We will monitor basic public http response via python httplib module. In our example NAGIOS is installed on CentOS 7, procedure should be the same
This is very simple script to backup wordpress based website. It could be used to backup any LAMP based site as well. There are many ways to backup wordpress site. This particular python script is very simple. It cosists of few variables backup_path = '/mnt/backup' # where backup files should be placed source_directorie = '/var/www/html/mysite.com'