哈爾濱海月數(shù)據(jù)恢復(fù),技術(shù)亞洲領(lǐng)先 設(shè)為首頁加入收藏RSS訂閱
中國區(qū):哈爾濱(總部)、鄭州福建深圳、沈陽、合肥、大連包頭、淄博、上海、廣州、
    南京杭州嘉興、武漢濟南、青島、新疆太原
亞太區(qū):印度、韓國、泰國、新加坡、馬來西亞澳大利亞
Solaris
Solaris下的nagios監(jiān)控系統(tǒng)

  來源:51cto.com

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

 

  文將介紹Nagios在Solaris10操做系統(tǒng)下的安裝過程,其中包括,源碼的編譯、安裝;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

  1.安裝Nagios

  # groupadd nagios # useradd -g nagios -d /usr/local/nagios nagios # gunzip ./nagios-3.0.6.tar.gz # tar xvf ./nagios-3.0.6.tar.gz # cd ./nagios-3.0.6.tar.gz # ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios \

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

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

  # make all # make fullinstall # make install-config

  2.安裝openssl

  # gunzip ./openssl-0.9.8j-sol10-sparc-local.gz # pkgadd -d ./openssl-0.9.8j-sol10-sparc-local # export LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH

  3.安裝Nagios Plugins

  # gunzip ./nagios-plugins-1.4.13.tar.gz # tar xvf ./nagios-plugins-1.4.13.tar # cd nagios-plugins-1.4.13 # ./configure --without-mysql --prefix=/usr/local/nagios --with-openssl=/usr/local/ssl # make # make install # make clean # chown -R nagios:nagios /usr/local/nagios/libexec

  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

  5.生成登錄用戶和驗證口令

  # /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

  6.啟動Nagios

  Nagios的啟動程序是/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.

  首先通過-v選項驗證配置文件是否正確

  # 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

  如果沒有錯誤,就可以啟動它了。

  # 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配置文件,里面有個參數(shù):

  use_authentication=1

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

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

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

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

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

 

 
返回
客戶服務(wù) +more
上門服務(wù)
服務(wù)承諾
異地恢復(fù)
收費標(biāo)準(zhǔn)
付款方式
疑難解答
服務(wù)特色 +more
·免費檢測
·免費提供3天備份
·專業(yè)工程師提供服務(wù)
·免費清潔送修的介質(zhì)
·數(shù)據(jù)恢復(fù)前報價,客戶確認(rèn)后工程師開始數(shù)據(jù)恢復(fù)
·數(shù)據(jù)恢復(fù)不成功不收費
·與客戶簽訂保密協(xié)議,對客戶的數(shù)
 據(jù)嚴(yán)格保密,整個恢復(fù)過程不會對
 客戶的原盤有任何的寫操作,以確
 保原盤的數(shù)據(jù)完全

·免費參觀恢復(fù)全過程

·工程師在線免費咨詢

·專業(yè)工程師提供服務(wù)
服務(wù)器數(shù)據(jù)恢復(fù) 點擊這里給我發(fā)消

息
數(shù)據(jù)庫修復(fù)
點擊這里給我發(fā)

消息
硬盤數(shù)據(jù)恢復(fù)
點擊這里給我發(fā)消

息
51La 主站蜘蛛池模板: 另类ts人妖一区二区三区| 中文字幕av一区| 国产成人精品久久一区二区三区| 手机看片福利一区二区三区| 国产区精品一区二区不卡中文| 久久精品国产一区二区三区肥胖| 亚洲午夜电影一区二区三区 | 精品中文字幕一区在线| 一区二区免费电影| 日韩精品一区二区三区大桥未久 | 国产在线观看91精品一区| 国产免费伦精品一区二区三区| 国产裸体歌舞一区二区| 韩国理伦片一区二区三区在线播放| 免费看AV毛片一区二区三区| 91福利国产在线观看一区二区| 麻豆文化传媒精品一区二区| 好吊妞视频一区二区| 国产一区二区内射最近更新| 无码中文字幕人妻在线一区二区三区 | 国产一区二区三区电影| 秋霞午夜一区二区| 国产一区在线观看免费| 射精专区一区二区朝鲜| 免费观看日本污污ww网站一区| 国产午夜精品一区理论片| 国内精品视频一区二区八戒| 国产精品区一区二区三在线播放| 精品国产一区二区三区av片| 久久亚洲国产精品一区二区| 日本一区二区三区日本免费| 久久免费精品一区二区| 日韩一区二区精品观看| 久久精品无码一区二区WWW| 插我一区二区在线观看| 在线视频亚洲一区| 午夜影院一区二区| 国产精品免费一区二区三区四区| 国产一区二区三区电影| 无码喷水一区二区浪潮AV| 人妻无码一区二区不卡无码av|