All Stories

Installing ansible on Centos 6

h3. Installing ansible on Centos 6</p> h5. ansible  dependencies * python-babel* PyYAML     * python-crypto      * python-jinja2      * python-paramiko * python-simplejson.x86_64 - on all nodes...

Bash serial execution of commands and exit on critical

If you want  to executue the shell commands serially in bash script but also want to keep checking and exit if  any of the command fails</p> set this at the...

Yum custom variables

While defining the your local yum repository you can use YUM's in built and custom variable, most commonly used are</p> $releasever This is replaced with the package's version, as listed...

Updating glibc on Ubuntu 10.10

Recently I was struggling to update the glibc on Ubuntu 10.10 from EGLIBC 2.12.  to 2.15</p> Here are the steps I have taken to perform these tasks cd /usr/local/src/      ...

Ganglia Plugins

http://ben.hartshorne.net/ganglia/

How To Set MaxClients in Apache/prefork

http://fuscata.com/kb/set-maxclients-apache-prefork

SNMP configuration in Linux EC2 for Cacti

1) Install snmpd and snmp</p> apt-get install snmpdapt-get install snmp 2) Move  original conf file mv /etc/snmp/snmpd.conf  /etc/snmp/snmpd.conf.org 3) Create new Conf file and add details vi /etc/snmp/snmpd.conf add following...

Sys Admin things...: Keeping your NetApp in check with Nagios

Sys Admin things...: Keeping your NetApp in check with Nagios: Recently we took delivery of a new NetApp. Two 3210′s with roughly 50TB of storage across five disk shelves. For...

Script to check the Forward/Reverse DNS entries are sane for host

#! /bin/bash</p> name=`hostname -f` ip=$(ifconfig eth0 | grep "inet addr" | awk -F '[: ]' '{print $13}') forward=$(host $name | awk -F " address " '{print $2}') reverse=$(host $ip |...

Using multiple Field Separators in AWK

Most of the time working with awk we require multiple field separators, e.g. from the o/p of ifconfig you require ip address , BCast address as well netmask you can get...

Conditional variable assignment/ substitution

Bash does support the conditional variable assignment/ substitution e.g.  below code snippet #! /bin/bash name=${2:-"Juned"} if [ "$name" != "Juned" ];then echo  "hello $name" else echo "bye" fi will define...

How to increase semaphore value in linux

How to increase semaphore value in linux?Semaphore can be described as counters used to control access to shared resources by multiple processes, They are most often used as a locking...

How to check which ini file is in use by php

Run a command to find active php.ini file used by php</p> php -i | grep 'Configuration File'

The history of 404

Before the beginning of time, when the Internet wasstill very much under the spell of bare Unix shellsand Gopher, before SLIP or PPP became widely used, an ambitious group of...

INTERESTING SURVEY : Top Ten Outsourcing Survey

Top Ten Outsourcing Survey Executive Survey: The Outsourcing Institute's Annual Survey of Outsourcing End Users Top 10 Reasons Companies Outsource 1. Reduce and control operating costs 2. Improve company focus...

NRPE: Unable to read output

In my recent assignment I wanted to monitor the contents of a particular file and basis on that contents Nagios should send an alert. Pretty straight forward job :)</p> But...

What is DevOps?

What is DevOps

Practice Linux Online

Create an account at http://linuxzoo.net/  and you can practice the Linux commands online.</p> enjoy  </div>

Understanding Linux CPU Load

A good article on understanding-load-averages</p> http://www.linuxjournal.com/article/9001</div>

Vi editor Cheat Sheet

Daily we work a lot on Vi, this cheat sheet will be helpful and give a good shortcuts so as to save time.</p> Vi editor Cheat Sheet </div>