The monitoring side of the work has been done, now as long as the monitoring side of the operation;
Note: be monitored MySQL remember to set the password AH
The addition of service types is also 2:
1.web Server
2.mysql Server
The following is a script to add a Web service:
WebServices () {read-p "" Please input the Web server IP: "Webip read-p" please input the Web alias name: " Host echo "define host{host_name $host alias Web-server address $webip Check_command
Nagios ConfigurationPreparations for configuring Nagios are very important.
Figure-Nagios
Handling before Nagios Configuration
The main task is to create nagios users and their groups so that the running users of nagios are
On the nagios page, the following error is displayed: Warning: NRPE: Unabletoreadoutput1. Go to the nagios monitoring server and check 1.1.
On the nagios page, the following error is displayed: Warning: NRPE: Unable to read output1. Go to the nagios monitoring server and check 1.1.
On the
Nagios is currently a very popular system, server monitoring free software, many large domestic sites like Sohu, NetEase are using Nagios for server monitoring.Nagios is a bit of a frame in itself, for the Nagios Extended monitoring module, as well as the alarm module is very convenient, can easily add their own written service monitoring, as well as mobile phone
Nagios is currently a very popular system, server monitoring free software, many large domestic sites like Sohu, NetEase are using Nagios for server monitoring.Nagios is a bit of a frame in itself, for the Nagios Extended monitoring module, as well as the alarm module is very convenient, can easily add their own written service monitoring, as well as mobile phone
Nagios has a very powerful alarm function. You can also draw graphics when combined with PNP implementations. can be defined according to your needs: Nagios's foot type, can be said to monitor services, Nagios has done everything: The following gives Nagios installation steps. The latter will slowly update how to write footsteps define the Enterprise
1. Nagios has the following features:
1. network service monitoring (including SMTP, POP3, HTTP, NNTP, and PING)
2. server resource monitoring (CPU load, disk usage, etc)
3. You can easily customize the service monitoring plug-in you need.
4. Parallel service monitoring
5. Support for parent host rules and distributed
6. When a host or service fails, the administrator can be reminded by email or SMS.
7. Support event definitions during failures, which
Nagios Installation-server side (192.168.0.11)Then install the Nagios-related packagesYum install-y httpd nagios nagios-plugins nagios-plugins-all Nrpe Nagios-plugins-nrpeSet user and password to log in to
Introduction to Environment >>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>Service side (monitor side): 192.168.100.2--nagios Service +check_nrpeClient (Monitored): 192.168.100.3--nrpe daemon + detection plug-inNagios's process of managing services remotely through Nrpe1. The Nagios server executes the Check_nrpe plugin installed inside it and tells Check_nrpe to detect which services.2. Connect the Nrpe on the remote m
Nagios NRPE monitoringThe procedure for a remote host is as follows.
Install nrpe on the invigilator
Wget http://nchc.dl.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz
Tar zxvf nrpe-2.12.tar.gz
Cd nrpe-2.12
./Configure -- prefix =/usr/local/nagios
Make all
Make install-plugin
# Install the supervisor in this step
Add a user to the monitored Machine
Groupadd
One: Prepare before installationNagios server:192.168.1.10Nagios client:192.168.1.11This post installs Nagios only using the Nagios mail alarm feature, if you need to paint another installation of cacti, or other pluginsSecond: Installation ServicesTo operate on the Nagios server:Installing apache+phpYum install httpd httpd-devel php php-mysql php-common php-gd p
NagiosThe process of monitoring a Linux server is as follows:
Client Configuration:
User Creation:
Useradd nagios can modify the shell of this account in/etc/password to/sbin/nologin)
Passwd nagios
Install plug-ins:
tarzxvfnagios-plugins-1.4.11.tar.gz
cdnagios-plugins-1.4.11
./configure--prefix=/usr/local/nagios--enable-redhat-pthread-workaround
Document directory
Contact Configuration
Contact Group Configuration
Add Host Configuration
Add service configuration
Register the plug-in using Nagios
Plug-in service configuration
Compile a plug-in using Python
Introduction
Nagios is a monitoring system that monitors the running status and network information of the system. It can monitor specified local or remote hosts and services, and provid
First, the server-side installation:1 , build on the service side Lamp EnvironmentYum install-y httpd php2 , server-side installation Nagios Main programUseradd-s/sbin/nologing./configure--prefix=/usr/local/nagios--with-command-group=nagios./configure when Perl command not found is found to install Perl this package, or make all will be error yum install-y perlMa
1, verify the correctness of the Nagios configuration file
Nagios to verify the configuration file in the very place, simply through a command to complete:/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/ Nagios.cfgnagios provides this validation feature, which usually p
Cacti and nagios are the necessary monitoring software for SMEs, first of all to review the advantages and disadvantages of cacti monitoring: mainly monitoring graphics traffic, through the web interface to monitor traffic, (mainly monitoring CPU memory hard disk, traffic) based on SNMP (fetch data) and RRDtool ( RRDtool is mainly the capture of data to draw images) Nagios monitoring system services, but al
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.