How to monitor server memory usage with Nagios Remote Plugin Executor (NRPE)Last updated in September 8, authored by sarmed Rahman 5 Comments In a previous tutorial, we had seen how we can set up Nagios Remote Plugin Executor (NRPE) in an existing Nagios setup. However, the scripts and plugins needed to monitor memory usage does not come with the stock
NagiosYou can use snmp, nrpe, and nsclient to obtain information. More importantly, you can use the latter and use its powerful plug-in module. Cacti Uses snmp and does not need to install an agent. It is generally used to monitor network traffic. Nagios is generally used to monitor processes and services.
Nagios installation environment:
Host
Operating System
IP
Remarks
Implementation of nagios grouping and plotting code [1]
I. background
In view of the Service grouping and Image Presentation functions of zabbix and cacti, the company's leaders aim to maximize business stability and propose the "real-time display of monitoring systems by service grouping" function to the O M department, the O M Department belongs to the technical support department of the company and can only be Yes to meet reasonable requirements.
This is just a function of the monitoring side of the overall script installserver ()
The specific script is as follows:
#!/bin/bash #this is Nagios server or client install Shell #at 2012/10/29 path= ' pwd ' Httppath=/usr/lo Cal/apache2 mysqlpath=/usr/local/mysql Nagiospath=/usr/local/nagios installserver () {Yum install-y
xinetd useradd-m Nagios groupad
Nagios + check_logifiles for log monitoring
During Log check, we usually use a lot of monitoring methods. To check logs, we need to use the nagios plug-in, such as the check_logfile provided by nagios, which has limited functions; we use check_logfiles produced by ConSol Labs to process log truncation, support macro definition, support for regular expressions, an
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/
First download the latest installation version from sourceforge.
Install
First download the latest installation version from sourceforge.
Decompress and compile$ tar -zxvf smartmontools-6.4.tar.gz$ cd smartmontools-6.4$ ./configure
Ifchecking for g++... noProblem
The reason is that the C ++ compiler is missing and used on CentOS.yum install gc-c++Install the compiler. For troubleshooting, refer to this
Required installation package http://down.51cto.com/data/1877296Integrated Cacti+nagiosintegrating cacti and Nagios is a plug- in nagiosfor cacti that leverages cacti, and it works by passing Nagios data ndo2db Import into the MySQL database (cacti 's library), and then cacti Read the database information will be NagiosResults are shown.1, install php-json extension, because NPC uses ExtJS, such as the exte
How to configure Nagios Remote Plugin Executor (NRPE) in Linux)
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 utilization
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
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
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 confi
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
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
submit_check_result submission, the default is not submitted performance data. The normal plot diagram is as follows
Distributed under the graph, you can first look at the next performance data is empty, if the reason for the empty is caused. Because the Pnp4nagios drawing is drawn from that data.
Third, the solution
The workaround is simple, you don't need to modify the script, just open the Commands.cfg configuration file and modify the Submit_check_result de
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.