Nagios is an open source free network monitoring tool that effectively monitors Windows
, Linux and Unix host status, switch routers and other network settings, printers, etc. When the system or service status is abnormal, an email or SMS alarm is sent to inform the website operation and maintenance personnel of the first time, and a normal mail or SMS notification is sent after the status is restored. Let's learn how to install this software on CentOS.
Some things after the installation is complete
You need to install Nagios as root. Make sure to install the following packages on CentOS:
You can do this through yum:
#yum install httpd httpd-devel php openssl-devel
#yum install gcc glibc Glibc-common
#yum install gd gd-devel
Start installing Nagios
Create account
Create nagios users and create nagcmd user groups to execute from Web interface commands and add nagios and apache users to this user group.
#groupadd nagcmd /*Create group nagcmd*/
#usermod –G nagcmd apache /*Add user apache to group nagcmd*/
#useradd -G nagcmd nagios /* create a new user nagios and added to the group nagcmd * /
#passwd nagios /* modify nagios password * /
Download Nagios and plug
create a download store directory:
#mkdir ~ /downloads
from Download http://www.nagios.org/download/to download Nagios (Chinese version of the first-time installation is recommended for students who are not good at English) and plug-ins.
#wget http://sourceforge.net/projects/nagios-cn/files/sourcecode/zh_CN%203.2.3/nagios-cn-3.2.3.tar.bz2/download ## Chinese version #wget http://iweb.dl.sourceforge.net/project/nagiosplug/nagiosplug/1.4.16/nagios-plugins-1.4.16.tar.gz
Compile and install Nagios
#tar -jxvf nagios-cn-3.2.3.tar.bz2 #cd nagios-cn-3.2.3
run Nagios configuration script, and Change nagcmd to the group you created earlier.
#./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagcmd
compiler Source:
install binaries, init script, sample configuration file and directory permissions set up an external command.
#make install #make install-init #make install-config #make install-commandmode
Do now perform nagios, here are some you need to configure .
Custom Configuration
The style configuration file has been installed in the /usr/local/nagios/etc directory, modify the contact as the administrator in the next step and change the email address.
#vi /usr/local/nagios/etc/objects/contacts.cfg
configure web interface
install Nagios Web in the Apache configuration file the conf.d directory:
#make install-webconf
login Nagios Web interface to create nagiosadmin account. Remember the password you set below, and then log in.
#htpasswd -c /usr/local/nagios/etc/htpasswd.users barlow ## here I use my English name is barlow default administrator
Restart Apache to make the new configuration take effect.
#service httpd restart
There is no doubt that Red Hat is indeed the choice of many companies considering Linux, but in rece
1. Log in to Linux with telnet: Need to install telnet related packages for Linux Configure /etc/Xin
Mono is a cross-platform, open source .NET development framework. Support for Linux systems, which
It is quite cumbersome to add and remove programs in Linux. The installation of th
How to determine if the service is running a shell script
Linux Performance Tuning Basic Policy Settings
Linux vi save exit command (how to exit vi)
Linux common tips: teach you the same network card configuration multiple IP
The linux shell implements four arithmetic operations (integer and floating point). Simple method
Add and delete Linux services, autorun and status
Network card cannot be detected after Linux starts
How to open telnet function in Linux?
Linux is a very useful command to find the software installation directory
Extraordinary new experience under win7 UAC (2)
How to remove the network application of Modern Application in Win8
Windows 10 Home Edition users complained about system updates to device Caton
Win7 comes with multimedia software - how powerful Windows Media Center is in
How to update the system patch for the LAN (text tutorial)
Windows 7 shortcut key combination and simple optimization Raiders
How to quickly resolve the u disk to refuse access
Is the choice of graphics card independent or integrated?
Win7 system open U disk prompt "parameter error" how to do? How to copy U disk data?