is created, can it be included when Nagios is started? U command
Save the configuration file instead of the configuration file itself. /Usr/local/nagios/bin/nagios? Ud/usr/
Chapter 4 Add the monitored end
4.1 install nagios-plugins and nrpe on the monitored side
1. on the
Install the nagios plugin
tarzxvfnagios-plugins-1.4.11.tar.gz
cdnagios-plugins-1.4.11
./configure--prefix=/usr/local/nagios--enable-redhat-pthread-workaround
makeall
makeinstall
A plug-in is a special program in computer software. It cannot be executed independently but must depend on a software. It can be called in other software environments .)
After the installation is comp
the plug-in that checks the disk space, Check_load is the plug-in that checks the CPU load, each plug-in can run. check_xxx-h command to check its usage and functionality..Four monitoring statuses for NagiosNagios can identify four status return information. 0 (OK) indicates normal status (green display)
(WARNING) indicates that a warning (yellow) appears,
(CRITICAL) indicates a very serious error (red),
(UNKNOWN) indicates an unknown error (dark yellow), and
Nagios's official QuickStart URL https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/quickstart-fedora.htmlAbout Nagios's diagram with other servers (the simplest description)650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/C4/wKiom1a0FDjz4crOAABYV7wIrvQ573.png "title=" Qq20160205110546.png "alt=" Wkiom1a0fdjz4croaabyv7wirvq573.png "/>The simplest is because this is just the most common way to deploy, and there is a cluster pattern that is not being studied here.Way
Remote modification of the Nrpe script preface: As an O M personnel, frequent modification of monitoring is inevitable. It is better to change a small number of machines, if the amount is too large, it will not be easy. As the boss said, it would be silly to modify the check_disk parameter of all machines. I met today. I wrote a script to modify the check_swap of all business systems for your reference. Two files: www.2cto.com 1. hostlist: host file
(disk space utilization, memory utilization, CPU load, etc) 3) Simple plug-in interface design, allowing users to easily develop the required detection script 4) Parallel service mode 5) easy description of the network structure, and the ability to distinguish between "down" and "host inaccessible" 6) notify the administrator of the changes in the working status of the host or service by email or user-defined means 7) automatic Log rolling (8) support for host monitoring in redundancy mode (9)
1. Connect to Ubuntu host SSH [emailprotected] 2. Install the Nrpe service sudo apt-get install nagios-nrpe-server nagios-plugins 3. Configure Nrpe Vim/etc/nagios/nrpe.cfg and add the
Nagios+centreon Introduction 1. Centreon is an open source it monitoring software developed by the French in 2003, originally named Oreon, and formally renamed Centreon in 2005. 2. Centreon can simply manage and configure Nagios, which is simpler and more straightforward than nagiosql. 3. Cooperation Process: ①, Nagios writes the monitoring data to the databa
Install Apache on the server first. Download the following software from http://www.nagios.org: nagios-3.2.3.tar.gznagios-plugins-1.4.15.tar.gznrpe-2.12.tar.gz install NagiosCore # Switch to root user su-l # Add na
Install Apache on the server first.
Download the following software from http://www.nagios.org:
Nagios-3.2.3.tar.gz
Nagios-plugins-1.4.15.tar.gz
It was previously installed on DEBIAN5 nrpe The following error was installed on Debian7 this time checkingforsslheaders...sslheaders foundin/usrcheckingforSSLlibraries...configure:error: Cannotfindssllibraries1, official website https://www.nagios.org/2, download nrpe-2.12.tar.gzaxel-n10 NBSP;HTTP://SOURCEFORGE.NET/PROJECTS/NAGIOS/FILES/
= nagios
Make make install
Wget http://sourceforge.net/projects/nagios-cn/files/latest/download
Tar-xjf nagios-cn-3.2.3.tar.bz2
Cd nagios-cn-3.2.3
./Configure
Make all
Make install
Http://sourceforge.net/projects/nagios/files/nrpe
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
A company's project website was launched for a few days because the disk was full and there was a problem. Because its servers were concentrated in a certain IDC, we considered deploying a Nagios monitoring and alarm system, since other project websites may have similar requirements, the installation process should be compiled into scripts to facilitate future work. The automatic Nagios Server installation
:* LISTENtcp 0 0 :::22 :::* LISTEN
Configure apache service
/Etc/init. d/httpd start
Chkconfig httpd on
If Apache is compiled and installed, its users and user groups are required by daemon by default.
X modify httpd. conf
Install the nagios Plugin:
[Root @ mode nagios-plugins-1.4.16] # ls/usr/local/nagios/libexec/| wc-l61
Add
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.