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'