轻量级系统监控工具 – Monitorix

On 2010年08月9日, in linux, by netoearth

Monitorix is a free, open source, lightweight system monitoring tool designed to monitorize as many services as possible. At this time it monitors from the CPU load and temperatures to the users using the system. Network devices activity, network services demand and even the devices’ interrupt activity are also monitored, and more.

The current status of any corporate server with Monitorix installed can be accessed via a web browser.
Monitorix has been designed to be used under production UNIX/Linux servers, but due its simplicity and small size you may also use it to monitor embedded devices.

Installation:
Monitorix is under GPLv2 licensing and available for download on the project homepage as source code and in numerous packages. Rpm based system (RedHat / Fedora / Centos / Opensuse) can install Monitorix using command:

rpm -ivh monitorix-1.4.2-1.noarch.rpm

Configuration of Monitorix:
Before starting the monitorix daemon, be sure to adjust the /etc/monitorix.conf to your liking. For a complete list of options and features, see the man page for monitor.conf.

our $TITLE = “Linux Poison”;                                 # your company name
our $HOSTNAME = “poison.hell.com”; # hostname of this server
our $OSTYPE = “Linux-SuSE”;                 # choose your OS type (see below)
our $SAMBAVER = “3”;                         # Samba version (2 or 3)
our $MULTIHOST = “N”;                 # Enable multihost feature
our $MULTIHOST_FOOTER = “Y”;         # (multihost) display URL in image
our $MULTIHOST_IMGPERLINE = “2”;         # (multihost) # of images per line
our $REPORT_LANG = “en”;                         # Report language
our $THEME_COLOR = “black”;                 # Default is “black”, none is “white”
our $REFRESH_RATE = “150”;                 # Web stats’ refresh rate in seconds
our $ENABLE_CROND_MAIL = “Y”;         # Error messages are sent by crond

Common settings to tweak here include company name, hostname, and theme color.
Edit the file /etc/monitorix.conf and change the %BASE_WWW variable to the same as the HTDOCS value above.
然后把monitorix.cgi拷贝到NGINX下面,当然得先配置好NGINX支持Perl的CGI方式运行
Finally you’ll be able to start Monitorix with: # service monitorix start
To view your system stats, make sure your webserver is running and browse to [http://localhost/monitorix] to see the data.
Tagged with:  

Comments are closed.