自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

nagios安裝三劍客

運(yùn)維 系統(tǒng)運(yùn)維
Nagios是一個(gè)可運(yùn)行在Linux/Unix平臺(tái)之上的監(jiān)視系統(tǒng),Nagios可以用來監(jiān)視系統(tǒng)運(yùn)行狀態(tài)和網(wǎng)絡(luò)信息。Nagios可以監(jiān)視所指定的本地或遠(yuǎn)程主機(jī)以及服務(wù),同時(shí)提供異常通知功能。本文來介紹下nagios安裝三劍客

nagios安裝三劍客:

  建立nagios賬號(hào)

 

  1.   /usr/sbin/useradd nagios && passwd nagios  
  2.  

 

  創(chuàng)建一個(gè)用戶組名為nagcmd用于從Web接口執(zhí)行外部命令。將nagios用戶和apache用戶都加到這個(gè)組中。

  1.   /usr/sbin/groupadd nagcmd  
  2.  
  3.   /usr/sbin/usermod -G nagcmd nagios  
  4.  
  5.   /usr/sbin/usermod -G nagcmd apache  
  6.  

  安裝nagios及插件

 

  1.   tar zxvf nagios-3.2.1  
  2.  
  3.   cd nagios-3.2.1  
  4.  
  5.   ./configure --with-command-group=nagcmd --prefix=/usr/local/nagios  
  6.  
  7.   make all  
  8.  
  9.   make install  
  10.  
  11.   make install-init  
  12.  
  13.   make install-config  
  14.  
  15.   make install-commandmode  
  16.  

 

  正確安裝完畢,/usr/local/nagios目錄下將會(huì)有這幾個(gè)文件夾

  bin etc include libexec sbin share var

#p#

  安裝nagios‐plugins

 

  1.   tar zxvf nagios-plugins-1.4.14  
  2.  
  3.   cd nagios-plugins-1.4.14  
  4.  
  5.   ./configure --with-nagios-user=nagios --with-nagios-group=nagios --perfix=/usr/local/nagios  
  6.  
  7.   make && make install  
  8.  

 

  在另一臺(tái)機(jī)上編譯安裝apache,需要用到htpasswd這工具來生成登陸的用戶名和密碼

 

  1.   /usr/local/httpd/bin/htpasswd -c /usr/local/nagios/etc/viyin.net viyin  
  2.  
  3.   [root@game bin]# ./htpasswd -c /root/viyin.net viyin  
  4.  
  5.   New password:  
  6.  
  7.   Re-type new password:  
  8.  
  9.   Adding password for user viyin  
  10.  

 

通過文章的三劍客,我們都知道了nagios安裝其實(shí)很簡單,希望大家能真真掌握它!

【編輯推薦】

責(zé)任編輯:趙鵬 來源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2019-06-27 10:06:54

Linux 性能工具

2010-02-04 16:22:21

2009-02-26 18:22:49

桌面虛擬化Linux

2017-07-25 08:53:14

CorrectLinkCCA-SD算法

2023-10-04 00:20:31

grepLinux

2024-06-04 00:20:00

Python函數(shù)

2019-08-20 14:29:45

grepsedawk

2021-05-13 10:25:29

Linuxgrep命令

2018-05-04 15:18:01

DockerDocker Comp容器

2021-03-15 07:39:48

LinuxAwk 語言

2014-11-26 10:18:32

Cloud Setupwindows在線打包工具

2011-07-04 09:07:54

2009-03-19 20:52:58

LinuxPHPCMS

2011-08-06 23:58:34

愛普生投影機(jī)

2023-11-25 17:08:47

ChatbotLLAMALangChain

2011-04-11 11:01:03

AndroidHTC蘋果

2025-04-22 09:39:46

Python爬蟲網(wǎng)頁數(shù)據(jù)抓取

2023-09-18 08:27:20

RabbitMQRocketMQKafka

2009-02-12 09:12:27

JPAEJBJSF

2021-02-21 08:19:55

面試StringStringBuffe
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)