If you want to monitor your Nginx server status and all connections per second just like Apache mod_status unde Debian or any Linux/Unix distribution follow this tutorial.

By default, Nginx web server comes with a module called  HttpStubStatusModule that provides information on Nginx active connections, connections per second and other.

This tutorial will show you how to enable this feature in Debian Squeeze:

1. Configure Ngins Status:

First, open the nginx.conf file. On Debian, this is located under the /etc/nginx directory.

# vi nginx.conf

Then add the followings in context location or under every virtualhost that you have configured:

location /nginx_status {
#This turn on stats
stub_status on;
access_log off;
#You can allow only from your home IP address or from any location
allow; #Let's day that this is your IP
#Uncomment the next line if you want to allow access to this from anywhere
#allow all;
deny all;

2. Save and close the file and reload nginx server:

/etc/init.d/nginx restart
[ ok ] Restarting nginx: nginx.

OR Continue Reading…

Nagios is a free service monitoring system, that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes.
In this tutorial I will show you how to install Nagios on Debian 6. For this, I will use a fresh installed Debian 6 with minimalistic packages.

Step1. Install Nagios packages:

By default, Nagios packages are already included in Debian 6 main repository. To install them run this command:

[email protected]:/# apt-get install nagios*

This command will install all packages needed by nagios to work properly.


Step2. Now you will be presented with the question that you need to fill in the information required:

You will be asked first to enter the password for Admin. Choose a strong password and confirm it.


NOTE: This is the username and password you will use to log in to your nagios  installation after configuration is complete. Continue Reading...

Saidar is a curses-based application to display system statistics.
The statistics include CPU, processes, load, memory, swap, network I/O and disks I/O.

Saidar uses the library libstatgrab. libstatgrab is a cross-platform library that provides access to statistics on the system that runs it.  The current list of statistics includes CPU usage, memory usage, disk usage, process counts, network traffic, disk I / O, and more.

Step1. Install Saidar on Debian Squeeze:

apt-get install saidar

Step2. Using saidar:

After having installed it, you can type in the command saidar:

[email protected]:~# saidar

For more info you can view the man page using the command : “man saidar”


Piwik is a  source, open (GPL) web real-time analysis software. It provides detailed reports about visitors on your website like: search engines,  keywords used, the language they speak, your popular pages .
Piwik is an alternative to Google Analytics, and is already used by more than 150,000 websites.
Piwik is an PHP MySQL software program that you can download and install on your own web server. At the end of installation process you will be given five minutes JavaScript code.
Simply copy and paste this tag on websites that wish to track  and access your reports real-time analysis.

You can Download the latest Piwik release and install it on your server. You will need at least PHP5.1 and MySQL to make piwik to work.

Install Piwik on Debian Squeeze:

Step1.  First we need to download the latest release of Piwik from http://piwik.org/latest.zip :

wget http://piwik.org/latest.zip

Step2. Then unzip the downloaded file. This will  create a “piwik” folder containing files and directories.

unzip latest.zip

Continue Reading…

On Debian systems … Apache comes with mod_status compiled by default.
mod_status provides information on the Apache server activity and performance.
This tutorial will show you how to enable this feature, so that only requested issued from localhost are accepted and served.

Setting mod_status up:

By default, server status report is commented so you can not access it. To enable it, you need to uncomment from /etc/apache2/apache2.conf:

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from .your_domain.com

Continue Reading…

Page 1 of 41234