Home Database Mysql Tutorial Ubuntu12.0.4安装nagios3.2.3中文

Ubuntu12.0.4安装nagios3.2.3中文

Jun 07, 2016 pm 03:15 PM
Chinese Install

Nagios是一款开源的系统和网络监控应用,它可以监视你指定的主机与服务,当出现问题时提醒您以帮助你改善系统。 Nagios最初在Linux下运行,但它大多数其他Unix下运行。 Nagios 功能包括: 监控网络服务( SMTP , POP3 , HTTP , NNTP , PING等) 监控主机

Nagios是一款开源的系统和网络监控应用,它可以监视你指定的主机与服务,当出现问题时提醒您以帮助你改善系统。 Nagios最初在Linux下运行,但它大多数其他Unix下运行。

Nagios 功能包括:

  • 监控网络服务( SMTP , POP3 , HTTP , NNTP , PING等)
  • 监控主机资源(处理器负载,磁盘使用情况等)
  • 简单的插件设计,让用户能够轻松开发自己的服务检查
  • 并行化服务检查
  • 定义网络主机层次结构使用“父”的主机,使检测和区分主机
  • 当服务或主机发生问题是通知你(通过电子邮件,寻呼机或用户定义的方法)
  • 定义事件处理程序能力,服务或主机运行过程中主动解决问题
  • 日志文件
  • 支持执行冗余监控主机
  • 可选Web界面查看当前网络状态,通知和问题历史,日志文件等。

在安装之前你最好已经安装了lamp服务器软件,另外你还需要安装一些依赖包,使用下面的命令:

sudo apt-get install wget build-essential php5-gd wget libgd2-xpm libgd2-xpm-dev libapache2-mod-php5 apache2-utils daemon<br>

<span><span>下载Nagios及插件:</span></span>

<span><span>wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz<br> wget http://nchc.dl.sourceforge.net/project/nagios-cn/sourcecode/zh_CN%203.2.3/nagios-cn-3.2.3.tar.bz2<br> wget http://nchc.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.2.3/nagios-3.2.3.tar.gz<br> </span></span>

添加 Nagios 用户和群组

 adduser nagios<br> /usr/sbin/groupadd nagcmd<br> /usr/sbin/usermod -G nagcmd nagios<br> /usr/sbin/usermod -G nagcmd www-data<br>

现在安装 nagios

尽量使用 root 身份登录,运行以下命令

解压缩下载的文件(Nagios的内核和插件)

1、Nagios内核安装:

tar zxvf nagios-3.2.3.tar.gz <br> tar zxvf nagios-plugins-2.0.3.tar.gz <br> cd nagios-3.2.3/<br> apt-get install sendmail<br> ./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/sbin/sendmail<br> make all<br> make install<br> make install-init<br> make install-commandmode<br> make install-config<br> make install-webconf<br> cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/<br> chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers<br> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg<br> /etc/init.d/nagios start

2、插件安装<br> cd ..<br> cd nagios-plugins-2.0.3/<br> ./configure --with-nagios-user=nagios --with-nagios-group=nagios<br> make<br> make install<br> ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios<br> apt-get install libxml2<br> apt-get install libxml2-dev<br> sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server<br> sudo touch /var/www/test.php<br> vim /var/www/test.php<br> sudo apt-get install php5-gd php5-curl php5-xdebug<br> sudo /etc/init.d/nagios restart

3、安装中文插件<br> cd ..<br> tar xvf nagios-cn-3.2.3.tar.bz2 <br> cd nagios-cn-3.2.3/<br> ./configure --with-nagios-user=nagios --with-nagios-group=nagios<br> make all<br> make<br> make install<br> make install-init<br> make install-commandmode<br> make install-config<br> htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin<br>

sudo /etc/init.d/nagios restart <br>

访问nagios地址:http://localhost/nagios

<br>

<br>

<br>

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to set Chinese in Call of Duty: Warzone mobile game How to set Chinese in Call of Duty: Warzone mobile game Mar 22, 2024 am 08:41 AM

Call of Duty Warzone is a newly launched mobile game. Many players are very curious about how to set the language of this game to Chinese. In fact, it is very simple. Players only need to download the Chinese language pack, and then You can modify it after using it. The detailed content can be learned in this Chinese setting method introduction. Let us take a look together. How to set the Chinese language for the mobile game Call of Duty: Warzone 1. First enter the game and click the settings icon in the upper right corner of the interface. 2. In the menu bar that appears, find the [Download] option and click it. 3. Select [SIMPLIFIEDCHINESE] (Simplified Chinese) on this page to download the Simplified Chinese installation package. 4. Return to the settings

