Nagios is the new name for NetSaint, a network/service monitoring tool. It was designed for Linux, but can be compiled and run perfectly well under any UNIX variant as far as I am aware. The monitoring daemon runs intermittent checks on hosts and services you specify.Nagios can send report through …
Upgrading kernel
Situation
the existing kernel was 2.4 and the required one is 2.6
cd /usr/local/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.1.tar.gz
tar -zxf linux-2.6.20.1.tar.gz
cd linux-2.6.20.1
Now we need to copy the existing kernel configuration file
cp /boot/config-2.4.22-1.2199.nptlsmp /usr/local/src/linux-2.6.20.1/.config
Now we need to configure the kernel using this configuration file .. for that use
make oldconfig
You can see a lot of new features for …
Mysql Replication is used to get a mirror copy of master server to slave. All changes made in server is updated on slave. This can be achieved by the following steps. one thing to be notify is the master and salvemay contain the same version of mysql.
changes in master …
PHP eAccelerator is a free open source PHP accelerator, optimizer and dynamic content cache module that specially build to optimize php performance. According to php eaccelerator official site, php accelerator able to speed up the php code by 1-10 times and reduce server load.
Installing PHP eAccelerator from source
Requirements
* php4 or php5
* autoconf
* automake
* libtool
…
You can’t find a directory named ’scripts2′ on your server. If you wish to run such a script you have to log into the WHM and use a URL as follows.
http://your server IP:2086//scripts2/autofixer
Then type the autofixer scripts name. You will get the autofix scripts from the following link.
http://httpupdate.cpanel.net/autofixer/
Example
1) Reset the …
Please do this script on your own risk, first test this script on test machine. then do it on live server
#!/bin/bash
EMAIL=”riyesh@linuxbuddies.com”
SUBJECT=”Alert $(hostname) load average is $L05?
TEMPFILE=”/tmp/$(hostname)”
echo “Load average Crossed allowed limit.” >> $TEMPFILE
echo “Hostname: $(hostname)” >> $TEMPFILE
echo “Local Date & Time : $(date)” >> $TEMPFILE
echo “| Uptime status: |” >> …
APC MM cache is an most commonly used php accelerators
Please follow the steps to install APC mem Cache
1. cd /usr/local/src
2. wget http://pecl.php.net/get/APC-3.0.14.tgz
3. tar -xzvf APC-3.0.14.tgz
4. cd APC-3.0.14
checking the location of phpize and php-config paths
finding the Phpize binary location
whereis phpize
output looks like:
phpize: /usr/bin/phpize /usr/local/bin/phpize
whereis php-config
output looks like:
php-config: /usr/bin/php-config /usr/local/bin/php-config
5. execute the command …
The following will explain how to share your Internet connection:
Note: Type all the following commands in a root terminal, DO NOT use sudo.
1. Start by configuring the network card that interfaces to the other computers on you network:
# ifconfig ethX ip
where ethX is the network card and ip is your …
1. Create a directory to do our work
mkdir ~/ffmpeg
cd ~/ffmpeg
2. Get all the source files
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
3. Extract all the source files
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
4. Create the codecs directory & import them
mkdir /usr/local/lib/codecs/
mv …
Install openvpn using the rpm
Installing OpenVPN from a binary RPM package has these dependencies:
openssl
lzo
pamInstall rpms as root:# rpm -ivh openvpn-2.0.5-1.el4.rf.i386.rpm
installing rpm
rpm -ivh lzo-1.08-4.2.el4.rf.i386.rpm
The main configuration directory for open vpn is /etc/openvpn
Setting up your Certificate Authority (CA) and generating certificates and keys for …












