Script to check web server uptime
Measuring server uptime is important. I needed a script that would periodically ping a website and send me an email when the site was down. After a bit of searching, I came up with a winner! The script is written in perl, so it will run on the average linux server. (Most windows users will have to install perl) It will notify you via email if the target website is down or slow. You can get the script at:
http://checkwebsite.org/ The script is licensed under the GPL.
IFTOP 0.17.1 RPM for Centos 4
IFTOP is a program like TOP (except that it watches CPU processes) that listens to network traffic and
displays bandwidth on the console. I tried to install from source, but I kept getting "Can't find a curses library supporting mvchgat" at configure. I ended up rolling my own rpm.
Download here. You must have ncurses and ncurses-devel installed. The rpm was built on a i386 arch CentOS 4.4 box, but will probably work on RHEL4 also.
MD5 sum is 953152125faa9973880c6f4445a0b22e
Using SQUID in a reverse-proxy mode
PHP/Mysql websites are great for easy and fast content development. But they are also resource hogs. What happens when your dynamic website becomes REALLY popular? Well, in a word, your website will grind to a halt (along with all the other domains hosted on the same machine!) What to do? Lot's of stuff -- you can try increasing MySQL's internal cache size, you can try to cache PHP output, etc. But when that is still not enough, you have to think bigger, and that's where Squid comes in. Here are two great articles on a real-life Squid reverse-proxy application:
Building an Edge Server With Squid 2.6 High-load Website (WordPress) Optimization : IlmuKomputer.com