Monitoring nginx Server Statistics With rrdtool
Few days ago I have installed nginx on one of our adult projects as reverse proxy server and for static files management. Yesterday this server got 200Mbit/sec traffic and because all admins like to create miscellaneous graphs, I have decided to draw nginx stats on graphs to see server load not only in megabits and load averages. As the result, I have created perl script, which uses RRDs perl module to create and manage rrd-database and very beautiful graphs.
This script is very easy to install and configure. You can use following steps to get pretty stats graph for your nginx-powered server:
Modify your nginx config file and add following location to it: