NAGIOS&CACTI Complete installation and integration

Source: Internet
Author: User
Tags curl mysql openssl

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!.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.