成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Nagios監控服務器的配置

運維 系統運維
Nagios監控服務器的配置很簡單,跟我學習下!

 

Nagios 

圖-Nagios

  Nagios監控服務器的配置如下:

  1.安裝nrpe

  [root@UnixHot src]# tar zxvf nrpe-2.12.tar.gz

  [root@UnixHot nrpe-2.12]# ./configure && make all

  [root@UnixHot nrpe-2.12]# make install-plugin

  [root@UnixHot nrpe-2.12]# make install-daemon

  [root@UnixHot nrpe-2.12]# make install-daemon-config

  [root@UnixHot nrpe-2.12]# make install-xinetd

  2.配置nrep

  [root@UnixHot nrpe-2.12]# vi /etc/xinetd.d/nrpe

  service nrpe

  {

  flags = REUSE

  socket_type = stream

  port = 5666

  wait = no

  user = nagios

  group = nagios

  server = /usr/local/nagios/bin/nrpe

  server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd

  log_on_failure += USERID

  disable = no

  only_from = 127.0.0.1 192.168.0.206 192.168.0.155 192.168.0.157

  在only_from 添加要監控的主機的IP地址,中間以空格隔開。

#p#

  3.添加端口

  [root@UnixHot nrpe-2.12]# vi /etc/services 在***添加

  nrpe 5666/tcp #nrpe

  4.重新啟動Xinetd服務

  [root@UnixHot nrpe-2.12]# /etc/init.d/xinetd restart

  [root@UnixHot nrpe-2.12]# netstat -na | grep 5666

  tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN

  以上的1-4的步驟要在客戶端上做。

  5.修改配置文件commands.cfg加入對nrpe的支持

  [root@UnixHot ~]# vi /usr/local/nagios/etc/objects/commands.cfg

  #nrpe set

  define command{

  command_name check_nrpe

  command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$

  }

#p#

  6.有哪些nrpe檢測命令可以用,它們在哪里呢?

  [root@UnixHot ~]# vi /usr/local/nagios/etc/nrpe.cfg

  (默認有下面四個命令)

  command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10

  command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20

  command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1

  command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z

  command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200

  7.怎么使用這些命令監控客戶端呢?

  其實很簡單,就是在services.cfg里面添加服務即可,格式就和上篇文檔講的一樣,只是命令不同罷了。

  [root@UnixHot ~]# vi /usr/local/nagios/etc/objects/services.cfg

  加入:

  define service {

  host_name Nagios-Server

  service_description check-users

  check_period 24x7

  max_check_attempts 4

  normal_check_interval 3

  retry_check_interval 2

  contact_groups sagroup

  notification_interval 10

  notification_period 24x7

  notification_options w,u,c,r

  check_command check_nrpe!check_users

  }

  define service {

  host_name Nagios-Server

  service_description check-load

  check_period 24x7

  max_check_attempts 4

  normal_check_interval 3

  retry_check_interval 2

  contact_groups sagroup

  notification_interval 10

  notification_period 24x7

  notification_options w,u,c,r

  check_command check_nrpe!check_load

  }

  define service {

  host_name Nagios-Server

  service_description check-total-procs

  check_period 24x7

  max_check_attempts 4

  normal_check_interval 3

  retry_check_interval 2

  contact_groups sagroup

  notification_interval 10

  notification_period 24x7

  notification_options w,u,c,r

  check_command check_total_procs

  }

  在這里僅列出了一個客戶端的配置,其它的客戶端,只需修改host_name 即可。

通過這篇文章的介紹,我們清楚的知道Nagios監控服務器的配置情況!

【編輯推薦】

責任編輯:趙鵬 來源: 網絡轉載
相關推薦

2011-03-22 09:03:47

Nagios配置

2011-03-23 15:13:08

Nagios監控Oracle

2011-03-21 14:53:27

Nagios監控Linux

2011-04-06 14:24:21

Nagios監控Linux

2011-03-23 10:17:26

2011-03-22 15:17:14

Nagios安裝

2011-03-25 15:24:40

Nagios監控

2011-03-22 09:07:13

Nagios監控Linux

2011-03-23 13:29:46

Debian安裝Nagios

2011-03-23 15:13:08

Nagios監控oracle

2011-08-22 12:25:08

nagios

2011-03-24 10:59:10

Nagios監控mysql

2011-08-22 11:33:48

nagios

2011-04-06 15:05:56

nagios監控Linux

2011-03-28 16:37:38

2011-04-06 14:24:28

nagios監控Linux

2011-03-28 16:59:16

nagios監控服務器

2011-03-22 15:17:14

Nagios安裝

2011-08-22 11:00:17

nagios

2011-03-22 15:17:13

Nagios監控
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: av天天干| 国产成人一区二区三区电影 | 麻豆av电影网 | 欧美日韩一 | 日韩欧美日韩在线 | 亚洲久在线 | 久久久免费观看视频 | 国产精品高潮呻吟久久aⅴ码 | 亚洲日本欧美日韩高观看 | av黄色在线 | 97人人超碰| 国产精品久久久精品 | 中文字幕一区二区三区四区 | 欧美综合视频在线 | 黄色av观看 | 亚洲狠狠| 在线成人免费视频 | 国产一级片一区二区 | 精品一区二区av | 国产精品国产馆在线真实露脸 | 成人午夜视频在线观看 | 男女久久久 | 福利网址| 99热在线免费 | 日韩中文一区二区三区 | 国产黄色免费网站 | 在线视频一区二区三区 | 欧美在线观看网站 | 毛片区| 国产在线观看不卡一区二区三区 | 欧洲尺码日本国产精品 | 免费久久精品视频 | 精品国产欧美一区二区三区成人 | 污污的网站在线观看 | 精品视频一区二区 | 亚洲精品二区 | a a毛片| 噜噜噜噜狠狠狠7777视频 | 精品一区av | 成人a网| 亚洲精品99|