Now the open source industry more than two of the monitoring software is nagios/cacti, the following author to explain the installation and integration of the two, in fact, the network of such documents are more, but are relatively fragmented, for beginners to build up very easy to problem, I send a completely suitable for beginners tutorial! About the difference between the two, nonsense not to say more!!
The first system of the Software Library installation:
Yum-y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-deve L zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel Curl curl-devel e2fsprogs E2 Fsprogs-devel krb5 krb5-devel libidn libidn-devel OpenSSL
-----------------------------------------------the first part: Nagios------------------------------------------
All packages are placed in:/USR/LOCAL/SRC or other locations! (Form a good habit!!) )
First, the installation of Nagios essential components of the operation relies on httpd, MySQL, GD, and compiled GCC
Yum-y Install httpd gcc glibc glibc-common *gd* php php-mysql mysql mysql-server mysql-devel openssl-devel
II. create users and groups running Nagios
Groupadd Nagcmd
Useradd-m Nagios
Usermod-a-G Nagcmd Nagios
Usermod-a-G Nagcmd Apache
Usermod-g Nagios Apache
Iii. installation of Nagios
Cd/usr/local/src
Tar zxvf nagios-3.3.1.tar.gz
CD Nagios
Mkdir/usr/local/nagios
Chown-r Nagios:nagios/usr/local/nagios
./configure--prefix=/usr/local/nagios
Make all
Make install
Make Install-init
Make Install-config
Make Install-commandmode
Make install-webconf
To create an authenticated user:
Htpasswd-c/usr/local/nagios/etc/htpasswd.users Nagiosadmin
PS: Here the user name as far as possible using the default nagiosadmin, otherwise you need to modify the Cgi.cfg file all about the authentication option users.
Start Apache
Service httpd Restart
Here you can modify the servername of the Apache configuration file, or it will be very slow every time you start!!! This can be changed to your ip!.