Hi all, after showing you how to simply check load average or memory usage on linux, today i’ll simply show you how to check disk space and take action if a threshold is reached. We’ll simply use df, grep, awk, cut and if/then to do this : Just put it in your crontab and you’ll …
Blog
In your admin work it can be useful to check free memory and take action on threshold. The most tools don’t show you a realistic state of your memory. For example if you launch « top » command on a server, you’ll obtain an information like this : If you use the « free » command, you’ll obtain the …
WordPress « Pingback » DDoS attacks can generate a lot of requests to your website that can affect performances and availability.  You can recognize easily this attacks : you just need to do a tail -f  on your logs and you’ll probably see thousand of request that have a User-Agent « WordPress xxxx » on it. I don’t think …
When you work for a MSP, a hosting company or a cloud operator, sometimes you need to delete a lot of dns zone in one time. If you need to delete 1500 zones with your hand and you keyboard, you ‘ll need week to do the job. So let me show you how you can …
Hi all, install bind 9 on debian 8 and chroot it isn’t a complicated task. But that’s steal a precious time for doing something else. So this is just a tiny post to simplify you this way First Step : install Debian 8 Second step : Third step : just use wget to download the …
When you work in a hosting company, DN is probably one of the services with you need to interact every week. With this script you can update automatically one or more of dns zone files : for the serial number : just let bash doing it for u. Because most of time we are not …
When you manage servers, it can be useful to take a numbers of action automatically (restart a service, add a firewall rules, kill a process, sending an alert, etc.) if the load average is too high. The problem of a lot of shell script about this, it’s if the load average down slowly after the …
Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely. To install webmin on debian …
Hi all, you can find here my 2 patches against the GHOST vulnerability for Mandriva 2010.2 Linux distribution and Mageia 3. 1) The first patch is for Mandriva 2010  and i want to thanks Moncef Limam  AET (http://aet.com.tn) for his help. 2) The second patch is for Mageia3 Linux To install the patch : 1) download …
Another new version of patched bash version against shellshock for out of date linux distribution. This patch works with success on Mandriva 2008 to 2010.2, OpenSUSE 12.1 Asparagus 64 bits & Red Hat Enterprise Linux Server release 5.2 (Tikanga). I’ve also put a corrected version for OVH Release 2 64 bits linux distribution To install …
When you manage a hosting company you have many clients that can’t upgrade their software version. The only solution to keep this clients is to maintain old packages version like php or stop the service. Today i’m migrating an historical server with clients that use an old php version (php4) and an apache 1.3 version …
It is not enough to plan everything : must also be able to improvise and adapt. Christophe Casalegno ​Vous pouvez me suivre sur : Twitter | Facebook | Linkedin | Telegram | Youtube