Mohan Cheema's Online Diary

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

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

April 28, 2010
by Mohan Cheema
0 comments

OpenSSL and Online Certificate Status Protocol Certificate Creation and Testing

In my previous company I and One of my colleague had to work on Online Certificate Status Protocol (OCSP). These were the steps that we have take to test it. We had put this together so that it will help us in future. If you are testing the same we hope this might help you. Please do let us know of any changes that are require or steps that need to be added.

Share
Share

April 28, 2010
by Mohan Cheema
0 comments

Shell Script for Auto Merging of Subversion code

We have multiple project developments going on simulteanously and always had issues while merging the code to live. Issues were like code getting overwritten, full fucntionality loss. Hence I have written this script for auto merging of the code which has gone live to the development branch. This is done to eliminate the possibilities of above issues. I have used svnmerge.py utility which is available at http://www.orcaware.com/svn/wiki/Svnmerge.py#Downloads. I hope this script will be helpful for you

Share
Share

April 28, 2010
by Mohan Cheema
0 comments

Apache Tomcat Loadbalancing

This article contains step by step instructions for configuring an Apache web server which handles static content and delegates JSP (Java Server Pages) and Servlet requests to two Tomcat servers using AJP 13 connectors and a load balancing worker.

Share
Share

April 28, 2010
by Mohan Cheema
0 comments

Apache Tomcat Integration HowTo

Overview

This is to explain and understand how to integrate Apache and Tomcat to support Java Server Pages (JSP) and Servlets using Apache on your website. Although this setup worked for this particular environment, I can make no guarantees that it will work for yours, but it should with some tweaking. I have spent a lot of time gathering several resources in order to get this to work. Many portions of these resources have been deprecated and required a few workarounds. It is my intention that this tutorial will help anyone that has attempted to install such a system without success. If you find any inconsistencies within this tutorial, please notify me using the contact form.

Share
Share