Alibabacloud.com offers a wide variety of articles about nagios network monitoring, easily find your nagios network monitoring information here online.
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 monitoring 4 configuration monitoring web Service, port, mysql, and other status instances
1. monitoring web Services
(1) edit services. cfg to define the service
Define service {
Use generic-service
Host_name 5-nagios-server
Service_description weburl
Check_command c
Nagios is an open source free network monitoring tool that can monitor Windows, Linux and UNIX host status, switch routers and other network equipment, in the system or service status anomalies when sending mail or SMS alarm, the first time to notify the site operations personnel. Traffic
IntroductionThis are intended to provide if you have simple instructions on how to install Nagios from source (code) on Ubuntu and H Ave It monitoring your local machine inside of minutes. No Advanced installation Options is discussed here-just the basics that would work for 95% of the users who want to get star Re ".These instructions should work with the most recent vesrions of Ubuntu with minor changes o
exactly the same way as the Check_nrpe command, and you do not know how to use check_nrpe–h to see it.3.2 Defining monitored host information#vim/usr/local/nagios/etc/objects/hosts.cfgDefine Host{#引用主机linux-server Property Information, the Linux-server host is defined in the Templates.cfg file.Use Linux-serverHOST_NAME nagios-linux #主机名Alias Nagios-linux #主机别名#被
results of the check to the Check_nrpe plugin, which the plugin submits to nagios for processing.Note: NRPE daemon requires Nagios plug-ins and NRPE to be installed on remotely monitored Linux hosts, otherwise, daemon cannot do any monitoring. Because the communication between them is encrypted SSL, you need to install SSLNrpe and
monitored by default:10. nagios configuration file descriptionAfter nagios is installed, the main directory is/usr/local/nagios. All configuration files are in the/usr/local/nagios/etc directory:Cgi. cfgHtpasswd. users // used for web login verification.Nagios. cfg // Main configuration file of
Check_disk (on server)If normal, it will output a row of disk detection data, or may be error.cd/etc/nagios/conf.d/Vim 192.168.0.12.cfg (your IP address name) # Add the following: Define host{ use linux-server host_name 192.168.0.12 alias 0.12 address 192.168.0.12 } Define Service{Use Generic-serviceHOST_NAME 192.168.0.12Service_description Check_diskCheck_command Check_nrpe!check_diskMax_check_attempts 5Normal_c
program and its various plug-ins, configuration is very flexible, can monitor a lot of items, can also be customized by a number of shell scripts for monitoring services, Very suitable for all kinds of enterprises network and system platform service monitoring applications.
Sound Nagios function is very powerful, it
=nagiosNrpe_group=nagiosallowed_hosts=172.16.100.1Command_timeout=60connection_timeout=300Debug=0The allowed_hosts directive is used to define the IP address of the monitoring side allowed by this machine.The main monitoring host to monitor, the use of the command to be defined here before the main monitoring host can be configured to use such a monitored side to
The first two days to the Nagios under a monitoring item to add monitoring data, found that the monitoring data is there, but later found that the graphics data is not, and suddenly do not know where the problemHere are my steps to troubleshoot the issue:Log on to the Nagios
After sharing how to monitor Linux servers, let's take a look at how Nagios monitors Windows servers.
Part 1: configure the monitored Windows Server
First, visit http://sourceforge.net/projects/nscplus/and download the NSClinent ++ of the License Server. The file I downloaded was named: NSCP-0.4.1.73-Win32.msi
Double-click the installer, select Complete Install, and select generate the instance configuration file. The other one will be OK after
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
password:Htpasswd-c/etc/nagios/passwd nagiosadmin 4. Start the test:Chkconfig httpd onchkconfig nagios onservice httpd startservice nagios startNow you can access Nagios from the Web, open Http://192.168.19.79/nagios, enter your username and password to log in: Second
DescriptionThe work consists of two parts of the monitoring side (123) and the monitored end (iv)One, add script in Nrpe.cfgAdd Command index in NRPE.CFGCOMMAND[CHECK_USED_MEM]=/USR/LOCAL/NAGIOS/LIBEXEC/CHECK_USED_MEM.SH 80 90Description: Actual memory usage exceeds 80% warning; more than 90% critical warningsSecond, add the specific scriptReference Script check_used_mem.shWarn=$1Critical=$2 All= ' Free | S
-c100000,200000}Note: The definition service is: The max_check_attempts parameter is recommended to be modified to 6 (default is 4), because this plug-in must run at least 3 to 4 times or more to be normal, read the data once and record in the temporary file, as follows:650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7F/44/wKioL1cYaiLROoWTAAEACZkTARQ563.png "title=" 1.png " alt= "Wkiol1cyailroowtaaeaczktarq563.png"/>To check and reload the configuration file:Service
Install nagios monitoring in yum under centos6.5
I. Nagios Server Installation
1. yum install-y httpd php mysql-devel
2. Install the nagios program on the server
Wgethttp: // response
Http://down1.chinaunix.net/distfiles/nagios-plugins-1.4.14.tar.gz
/Usr/sbin/useraddnagios
T
1. First make sure that the Nagios monitoring software is installed on the server side650) this.width=650; "title=" 6.jpg "src=" Http://s3.51cto.com/wyfs02/M00/5C/2A/wKiom1UbsOzjKJeBAAR2k-QP5TY349.jpg " alt= "Wkiom1ubsozjkjebaar2k-qp5ty349.jpg"/>2. Install the Nrpe plugin on the monitor side[email protected] ~]# yum install xinetd OpenSSL openssl-devel-y[Email protected] ~]# wget http://liquidtelecom.dl.sou
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.