What should I do if Baidu Netdisk is downloaded successfully but cannot be installed? What should I do if Baidu Netdisk is downloaded successfully but cannot be installed? Mar 13, 2024 pm 10:22 PM

If you have successfully downloaded the installation file of Baidu Netdisk, but cannot install it normally, it may be that there is an error in the integrity of the software file or there is a problem with the residual files and registry entries. Let this site take care of it for users. Let’s introduce the analysis of the problem that Baidu Netdisk is successfully downloaded but cannot be installed. Analysis of the problem that Baidu Netdisk downloaded successfully but could not be installed 1. Check the integrity of the installation file: Make sure that the downloaded installation file is complete and not damaged. You can download it again, or try to download the installation file from another trusted source. 2. Turn off anti-virus software and firewall: Some anti-virus software or firewall programs may prevent the installation program from running properly. Try disabling or exiting the anti-virus software and firewall, then re-run the installation

How to set Excel table to display Chinese? Excel switching Chinese operation tutorial How to set Excel table to display Chinese? Excel switching Chinese operation tutorial Mar 14, 2024 pm 03:28 PM

Excel spreadsheet is one of the office software that many people are using now. Some users, because their computer is Win11 system, so the English interface is displayed. They want to switch to the Chinese interface, but they don’t know how to operate it. To solve this problem, this issue The editor is here to answer the questions for all users. Let’s take a look at the content shared in today’s software tutorial. Tutorial for switching Excel to Chinese: 1. Enter the software and click the "File" option on the left side of the toolbar at the top of the page. 2. Select "options" from the options given below. 3. After entering the new interface, click the “language” option on the left

How to install Android apps on Linux? How to install Android apps on Linux? Mar 19, 2024 am 11:15 AM

Installing Android applications on Linux has always been a concern for many users. Especially for Linux users who like to use Android applications, it is very important to master how to install Android applications on Linux systems. Although running Android applications directly on Linux is not as simple as on the Android platform, by using emulators or third-party tools, we can still happily enjoy Android applications on Linux. The following will introduce how to install Android applications on Linux systems.

Will wwe2k24 have Chinese? Will wwe2k24 have Chinese? Mar 13, 2024 pm 04:40 PM

"WWE2K24" is a racing sports game created by Visual Concepts and was officially released on March 9, 2024. This game has been highly praised, and many players are eagerly interested in whether it will have a Chinese version. Unfortunately, so far, "WWE2K24" has not yet launched a Chinese language version. Will wwe2k24 be in Chinese? Answer: Chinese is not currently supported. The standard version of WWE2K24 in the Steam Chinese region is priced at 199 yuan, the deluxe version is 329 yuan, and the commemorative edition is 395 yuan. The game has relatively high configuration requirements, and there are certain standards in terms of processor, graphics card, or running memory. Official recommended configuration and minimum configuration introduction:

Setting up Chinese with VSCode: The Complete Guide Setting up Chinese with VSCode: The Complete Guide Mar 25, 2024 am 11:18 AM

VSCode Setup in Chinese: A Complete Guide In software development, Visual Studio Code (VSCode for short) is a commonly used integrated development environment. For developers who use Chinese, setting VSCode to the Chinese interface can improve work efficiency. This article will provide you with a complete guide, detailing how to set VSCode to a Chinese interface and providing specific code examples. Step 1: Download and install the language pack. After opening VSCode, click on the left

How to install Podman on Ubuntu 24.04 How to install Podman on Ubuntu 24.04 Mar 22, 2024 am 11:26 AM

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple

How to Install and Run the Ubuntu Notes App on Ubuntu 24.04 How to Install and Run the Ubuntu Notes App on Ubuntu 24.04 Mar 22, 2024 pm 04:40 PM

While studying in high school, some students take very clear and accurate notes, taking more notes than others in the same class. For some, note-taking is a hobby, while for others, it is a necessity when they easily forget small information about anything important. Microsoft's NTFS application is particularly useful for students who wish to save important notes beyond regular lectures. In this article, we will describe the installation of Ubuntu applications on Ubuntu24. Updating the Ubuntu System Before installing the Ubuntu installer, on Ubuntu24 we need to ensure that the newly configured system has been updated. We can use the most famous &quot;a&quot; in Ubuntu system

See all articles