Overview and installation of Nagios

Source: Internet
Author: User


Nagios Features: Tools to monitor the status of other servers using Web pages

Composition
Nagios core, the core module, does not perform specific monitoring work
Plugins, which is combined with core modules to enable monitoring of a specific object


Working object:
1, host, switch, router, virtual machine
2. Services/Resources
3. Contact
4. Period
5. Command


Installation:
# yum-y Install httpd gcc glibc glibc-common gd gd-devel php php-mysql MySQL mysql-server mysql-devel
Create groups and users
# Groupadd-r Nagcmd
# useradd-g Nagcmd-r-s/sbin/nologin Nagios
# echo ' Redhat ' | passwd--stdin Nagios &>/dev/null
# usermod-a-G Nagcmd Apache

#tar ZXF nagios-3.3.1.tar.gz
#cd Nagios
Compile and install:
#./configure--sysconfdir=/etc/nagios--with-command-group=nagcmd--enable-event-broker--prefix=/usr/local/nagios
# make All
# make Install
# Make Install-init
# Make Install-commandmode
# Make Install-config
# Make Install-webconf

Modify the default contact for Nagios, (if the monitored server has broken down the person you are looking for)
# vim/etc/nagios/objects/contacts.cfg
Email[email protected]

The administrator who created the Web interface for the Nagios monitoring service;
#htpasswd-c/etc/nagios/htpasswd.usersnagiosadmin
#cat/etc/httpd/conf.d/nagios.conf

# tar AXF nagios-plugins-1.4.15.tar.gz
# CD nagios-plugins-1.4.15

To compile the installation options:
#./configure--with-nagios-user=nagios--with-nagios-group=nagios--with-mysql
# Make && make install

# Chown-r Nagios.nagcmd/etc/nagios
# Chown-r APACHE.NAGCMD/ETC/HTTPD
# Chown-r Nagios.nagcmd/usr/local/nagios
# chkconfig--add Nagios
# chkconfig Nagios on
# service Nagios Start
#service httpd Start

To turn off Setenforce and context values:
# Setenforce 0
# chcon-r-T Httpd_sys_content_t/usr/local/nagios/sbin
# chcon-r-T Httpd_sys_content_t/usr/local/nagios/share




This article is from the "12415761" blog, please be sure to keep this source http://12425761.blog.51cto.com/12415761/1883798

Overview and installation of Nagios

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.