There are 2 main types of surveillance this time:
1.web Server
2.mysql Server
So first of all to ensure that Nginx/apache or MySQL service startup;
The following is the function Installmysql () script for the MySQL Monitor-side deployment:
Installmysql () {Yum Install xinetd-y service xinetd start CD $path useradd-s/sbin/nologin TAR-ZXVF nagios-plugins-1.4.14.tar.gz cd nagios-plugins-1.4.14./configure
Nagios Structure Description
Nagios structure, can be divided into core and plug-in two parts. The core of Nagios only provides a little monitoring function, so to build a perfect IT monitoring management system, users also need to install the appropriate plug-ins in the Nagios server, Plug-ins can be downloaded from
Installation method Please refer to Linux learning Note: Nagios installationClientSince my installation is using xinetd This daemon, I need to adjust the relevant configuration file[[emailprotected]~]#vi/etc/xinetd.d/nrpeservicenrpe{ flags= Ipv4socket_type=stream port =5666wait =nouser =nagios group=nagios server =/usr/local/
How to Use the Nagios remote execution plug-in (NRPE) to detect server memory usage
In the previous tutorial (), we have seen how to set the Nagios remote execution plug-in (NRPE) in Nagios settings ). However, the scripts and plug-ins that monitor memory usage are not in native Nagios. In this article, we will see how
The master-slave synchronization of Mysql and the LAMP environment were set up before the experiment, and then the nagios server was set up, and then configured on the slave side.
1. Add a user to the master database serverMysql> grant Replication client on *. * to 'nagios '@' % 'identified by 'nagios ';Mysql> flush privileges;
2. log on to the slave server and
NagiosThe device and setup of the remote monitoring software are as follows:
Figure-Nagios
As a system administrator, I'm most depressed when my main online systems stop or stop collecting services without my knowledge, in addition, it may take a long time for the faulty services or hosts to know. Especially when it comes to the festival, the system administrator is very important. To change this passive situation, here I promise to collect monitori
Nagios + Nconf deploy Nagioscroe source code to install and install the basic environment. Package: ForRHEL/CentOSusers: yuminstall-ywgethttpdphpgccglibcglibc-commongdgd-develmakenet-snmpopenssl-devel. use Nagios + Nconf to deploy the Nagios croe source code to install and install the basic environment. software package: For RHEL/CentOS users: yum install-y wget
I. Configuring Nagios ServicesThe Nagios service is run in the main profile nagios.cfg, the monitoring plug-in is called in the configuration file, the operator can set the monitoring plug-in monitoring threshold value (warning value error value); The Nagios service's plug-in compares the monitored data to the monitoring thresholds, showing the monitoring status
allow desktop and server interaction. Then click "application ".
Nsclient ++/start
Nsclient ++/stop
Edit nsclient ++/nsc. ini:
1. The comments in front of all modules in [modules] are removed except CheckWMI. dll and RemoteConfiguration. dll.
2. In the [Settings] section, set the 'Password' option to set the password, which is required when nagios is connected. We do not need a password here!
3. Remove the comment of the 'allowed _ hosts' option in t
, the dba can handle the maintenance immediately.
1. Download The redis monitoring plug-in
Redis has been installed on the server, so it can be directly monitored. For details about how to install redis clusters, refer.
2. Grant the execution permission
Copy check_redis.php and check_redis.pl to the/usr/lib/nagios/plugins/directory, and grant the execution permission,
[Root @ wgq_41 plugins] # cd/usr/lib/nagios
How to configure Nagios Remote Plugin Executor (NRPE) in Linux (1)
Nagios is one of the most powerful tools for network management. Nagios can monitor the accessibility of remote hosts and the status of running services. But what if we want to monitor anything other than the network service in the remote host? For example, we may want to monitor the disk utiliza
I. Experimental environment
OS
CentOS 6.8 x86_64
Nagios Main Program
Nagios-4.1.1.tar.gz
Nagios Plugin
Nagios-plugins-2.1.1.tar.gz
Two. Configure domestic sources#备份系统自带的yum源并更新缓存mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-bas
First of all, the environment of their own building. RedHat6.4 system nagios-4.0.7. Turn off SELinux and iptables services1, get ready to work, install the software that Nagios needsApachePhpGCC compilerGD Development LibrariesYum install httpd php gcc glibc glibc-common gd gd-devel2, create the accounts and groups used by Nagios, first switch to Administrator ac
Deploying Nagios monitoring on the MySQL server
Deploying Nagios monitoring on the MySQL server
-- Ulimit-n 65535-- Monitor the forced installation of nagios Client1. Install[Root @ localhost nagios] # llTotal 768-Rw-r -- 1 root 713389 12-16 nagios-plugins-1.4.11-1.x86_64.rp
Install nagios on pure ubuntu and use 1. installation environment 1. system ubuntu-12.04.1-desktop-amd64.iso2. virtual machine VMware amp; reg; Workstation8.0.4build-7440193. remote tool xshell4 2. installation step 1. apt-getinstallssh2. create... install nagios on pure ubuntu and use 1. installation environment 1. ubuntu-12.04.1-desktop-amd64.iso System 2. virtual machine VMware®Workstation 8.0.4 build-7
Check if the package is installed because Nagios needs to rely on these packages to provide services [[emailprotected]nagios]#rpm-qgccglibc Glibc-commongdgd-develxinetdopenssl-devel[[emailprotected]nagios] #yum install-ygdgd-develxinetdopenssl-devel Build Nagios Account [[email protected]~]#useraddnagios-s/sbin/nologin
Because the Nagios source code installation process is more cumbersome, so the entire compilation of the installation process into a script to allow the system to automatically run, so as to reduce human intervention, improve efficiency.
Ideas from the "dl528888" blog, http://dl528888.blog.51cto.com/
Experimental environment: CentOS 6.3 x86_64, close firewall, SELinux set to Disabled
Installation package: nagio
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.