Languages

Enquiries: info@infomagnet.com / +44 (0)20 7193 3323

ssh

Checking mirror disk usage and file timestamp via ssh using python

We have a mirror VPS, and we hit its maximun size a few times, making our mirror unusable, and because we don't monitor it so often we missed when that happened. Here's a small script that check remove disk usage via ssh. We also hit mirror's RAM limit, which was making rsync fail. I also added a check for a remote file timestamp and, if too old, reports that something's wrong.
Posted by ariel on April 20th, 2010
Comments: 0
Tags: linux, python, ssh