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