How to install Nagios on Linux?

Last week I thought of setting up Nagios on my Linux Box.I installed a fresh piece of RHEL on my Virtualbox and everything went fine. I thought of putting this complete setup on my blog and here it is : “A Complete Monitoring Tool for your Linux Box” Here is my Machine Configuration: [root@irc ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.3 (Tikanga) [root@irc ~]# [root@irc ~]# uname -arn Linux irc.chatserver.com 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux [root@irc ~]# 1) Create Account Information Become the root user. su -l Create a...

How to configure Directory Indexing in Apache?

While attending RHCE examination, I faced a lot of question related to Apache. While installation and configuration of Apache was the first topic, I found this topic very useful and would like to share with everyone who is going to attend RHCE certification. A Quick one line step to configure it is: Edit the /etc/httpd/conf/httpd.conf file : Just Look at the line starting: [Please note: Do add lesser than sign in front of directory] directory “/var/www/html/pdfs” Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory Restart the Apache. Try browsing http://localhost/pdfs

Installing Open-Xchange on Ubuntu 12.04

I thought of starting my day today with Open-Xchange. I had Vmware Workstation installed on one of Windows 7 Enterprise machine. I installed a minimal Ubuntu 12.04 as VM and ready to install. Here it goes: 1. Pre-Requisite: Installed Ubuntu 12.04 With apt-get utility working.(Internet Connectivity) Ensure you have a FQDN name under /etc/hosts iRedMail(Mail Server) software downloaded from http://iredmail.org/download.html 2. Edit the /etc/apt/sources.list and add the following entry: deb http://download.opensuse.org/repositories/server:/OX:/ox6/xUbuntu_12.04/ / 3. Import the key: $sudo wget http://software.open-xchange.com/oxbuildkey.pub-O – | apt-key add – Ensure it showing as “Ok”. 4. Update the machine: sudo apt-get update 4. Lets install iRedMail...

Learn Puppet with Me – Day 2

Today we are going to learn about Puppet Modules. What is Puppet Modules? Puppetlabs defines it as “Modules are self-contained bundles of code and data. You can write your own modules or you can download pre-built modules from the Puppet Forge.”Nearly all Puppet manifests belong in modules. The sole exception is the main site.pp manifest, which contains site-wide and node-specific code. Modules are how Puppet finds the classes and types it can use — it automatically loads any classor defined type stored in its modules. Module Layout On disk, a module is simply a directory tree with a specific, predictable...

Learn Puppet With Me – Day 1

Today is the day 1 of Learn Puppet with Me. I am starting this thread for those who want to learn Puppet smoothly. Puppet is an Automation IT tool and I have already talked about its capabilities in my last post related to Puppet. Let’s demystify the puppet fundamentals through this easy step. Day 1: How to create a file with content “Hello, World” on puppet agent? Say, I have a puppet master and agent ready. All I want is to create a file in puppet agent either running the command in puppet agent or directly fetching it from puppet...

How to setup RAID 1 on Ubuntu Linux?

RAID 1 creates a mirror on the second drive. .You will need to create RAID aware partitions on your drives before you can create RAID and you will need to install mdadm on Ubuntu. You may have to create the RAID device first by indicating the RAID device with the block major and minor numbers. Be sure to increment the “2” number by one each time you create an additional RAID device. # mknod /dev/md1 b 9 2 This will create the device if you have already used /dev/md0. Create RAID 1 # mdadm –create /dev/md1 –level=1 –raid-devices=2 /dev/sdb7 /dev/sdb8...

How to setup RAID 0 on Ubuntu Linux?

RAID 0 will create striping to increase read/write speeds as the data can be read and written on separate disks at the same time. This level of RAID is what you want to use if you need to increase the speed of disk access.You will need to create RAID aware partitions on your drives before you can create RAID and you will need to install mdadm on Ubuntu. These commands must be done as root or you must add the sudo command in front of each command. # mdadm –create /dev/md0 –level=0 –raid-devices=2 /dev/sdb5 /dev/sdb6 –create This will create a...

How do I bind NIC interrupts to selected CPU?

I read this interesting mailing thread few weeks back. I won’t be late to share this with open source enthusiast like you. Here goes the story: I have a 4 Quad server, am trying to bind NIC eth0 interrupt(s) to CPU4 and CPU5. As of now, my eth0 is found bind to all the 8’s. #grep eth0 /proc/interrupts | awk ‘{print $NF}’ | sort eth0-0 eth0-1 eth0-2 eth0-3 eth0-4 eth0-5 eth0-6 eth0-7 How to move ahead? Solution: Follow these steps to get it done. As I am using Broadcom card(bnx2), I am going to run this command and reboot my machine. Open...

Puppet Module for JBOSS

Recently one of my colleague called me up with a problem statement where he was finding difficulty configuring JBOSS through puppet. I tried to help him through one of VMware Workstation box on my Dell Inspiron. I tried to google but couldn’t find the working example. I tried my hands of my own and YES…I did it finally. I am sharing the overall idea how to deploy and configure JBOSS through Puppet. Let’s say you have the following steps which you manually perform for installing JBOSS on your Linux machine: 1.$ su -c “yum install java-1.6.0-openjdk-devel” 2.$ java –version 3.wget...

Automated shutdown of ESXi and VMs through Powershell

My friend was running a cybercafe center. He has dozens of ESXi running 100 of VMs. He was using Dell Multi-UPS Management console to handle his small computer center. The very often power cut was ruining his business. He called up me to see there is a possible solution to handle graceful shutdown of VMs and then ESXi through the available tools and technique. This solution really helped us to handle the situation gracefully. I just noted down the steps roughly and will not be late to share it with you: 1. Download the Dell Multi-UPS Management Console from http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=R318771 2....