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

Solaris下的nagios監(jiān)控系統(tǒng)

系統(tǒng) 其他OS
nagios是非?;鸬腖inux/Unix的監(jiān)控系統(tǒng),讓我們來(lái)看看Solaris下的nagios監(jiān)控系統(tǒng)!

Solaris下的nagios監(jiān)控系統(tǒng)介紹如下:

nagios 

圖-nagios

  文將介紹Nagios在Solaris10操做系統(tǒng)下的安裝過(guò)程,其中包括,源碼的編譯、安裝;Apache的安裝、Nagios CGI的配置;Nagios監(jiān)控配置等。

  環(huán)境、資源準(zhǔn)備

  gcc-3.4.6-sol10-x86-local.gz

  libiconv-1.11-sol10-x86-local.gz

  libintl-3.4.0-sol10-x86-local.gz

  make-3.81-sol10-x86-local.gz

  openssl-0.9.8h-sol10-x86-local.gz

  gd-2.0.35-sol10-x86-local.gz

  httpd-2.2.4.tar.gz

  nagios-3.0.3.tar.gz

  nagios-plugins-1.4.11.tar.gz

  nrpe-2.12.tar.gz

#p#

  1.安裝Nagios

 

  1.   # groupadd nagios  
  2.  
  3.   # useradd -g nagios -d /usr/local/nagios nagios  
  4.  
  5.   # gunzip ./nagios-3.0.6.tar.gz  
  6.  
  7.   # tar xvf ./nagios-3.0.6.tar.gz  
  8.  
  9.   # cd ./nagios-3.0.6.tar.gz  
  10.  
  11.   # ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios \  
  12.  

 

  --with-nagios-group=nagios --with-gd-lib=/usr/sfw/lib \

  --with-gd-inc=/usr/sfw/include

 

  1.   # make all  
  2.  
  3.   # make fullinstall  
  4.  
  5.   # make install-config  
  6.  

 

  2.安裝openssl

 

  1.   # gunzip ./openssl-0.9.8j-sol10-sparc-local.gz  
  2.  
  3.   # pkgadd -d ./openssl-0.9.8j-sol10-sparc-local  
  4.  
  5.   # export LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH  
  6.  

 

  3.安裝Nagios Plugins

 

  1.   # gunzip ./nagios-plugins-1.4.13.tar.gz  
  2.  
  3.   # tar xvf ./nagios-plugins-1.4.13.tar  
  4.  
  5.   # cd nagios-plugins-1.4.13  
  6.  
  7.   # ./configure --without-mysql --prefix=/usr/local/nagios --with-openssl=/usr/local/ssl  
  8.  
  9.   # make  
  10.  
  11.   # make install  
  12.  
  13.   # make clean  
  14.  
  15.   # chown -R nagios:nagios /usr/local/nagios/libexec  
  16.  

 

  4.配置Apache

  在/etc/apache2/httpd.conf文件追加如下內(nèi)容

  #setting for nagios

  ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin

  AuthType Basic

  Options ExecCGI

  AllowOverride None

  Order allow,deny

  Allow from all

  AuthName "Nagios Access"

  AuthUserFile /usr/local/nagios/etc/htpasswd

  Require valid-user

  Alias /nagios /usr/local/nagios/share

  AuthType Basic

  Options None

  AllowOverride None

  Order allow,deny

  Allow from all

  AuthName "nagios Access"

  AuthUserFile /usr/local/nagios/etc/htpasswd

  Require valid-user

#p#

  5.生成登錄用戶和驗(yàn)證口令

  # /usr/apache2/bin/htpasswd -c /usr/local/nagios/etc/htpasswd

  此處的user_name為登錄Nagios Web應(yīng)用需要輸入的用戶名www.britepic.org

  按照提示輸入要設(shè)置的口令即可

  配置/usr/local/nagios/etc/cgi.cfg,添加用戶edison

  ................. .................

  # SYSTEM/PROCESS INFORMATION ACCESS

  # This option is a comma-delimited list of all usernames that

  # have access to viewing the Nagios process information as

  # provided by the Extended Information CGI (extinfo.cgi). By

  # default, *no one* has access to this unless you choose to

  # not use authorization. You may use an asterisk (*) to

  # authorize any user who has authenticated to the web server.

  authorized_for_system_information=nagiosadmin,edison

  # CONFIGURATION INFORMATION ACCESS

  # This option is a comma-delimited list of all usernames that

  # can view ALL configuration information (hosts, commands, etc).

  # By default, users can only view configuration information

  # for the hosts and services they are contacts for. You may use

  # an asterisk (*) to authorize any user who has authenticated

  # to the web server.

  authorized_for_configuration_information=nagiosadmin,edison

  # SYSTEM/PROCESS COMMAND ACCESS

  # This option is a comma-delimited list of all usernames that

  # can issue shutdown and restart commands to Nagios via the

  # command CGI (cmd.cgi). Users in this list can also change

  # the program mode to active or standby. By default, *no one*

  # has access to this unless you choose to not use authorization.

  # You may use an asterisk (*) to authorize any user who has

  # authenticated to the web server.

  authorized_for_system_commands=nagiosadmin,edison

  # GLOBAL HOST/SERVICE VIEW ACCESS

  # These two options are comma-delimited lists of all usernames that

  # can view information for all hosts and services that are being

  # monitored. By default, users can only view information

  # for hosts or services that they are contacts for (unless you

  # you choose to not use authorization). You may use an asterisk (*)

  # to authorize any user who has authenticated to the web server.

  authorized_for_all_services=nagiosadmin,edison

  authorized_for_all_hosts=nagiosadmin,edison

  # GLOBAL HOST/SERVICE COMMAND ACCESS

  # These two options are comma-delimited lists of all usernames that

  # can issue host or service related commands via the command

  # CGI (cmd.cgi) for all hosts and services that are being monitored.

  # By default, users can only issue commands for hosts or services

  # that they are contacts for (unless you you choose to not use

  # authorization). You may use an asterisk (*) to authorize any

  # user who has authenticated to the web server.

  authorized_for_all_service_commands=nagiosadmin,edison

  authorized_for_all_host_commands=nagiosadmin,edison

