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
Nagios is a great monitoring tool that can help you monitor your network's servers and so on, and has the ability to alert you to email issues, and can combine Nagios's hardware to monitor the temperature of your room and check and alarm in real time.The free version of Nagios can only monitor 7 units (not clear or 6 units), but for small businesses, it should be enough for a few important servers to be mon
/nagios-3.2.3.tar.gz http://www.nagios.org/download/plugins/ Download Nagios inPluginsThese two compressed packages are Zctech The file folder has been downloaded well.5 , compiling and installing Nagios :Installation path is /usr/local/Cd/usr/local
PNP is a small open-source software package. It is based on PHP and PERL and uses rrdtool to plot data collected by Nagios into charts. If you want to install Nagios pnp, the detailed Nagios pnp configuration is provided here for you to refer to the configuration of Nagios pnp after installing all the software.
1. Mod
Nagios + Nconf deploy Nagioscroe source code to install and install the basic environment. Package: ForRHEL/CentOSusers: yuminstall-ywgethttpdphpgccglibcglibc-commongdgd-develmakenet-snmpopenssl-devel. use Nagios + Nconf to deploy the Nagios croe source code to install and install the basic environment. software package: For RHEL/CentOS users: yum install-y wget
:
An error occurred while calling an external command. The permission may be insufficient.
Solution:
Temporary solution:
Chown-R nagios. nagcmd/usr/local/nagios/var/rw
Chmod-R 777/usr/local/nagios/var/rw
Why is it solved on a temporary basis? After nagios is restarted, the permission will be restored, but you still do
Check if the package is installed because Nagios needs to rely on these packages to provide services [[emailprotected]nagios]#rpm-qgccglibc Glibc-commongdgd-develxinetdopenssl-devel[[emailprotected]nagios] #yum install-ygdgd-develxinetdopenssl-devel Build Nagios Account [[email protected]~]#useraddnagios-s/sbin/nologin
The previous article describes how to install Nagios Core, an article to share with you how to incorporate a remote Linux server into your monitoring scope.Part I: Installing Nagios plugins and Nrpe on remote LinuxStep one: Download the setup program for Nagios plugins and Nrep extensions[Plain]View PlainCopy
First of all, the environment of their own building. RedHat6.4 system nagios-4.0.7. Turn off SELinux and iptables services1, get ready to work, install the software that Nagios needsApachePhpGCC compilerGD Development LibrariesYum install httpd php gcc glibc glibc-common gd gd-devel2, create the accounts and groups used by Nagios, first switch to Administrator ac
Nagios before installation, Nagios needs PHP support after 3.1.x, so it is necessary to install PHP and HTTP-related support here.
First, create Nagios users and Groups
[Root@test2 ~]# useradd-s/sbin/nologin Nagios[Root@test2 ~]# Mkdir/usr/local/nagios[Root@test2 ~]# chown
based on the understanding of Nagios and Nagiosql, the author briefly combs the relationship between the two, as shown in the following: As you can see from the diagram above, Nagios and Nagiosql share hosts, host groups, services, service groups, and so on. CFG configuration files, while in Nagiosql, you can freely control the start and stop of nagios
Apache compilation and installation and Nagios front-end display
Apache compilation and Installation
To install Apache, you need to install the following packages, such as apr-util and pcre. Of course, these packages can also be included in the system, but here we compile and install these packages.
2. Download and install apr,Put the file in the/usr/local/src directory,Tar-zxvf apr-1.5.2.tar.gzCd apr-1.5.2
1, remove the dpkg installed NrpeDpkg-l | grep NrpeDkpg-p Nagios-nrpe-server2, Ubuntu under nrpe3.2.1 installationDownload nrpe3.2.1 's Source bundle: https://jaist.dl.sourceforge.net/project/nagios/nrpe-3.x/nrpe-3.2.1.tar.gzThe Nagios plugin support is required to run Nrpe on the client, and I am downloading nagios-pl
Nagios Monitoring System under Solaris
The article will introduce the installation process of Nagios in Solaris10, including the compilation and installation of source code; Apache installation, Nagios CGI configuration; Nagios monitoring configuration and so on.
The Nagios
-Tiny-2.10-1.el5.noarch.rpmsnmp protocol access snmpwalk-OS-c public-v 1 192.168.x.x monitored side install SNMP and Dell Openamge [Windows] monitored side install SNMP services need to enable hardware information push
The SNMP Service sets public names and Nagios host addresses to improve security.
Install Dell Openmanage (default port 1311)OM-DRAC-Dell-Web-WINX64-8.4.0-2193_A00 installation package (dell official website to
With more than one NAT environment in the recent project, it is not very convenient to notify contact management if it is not ideal to deploy a complete set of Nagios (Nagios-core+apache+php+pnp4nagios) in each NAT, Then we'll start deploying Nagios distributed monitoring together.
Main Nagios Center Service deploymen
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.