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
1. Introduction to nagios plug-ins 1. nagios is an open-source network monitoring software that can be used to monitor host, service, and other objects. nagios can change the image status according to the monitoring changes, for the notification administrator, of course, you can select the alarm method (E-mai, SMS (that is, SMS Service) 2nagios usually has a main
I usedNagiosFor more than a year, he is competent in daily monitoring work. It is necessary to install a Nagios system. Let's take a look at the specific process of Nagios installation!
Figure-Nagios
Modify yum to upgrade the server[Root @ localhost ~] # Cd/etc/yum. repos. d [root @ localhost yum. repos. d] # cp CentOS-Base.repo CentOS-Base.repo.bak [root @ loc
Nagios is a monitoring software that helps users quickly understand problems on the host and the Internet and can be configured to be used on any network. Installing the Nagios server on any Linux operating system is a very fast process, but it takes some effort to install it securely. This article will focus on how to improve Nagios's security, rather than explaining how to install
Nagios Installation configuration:Nagios official website http://www.nagios.orgEnvironment Construction:centos6.6 192.168.11.30 do the service sidecentos6.6 192.168.11.100 do the client1. Nagios Installation-server (192.168.11.30)CENTOS6 The default Yum source does not have Nagios-related RPM packages, but we can install a epel extension source:Yum Install-y epel
Nagios file directory:The bin directory is used to store Nagios's execution programs, including Nagios, Nrpe, and so on.The ETC directory is used to store Nagios configuration files.The Libexec directory is used to store Nagios's monitoring plug-ins.The Sbin directory is used to hold the Nagios CGI file, which is the d
Nagios is one of the most influential network information monitoring systems in the enterprise, and it can dynamically monitor the specified network status, and issue warning tones or email alerts to operators when the status is abnormal. The type of monitoring and alarm timers are fully customizable.Another powerful feature of Nagios is its ability to monitor both hosts and services. For example, it can si
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
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
Background: Company needs, deployment Nagios monitoring System, multiple server deployment, there will be repeated work, simply written script, automated installation, hope to help everyone.Script content:#!/bin/bash#Filename: nagios.shSetenforce 0 #需要关闭selinux,Yum install-y http php php-mysql mysql mysql-devel mysql-server #安装http, PHP and MySQL, if installed, no harmCd/tmp #我的软件包安装在了tmp目录下, this can be casualwget https://assets.nagios.com/downloads/
As a monitoring system,NagiosIt is outstanding in all aspects, especially inLinuxWhen running, you can monitor and collect information for operations.
Nagios runs on a Linux or Unix operating system. Before installation, make sure that the operating system supports the TCP/IP protocol and has a C-language compiler (such as gcc ). If you do not have a web server such as apache, install it in advance. Download the main
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
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.