#p#

  6.啟動(dòng)Nagios

  Nagios的啟動(dòng)程序是/usr/local/nagios/bin/nagios

  # ./nagios --help

  Nagios 3.0.3

  Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)

  Last Modified: 06-25-2008

  License: GPL

  Usage: ./nagios [options]

  Options:

  -v, --verify-config Verify all configuration data

  -s, --test-scheduling Shows projected/recommended check scheduling and other

  diagnostic info based on the current configuration files.

  -x, --dont-verify-paths Don't check for circular object paths - USE WITH CAUTION!

  -p, --precache-objects Precache object configuration - use with -v or -s options

  -u, --use-precached-objects Use precached object config file

  -d, --daemon Starts Nagios in daemon mode, instead of as a foreground process

  Visit the Nagios website at http://www.nagios.org/ for bug fixes, new

  releases, online documentation, FAQs, information on subscribing to

  the mailing lists, and commercial support options for Nagios.

  首先通過(guò)-v選項(xiàng)驗(yàn)證配置文件是否正確

  # cd /usr/lcoal/nagios/bin

  # ./nagios -v ../etc/nagios.cfg

  Nagios 3.0.3

  Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)

  Last Modified: 06-25-2008

  License: GPL

  Reading configuration data...

  Running pre-flight check on configuration data...

  Checking services...

  .........................................................

  .............................................

  Total Warnings: 0

  Total Errors: 0

  Things look okay - No serious problems were detected during the pre-flight check

  如果沒(méi)有錯(cuò)誤,就可以啟動(dòng)它了。

  # cd /usr/local/nagios/bin

  # ./nagios -d /usr/local/nagios/etc/nagios.cfg

  nagios web界面提示

  It appears as though you do not have permission to view information for any of the services you requested...

  打開cgi.cfg配置文件,里面有個(gè)參數(shù):

  use_authentication=1

  為了保障系統(tǒng)的安全性,nagios設(shè)置了這個(gè)參數(shù),默認(rèn)為1,改為0即可

  查看/usr/local/nagios/var/nagios.log日志文件,觀察啟動(dòng)是否正常。

  在IE瀏覽器中查看監(jiān)控情況。

  點(diǎn)擊左邊導(dǎo)航欄的 Host Detail

通過(guò)文章的介紹,我們清楚的知道了Solaris下的nagios監(jiān)控系統(tǒng)的全過(guò)程,希望大家喜歡!

【編輯推薦】

 

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

2011-03-21 15:42:14

LinuxNagios

2011-03-23 09:11:40

Nagios監(jiān)控

2011-03-24 08:56:23

nagios監(jiān)控

2011-03-21 11:14:22

LinuxNagios

2011-03-23 09:05:40

Nagios監(jiān)控

2011-03-23 14:43:10

Nagiosnagios.cfg

2011-03-23 10:17:25

Nagios監(jiān)控

2011-03-23 12:44:06

Nagios監(jiān)控

2014-03-19 17:22:33

2011-03-24 10:08:39

Nagios監(jiān)控oracle

2011-03-04 10:47:06

Nagios監(jiān)控Sphinx

2011-03-24 10:59:09

Nagios監(jiān)控Mysql

2013-12-19 14:53:01

2011-03-28 17:18:57

nagios監(jiān)控iostat

2011-04-01 15:42:13

CactiNagios

2011-03-21 14:53:27

Nagios監(jiān)控Linux

2011-03-21 14:43:42

2011-03-22 09:07:12

nagios監(jiān)控oracle

2012-02-22 22:21:15

nagios開源

2011-03-21 13:10:15

Nagios監(jiān)控
點(diǎn)贊
收藏

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

主站蜘蛛池模板: 91豆花视频 | 亚洲成人av | 国产欧美在线播放 | 国产专区视频 | 东方伊人免费在线观看 | 国产日韩欧美一区 | 精品九九| 91av入口| 视频1区| 成人av免费 | 久久久亚洲一区 | 精品日韩在线 | 可以免费观看的av片 | 久久久久久亚洲精品不卡 | 天天综合91 | 国产黄色在线观看 | 日韩中文一区二区三区 | 亚洲精品一区二区网址 | 国产成人精品a视频 | 一本大道久久a久久精二百 欧洲一区二区三区 | 久久久久久久久毛片 | 久久久这里只有17精品 | 青青草社区 | 在线观看国产www | 成人免费淫片aa视频免费 | 国产精品久久久久久久久图文区 | 亚洲精品国产偷自在线观看 | 国产精品美女久久久久久久网站 | 天天天操天天天干 | 综合久久av| 午夜男人免费视频 | 国产一区二区在线免费观看 | 一区二区三区视频在线观看 | 精品视频一二区 | 成年网站在线观看 | 国产精品三级久久久久久电影 | 国久久 | 国产欧美视频一区二区 | 成人福利在线视频 | 欧美日韩福利视频 | 成人av网站在线观看 |