How to install Nagios on CentOS 6+

INSTALLATION OF NAGIOS-CORE 1. # yum install gd gd-devel httpd php gcc glibc glibc-common 2. # mkdir /root/nagios 3.  # cd /root/nagios 4. # wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.4.4.tar.gz     # wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.16.tar.gz 5. tar xvzf nagios-3.4.4.tar.gz 6. # cd nagios 7. # ./configure 8. make all, make install, make install-init, make install-commandmode, make install-config, make install-webconf 9. # … Read more

How to Troubleshoot Apache

1. If you are accessing the website by name , make sure it is resolving to an ip address by pinging the address.2. Check the status of apache is it running ?3. Check for any syntax error in apache configuration, if it is not running or is being restarted. [ httpd -t ]2. If the … Read more

How to Install Nagios in Linux/CentOS server

yum install httpd gcc glibc glibc-common gd gd-devel php Create Nagios User account and groupuseradd -m nagios Create nagcmd group for allowing external commands to be submitted through the web interface. Add both the nagios user and the apache usergroupadd nagcmdusermod -a -G nagcmd nagiosusermod -a -G nagcmd apache Create Directory to store Nagios installation … Read more

How to Install CentOS5.8 (Netinstall)

1. Download CentOS 5.8 Net Installfrom http://isoredirect.centos.org/centos/5/isos/i386 2. follow the instruction while installation, you should be needing following informationWeb Site: mirror.centos.orgCentOS Directory/centos/5/os/i38s In this way you should be able to install CentOS.

Common Linux Log Files

Common Linux log files name and usage /var/log/message: General message and system related stuff /var/log/auth.log: Authenication logs /var/log/kern.log: Kernel logs /var/log/cron.log: Crond logs (cron job) /var/log/maillog: Mail server logs /var/log/qmail/ : Qmail log directory (more files inside this directory) /var/log/httpd/: Apache access and error logs directory /var/log/lighttpd: Lighttpd access and error logs directory /var/log/boot.log : … Read more

How to Install and Configure NFS and NFSv4 on Centos 6+

Here are the process how I install and Configure NFS/NFSv4 Configuring Server-Machine first yum install nfs-utils nfs4-acl-tools portmap xinetd Note: you might have problem installing portmap so downlaod rpm from here Be sure there following rpm packages are installed rpm -qa nfs* rpm -qa portmap* rpm -qa xinetd* ———————————————————————————————————- Service portmap start service xinetd start … Read more

VI Editor Search and Replace

:s/foo/bar/g Change each ‘foo’ to ‘bar’ in the current line. :%s/foo/bar/g Change each ‘foo’ to ‘bar’ in all lines. :5,12s/foo/bar/g Change each ‘foo’ to ‘bar’ for all lines from line 5 to line 12 inclusive. :’a,’bs/foo/bar/g Change each ‘foo’ to ‘bar’ for all lines from mark a to mark b inclusive. :.,$s/foo/bar/g Change each ‘foo’ … Read more

How To Install openVPN in Centos 6

How To Install VPN in Centos from Source Make sure you have these packages installed:1. yum install gcc make rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel -y Download LZO RPM and Configure RPMForge Repo:2. wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm (Release can be different)3. wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm (Release can be Different) Build the rpm packages:4. rpmbuild –rebuild lzo-1.08-4.rf.src.rpm5. rpm -Uvh lzo-*.rpm6. rpm … Read more