We are using this script with jenkins to deploy “upload” a specific folder to a remote FTP. I used the winscp.exe synchronize command for it.
Nagios plugin to verify a FTP site, by uploading a file and testing the time it takes.
< ?php // Script to connect to a FTP site and Upload a file, return the time it took and compare to WARN and CRIT values // Formated for Nagios usage // Use a test user for the FTP as it could be simple to get this password // I use a 5mb file, created by using: dd bs=1024 count=5120 skip=5120 if=/dev/sda of=file.tst // by Felipe Ferreira http://felipeferreira.net Read more…
I needed to check if operation was happening.
The doubt was, Is the FTP files being copied over every day to the server?
To be sure I wrote this PHP script to check.
It goes into the FTP server and check for a folder with the date of today.
So How can we know the FTP server is saving all files as it should.
Well I found a way to go directly in the IIS-ftp log files and get the results from there.
They key tool here was logparser, Its very usefull to monitor, if the server is getting error responses or is being attacked by hackers the thresholds should go off.
Log Parser sample queries to check the health of your IIS,FTP.
Since I am big fan of motogp I will be placing each race in my site available for download:
GO AHEAD AND BROWSER ALL FILES!
HOW TO backup ESX 3.0.1 with vmbk.pl
This nice perl script allows online backup of Virtual Machines to a remote FTP/SMB/NFS
It was written by Massimiliano Daneri, and many other authors contributed
it can be downloaded from here
How to install it:
Download and copy to a the ESX server using WinSCP, copy to /etc/vmbk
Login via SSH into the ESX server:
# cd /etc/vmbk
# bash install.sh
Runing the script from /etc/vmbk/ it will work, since the dependencies are in these folders.