The Nagios-plugins plugin is based on the installation of Nagios core, and the installation details of Nagios core are as follows: [Nagios monitor Nagios Core installation]http://4709096. blog.51cto.com/4699096/17022191. Compiling
Nagios clients generally need to Nagios-plugins,nrpe, in order to facilitate and puppet combination, so it is best to package the source code as a package
The spec file reads as follows:
Nrpe.spec:
%define name Nrpe%define version 2.13%define Release 10%define nsusr Nagios%define NSGRP
Unzip and go to tar zvxf nagios-plugins-1.4.15.tar.gz CD nagios-plugins-1.4.15Compiling the installation./configure--with-nagios-user=nagios--with-nagios-group=nagiosMake# # encounters
NagiosUnderCheck_httpThe specific ZT parameters are important. Let's take a look ..
// Display version
#./Check_http-V
Check_http v2053 (nagios-plugins 1.4.13)
//-H
-U
-P
(You cannot directly write a URL using-u. You must use-H when using-u. The URL with-u can be full or relative)
#./check_http-Hwww.****.com
Http OK http/1.1 200 OK-106540 bytes in 1.833 seconds | time = 1.833151 s; 0.000000
A program that detects HTTP and HTTPS states and returns time, and the plugins that Nagios can use The code is full of comments, and if it is unclear and where there is a mistake, please point out #!/bin/envpython#coding:utf8########################################################################### filename:check_http_status.py#description: uses Python's Pycurl module to get the return status and return ti
Well, now even the machine can't get up.Say it from the beginning.(1) It is true that the error was reported when installing Nagios-plugins.(2) The way to find online is to check the OpenSSL.(3) Yum installation: Yum install OpenSSL openssl-devel(4) After installation, make or report the original error(5) Think of the possible OpenSSL version of the problem, that is!!! RPM-E openssl*--nodeps(6) Hahaha haha
performed by configuring Nagios remote execution Plug-ins• Remote monitoring to support SSH or SSL plus channel mode monitoring• Simple plugin design allows users to easily develop the inspection services they need, supporting many development languages (shell scripts, C + +, Perl, Ruby, Python, PHP, C #, etc.)• Contains a lot of graphical data plugins (Nagiosgraph, Nagiosgrapher, Pnp4nagios, etc.)• Parall
Prerequisite: The lamp environment is built to complete
Remark: After Centos6.4, Centos6.5, Centos7.0 test trial!Script:
#!/bin/bash# Author:byrd# version:1.0# Site:www.t4x.org# contact:root#t4x.org#This Script for nagios-v3.5.1Path=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binExport PATHLang= "en_US. UTF-8 "# Check If user is rootIf [$UID!= "0"]; Thenecho "Error:you must is root to run the script, please use the root to install
HTML files[Root @ localhost nagios-3.2.0] # make install-init# Run the make install-init command to create a nagios STARTUP script in the/etc/rc. d/init. d directory.[Root @ localhost nagios-3.2.0] # make install-commandmode# Use the make install-commandmode command to configure Directory Permissions[Root @ localhost nagios
Mud: Learning Nagios (2): Nagios configuration, mud nagios
This document consistsXiuyi Lin FengProviding friendship sponsorship, first launchedThe world
After nagios is installed, configure nagios now. For more information about nagios
execution plug-in3. Remote monitoring supports SSH or SSL plus channel monitoring the simple plugin design allows users to easily develop their own inspection services, supporting many development languages (shell scripts, C + +, Perl, Ruby, Python, PHP, C # etc.) contains many graphical data plugins (Nagiosgraph, Nagiosgrapher, Pnp4nagios, etc.)4. A parallel service check can define the hierarchy of network hosts, allowing for step-by-step inspectio
Make all
Make install
Make Install-init
Make Install-commandmode
Make Install-config
Make install-webconf
Cd.. /
2), Installation Nagios-plugins
SCP root@172.26.159.180:/root/xzy/nagios-plugins-1.4.16.tar.gz/usr/local/src/nagios-plu
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) allows you to visually view the current network status, notification and problem history, log files, and so on through the web. This component is optional.
the status after the change is the software status. Once the test is complete, the status becomes hard.
Ii. install and configure Nagios
1. About Nagios
Nagios generally consists of a main program (Nagios), a plug-in program (Nagios-plu
automatically generated 4. Set the Web authentication password for Nagios /usr/local/apache/bin/htpasswd-c/usr/local/nagios/etc/htpasswd.user NagiosadminIt is best to use nagiosadmin, and if defined as another user, there is a problem modifying the service alert option through the Web interface 5. Set up the Nagios boot Chkconfig--add NagiosChkconfig
The company needs to build a monitoring platform in the near future, the main purpose is to realize the Server service or load abnormal timely alarm function, after the choice finally decided to use Nagios implementationInstall Nagios Core
The code is as follows
Copy Code
Yum-y install gcc glibc glibc-common gd gd-devel php openssl-devel httpdUseradd-m
under 650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/93/ 31/wkiol1kjpeoztm_jaabs_kz_u8m327.png-wh_500x0-wm_3-wmp_4-s_262265194.png "title=" Nagios_web.png "alt=" Wkiol1kjpeoztm_jaabs_kz_u8m327.png-wh_50 "/>Nagios at this time does not have any monitoring function, because this Nagios host is a Linux server, so the monitoring plug-in here to choose the more common Nrpe, before installing Nrpe t
states of a monitored object. Nagios passes the thresholds for warting and crtical to the plug-in and is responsible for monitoring and analyzing the results of a specific object by the plug-in, with output information such as status information (Ok,warning,critical or Unkown) and additional detailed information.Second, the environmentSystem: CentOS 6.4x64 Minimized installationnagios-server:192.168.3.71nagios-client:192.168.3.72Iii. installation of
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.