Mohan Cheema's Online Diary

Site Just to Keep Track of My Day to Day Work.

August 23, 2010
by Mohan Cheema
0 comments

SVN Hook to send email after commit

As SVN admin we are asked to send an email to release managers and testers for all the commits made to the repository so that release managers can update their release sheet and testers can do the testing. This is small post-commit hook for SVN which sends out an email to release manager and testers.

Share
Share

August 23, 2010
by Mohan Cheema
1 Comment

SVN Hook to stop commits without comments

As SVN admin we need to make sure any commits made to the repository should have comments associated it with. The reason to have comments during commits is simple to know what has been fixed or what new has been added to the repository. Here is the simple shell script I have written to stop the commits if comments has not been added.

Share
Share

August 12, 2010
by Mohan Cheema
0 comments

Install Memcached With repcached “Built-In Server Side Replication”

Everyone probably know about memcached (http://memcached.org/) and its high performance name-value based memory object cache interface. Its main purpose is to provide an easy to use distributed caching engine in a multinode environment. However, have you ever wanted to let memcached handle replication?

Share
Share

May 21, 2010
by Mohan Cheema
0 comments

AWK One Liners

Simple AWK programs enclosed in single quotes can be typed and executed right at the Unix prompt. For example, the program

awk ‘BEGIN { FS = “:” } { print $1 | “sort” }’ /etc/passwd

This program prints a sorted list of the login names of all users.

Share
Share

April 28, 2010
by Mohan Cheema
4 Comments

Advanced MRTG HowTo

Introduction

In many cases using MRTG in a basic configuration to monitor the volume of network traffic to your server isn’t enough. You may also want to see graphs of CPU, disk, and memory usage. This chapter explains how to find the values you want to monitor in the SNMP MIB files and then how to use this information to configure MRTG.

Share
Share

April 28, 2010
by Mohan Cheema
0 comments

Linux SNMP and MRTG HowTo

Introduction

You can monitor your system’s Web performance quite easily with graphical Linux tools. You’ll learn how to use several in this chapter, including MRTG, which is based on SNMP and monitors raw network traffic, and Webalizer, which tracks Web site hits.

Share
Share