麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 系統(tǒng) > Solaris > 正文

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

2020-05-27 13:34:38
字體:
供稿:網(wǎng)友

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

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

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

Solaris下的nagios監(jiān)控系統(tǒng) 武林網(wǎng)

  圖-nagios

  文將介紹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.生成登錄用戶和驗(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

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 久久久久久久免费精品 | 一级在线免费观看视频 | 国产噜噜噜 | 久久精品一区二区三区国产主播 | 免费香蕉成视频成人网 | 免费观看视频在线 | 国产区二区 | 国产一级免费电影 | 日本欧美一区 | 202z中文字幕第一页 | 黄色av网站在线观看 | 免费视频一区 | 黄污免费网站 | 在线看免费观看av | 日韩激情在线视频 | 久久免费精品 | 久久影院国产精品 | 国产精品视频成人 | 天天曰夜夜操 | 欧美成年人视频 | 午夜精品久久久久久久99热浪潮 | 草b视频在线观看 | 欧洲黄视频 | 在线视频 欧美日韩 | www亚洲成人| 成人毛片免费 | 欧美日韩在线播放一区 | 国产亚洲精品久久 | 91成人在线免费视频 | xxx日本视频 | 国产午夜精品一区二区三区免费 | 免费观看国产精品视频 | aaaaa国产欧美一区二区 | 看国产精品 | 羞羞网站在线看 | 久久福利国产 | 国产黄色毛片 | 91成人免费在线观看 | 老a影视网站在线观看免费 国产精品久久久久久久久久尿 | 亚洲第一成av人网站懂色 | 天天操天天看 |