成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Nagios遠(yuǎn)程監(jiān)控軟件的安裝與配置詳解-創(chuàng)新互聯(lián)

一、環(huán)境配置

在新平等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專(zhuān)注、極致的服務(wù)理念,為客戶(hù)提供網(wǎng)站建設(shè)、成都網(wǎng)站建設(shè) 網(wǎng)站設(shè)計(jì)制作專(zhuān)業(yè)公司,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站制作,成都全網(wǎng)營(yíng)銷(xiāo)推廣,成都外貿(mào)網(wǎng)站建設(shè)公司,新平網(wǎng)站建設(shè)費(fèi)用合理。

1、系統(tǒng):CentOS release 5.6 IP:192.168.4.200  主機(jī)名:JW01

二、軟件下載

 Nagios安裝至少也應(yīng)該配置下Apache的Httpd(已裝)服務(wù)器,否則沒(méi)有界面,只能靠查看日志去找錯(cuò)誤,那就是完全沒(méi)有意外了。

Nagios下載地址:http://www.nagios.org/download/

nagios-3.4.4.tar.gz    nagios-plugins-1.4.16.tar.gz

必須安裝GCC?。?! 其實(shí),我們的apache可以直接用yum來(lái)安裝,不必指定路徑,就可以直接配置apache了。

三、安裝前的準(zhǔn)備工作

1、解決安裝Nagios的依賴(lài)關(guān)系:
 Nagios基本組件的運(yùn)行依賴(lài)于httpd、gcc和gd??梢酝ㄟ^(guò)以下命令來(lái)檢查nagios所依賴(lài)的rpm包是否已經(jīng)完全安裝:

[root@jw01 ~] # yum -y install httpd gcc glibc glibc-common *gd* php php-mysql mysql mysql-server

2、所需要安裝組件:

服務(wù)端所用的安裝包為 nagios nagios-plugins ndoutils(非必須)
linux客戶(hù)端 nrpe
windows客戶(hù)端 NSClient++

3、進(jìn)行selinux設(shè)置,或者關(guān)閉selinux
 

[root@jw01 ~]# vim /etc/selinux/config
SELINUX=disabled


 4、添加nagios運(yùn)行所需要的用戶(hù)和組:

[root@jw01 ~]# groupadd nagcmd
[root@jw01 ~]# useradd -m nagios
[root@jw01 ~]# usermod -a -G nagcmd nagios

 四、編譯安裝nagios

1、安裝nagios

[root@jw01 software]# tar -zxvf nagios-3.4.4.tar.gz    #解壓nagios
[root@jw01 software]# cd nagios/
[root@jw01 nagios]# ./configure -prefix=/usr/local/nagios  #配置nagios的安裝路徑
[root@jw01 nagios]# make all                                          #編譯
[root@jw01 nagios]# make install               #主要安裝程序、CGI以及HTML文件
make install-config
    - This installs sample config files in /usr/local/nagios/etc
make[1]: Leaving directory `/opt/software/nagios'
[root@jw01 nagios]# make install-commandnode #給外部命令訪(fǎng)問(wèn)nagios配置文件權(quán)限
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw
*** External command directory configured ***
[root@jw01 nagios]# /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/rw
[root@jw01 nagios]# chmod g+s /usr/local/nagios/var/rw
[root@jw01 nagios]# mekde install-config     #把配置文件的例子復(fù)制到nagios的安裝目錄
[root@jw01 nagios]# make install-init  #把nagios做成一個(gè)運(yùn)行腳本,使nagios隨系統(tǒng)開(kāi)機(jī)啟動(dòng)
/usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/nagios
*** Init script installed ***
[root@jw01 nagios]# usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
[root@jw01 nagios]# /usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/nagios

2、驗(yàn)證程序是否安裝正確

[root@jw01 nagios]# cd /usr/local/nagios/
[root@jw01 nagios]# ll
total 28
drwxrwxr-x 2 nagios nagios 4096 Feb 7 17:00 bin
drwxrwxr-x 3 nagios nagios 4096 Feb 7 15:40 etc
drwxr-xr-x 2 root  root  4096 Feb 7 14:52 include
drwxrwxr-x 2 nagios nagios 4096 Feb 7 14:52 libexec
drwxrwxr-x 2 nagios nagios 4096 Feb 7 17:00 sbin
drwxrwxr-x 11 nagios nagios 4096 Feb 7 17:00 share
drwxrwxr-x 5 nagios nagios 4096 Feb 7 14:19 var

存在 etc、bin、 sbin、 share、 var這五個(gè)目錄,如果存在則可以表明程序被正確的安裝到系統(tǒng)了。后表是五個(gè)目錄功能的簡(jiǎn)要說(shuō)明:

        bin          

Nagios執(zhí)行程序所在目錄,這個(gè)目錄只有一個(gè)文件nagios

etc Nagios配置文件位置,初始安裝完后,只有幾個(gè)*.cfg-sample文件

sbin

Nagios Cgi文件所在目錄,也就是執(zhí)行外部命令所需文件所在的目錄

share

Nagios網(wǎng)頁(yè)文件所在的目錄
var Nagios日志文件、spid 等文件所在的目錄

五、安裝nagios插件

[root@jw01 software]# tar -zxvf nagios-plugins-1.4.16.tar.gz
[root@jw01 software]# cd nagios-plugins-1.4.16
[root@jw01 software]# ./configure -prefix=/usr/local/nagios  #這里的路徑是安裝nagios的路徑
[root@jw01 software]# make
[root@jw01 software]# make install

   說(shuō)明一下的是在配置過(guò)程指定的安裝路徑是/usr/local/nagios,而不是/usr/local/nagios-plus,安裝完成后,將在目錄/usr/local/nagios生成目錄libexec(里面有很多文件),這正是nagios所需要的。

六、安裝Apache (前段時(shí)間APACHE已經(jīng)安裝了)

Web服務(wù)不是nagios所必須的,但是如果nagios沒(méi)有web,查看監(jiān)控對(duì)象的對(duì)象將是非常費(fèi)事和沒(méi)有趣味的事情(只有通過(guò)查看nagios的日志來(lái)判斷狀態(tài))。我不愿干特?zé)o聊的事,所以就花少許時(shí)間把web安裝一下。
在unix/linux世界,apache是web服務(wù)器的選對(duì)象,其下載網(wǎng)站為www.apache.org 。建議下載源碼。因?yàn)槲覀儾恍枰軓?fù)雜的web功能,因此簡(jiǎn)單的執(zhí)行一下幾個(gè)步驟就可以正確的把a(bǔ)pache安裝到系統(tǒng):

1、安裝Apache;

[root@jw01 software]# tar -zxvf httpd-2.2.0.tar.gz
[root@jw01 software]# cd httpd-2.2.0
[root@jw01 software]# ./configure –prefix=/usr/local/apache #指定Apache的安裝路徑
[root@jw01 software]#
 
make
[root@jw01 software]#  make install
[root@jw01 software]# ./usr/local/apache/bin/apachectl –t    #檢查一下apache是否正確安裝

[root@jw01 ~]# /usr/sbin/apachectl -t
Syntax OK
[root@jw01 ~]#                           #自己的的路徑 

2、Apache 配置

第一步是修改apache的配置文件httpd.conf,這里的文件路徑是/usr/local/apache/conf/httpd.conf 。把a(bǔ)pache的運(yùn)行用戶(hù)[1]和運(yùn)行組改成nagios,往下把下面的行追加到文件httpd.conf的末尾:
我自己是寫(xiě)在代理的目錄下,效果都是一樣的。

[root@jw01 ~]# /usr/local/apache/conf/httpd.conf
#setting for nagios
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory "/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
</directory>
Alias /nagios /usr/local/nagios/share
<Directory "/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
</directory>

[root@jw01 conf.d]# pwd
/etc/httpd/conf.d
[root@jw01 conf.d]# ll
total 136
-rw-r--r-- 1 root root 648 Feb 7 17:30 nagios.conf   #自己在代理目錄下新增了nagios.conf文件

上述文本塊的作用是對(duì)nagios的目錄進(jìn)行用戶(hù)驗(yàn)證,只有合法的授權(quán)用戶(hù)才可以訪(fǎng)問(wèn)nagios的頁(yè)面文件。第二步是生成用戶(hù)驗(yàn)證文件:只要執(zhí)行命令

[root@jw01~]# /usr/bin/htpasswd -c /usr/local/nagios/etc/htpasswd kuangl

就會(huì)生成web的合法訪(fǎng)問(wèn)用戶(hù)kuangl;命令交互執(zhí)行,需要輸入2次密碼,然后就在文件/usr/local/nagios/etc/htpasswd寫(xiě)入一行-第一個(gè)字段是剛生成的用戶(hù)名,第二個(gè)是加密后的密碼,如果還要添加更多的用戶(hù),執(zhí)行命令 htpasswd 就不需要選項(xiàng) “-c”,否則就會(huì)覆蓋所有已經(jīng)生成的行。
配置完成后,執(zhí)行/usr/local/apache/bin/apachctl –t 檢查apache配置文件是否有語(yǔ)法錯(cuò)誤,無(wú)誤后用/usr/local/apache/bin/apachctl start & 把a(bǔ)pache啟動(dòng),然后從另外的機(jī)器的瀏覽器輸入nagios 的訪(fǎng)問(wèn)地址(如:http://192.168.4.200/nagios),如果正常,將出現(xiàn)下圖的登錄驗(yàn)證窗口等待用戶(hù)輸入:

Nagios遠(yuǎn)程監(jiān)控軟件的安裝與配置詳解

  七、nagios配置

 剛安裝完成的nagios,其配置文件的目錄是/usr/local/nagios/etc,下圖是其etc目錄的文件:

[root@jw01 conf.d]# cd /usr/local/nagios/etc/
[root@jw01 etc]# ll
total 68
-rw-rw-r-- 1 nagios nagios 11717 Feb 7 17:57 cgi.cfg
-rw-r--r-- 1 root  root     21 Feb 20 13:47 htpasswd
-rw-rw-r-- 1 nagios nagios 44710 Feb 7 14:43 nagios.cfg
drwxrwxr-x 2 nagios nagios 4096 Feb 20 15:23 objects
-rw-rw---- 1 nagios nagios 1340 Feb 7 14:43 resource.cfg
[root@jw01 etc]#

 從nagios2.6版開(kāi)始,不需要更改文件名也不用修改配置文件localhost.cfg就可以直接運(yùn)行../bin/nagios –v nagios.cfg驗(yàn)證程序是否能正常運(yùn)行(nagios2.5及以前版本的最小運(yùn)行的配置文件是minimal.cfg,但需要修改這個(gè)文件多處才能驗(yàn)證成功)。

1、修改nagios的主配置文件nagios.cfg

[root@jw01 etc]# vim nagios.cfg
在文件中的143行改check_external_commands=0為check_external_commands=1 這行的作用是允許執(zhí)行在web界面下重啟nagios、停止主機(jī)/服務(wù)檢查等操作。
在文件中的161行改command_check_interva=15s的值從默認(rèn)的15 command_check_interval=10s

2、修改cgi.cfg 配置文件

[root@jw01 etc]# vim cgi.cfg
在文件的78行確保use_authentication=1。曾看過(guò)不少的文章,都是建議把use_authentication的值設(shè)置成”0”來(lái)取消驗(yàn)證,這是一個(gè)十分糟糕的想法。接下來(lái)修改default_user_name=sery ,再后面的修改在下表列出:
authorized_for_system_information=nagiosadmin,kuangl
authorized_for_configuration_information=nagiosadmin,kuangl
authorized_for_system_commands=nagiosadmin,kuangl              //多個(gè)用戶(hù)之間用逗號(hào)隔開(kāi)
authorized_for_all_services=nagiosadmin,kuangl
authorized_for_all_hosts=nagiosadmin,kuangl
authorized_for_all_service_commands=nagiosadmin,kuangl
authorized_for_all_host_commands=nagiosadmin,kuangl

|
那么上述用戶(hù)名打那里來(lái)的呢?是執(zhí)行命令
 /usr/local/apache/bin/htpasswd –c /usr/local/nagios/etc/htpasswd kuangl 所生成的,這個(gè)要注意,不能隨便加沒(méi)有存在的驗(yàn)證用戶(hù),為了安全起見(jiàn),不要添加過(guò)多的驗(yàn)證用戶(hù)。

3、修改commands.cfg 配置文件,這個(gè)文件的主要功能是用來(lái)發(fā)送報(bào)警短信和報(bào)警郵件。

[root@jw01 objects]# vim commands.cfg 

修改配置文件或者新增以下內(nèi)容:

#host-notify-by-sms  //發(fā)送短信報(bào)警
define command {
      command_name     host-notify-by-sms
      command_line     /usr/local/bin/sms_send "Host $HOSTSTATE$alert for $HOSTNAME$! on '$DATETIME$' " $CONTACTPAGER$
     }

#service notify by sms //發(fā)送短信報(bào)警
define command {
      command_name    service-notify-by-sms
      command_line    /usr/local/bin/sms_send "'$HOSTADDRESS$'$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$
      }

 # ‘notify-host-by-email’ command definition

 define command{

 command_name host-notify-by-email

 command_line /usr/bin/printf “%b” “***** Nagios *****\n\nNotification Typ$NOTIFICATIONTYPE$\nHost:      $HOSTNAME$\nState:$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:     $LONGDATETIME$\n” | /bin/mai -s “** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **” $CONTTEMAIL$

 }

 # ’service_notification_commands’ command definition

 define command{

 command_name service-notify-by-email

 command_line /usr/bin/printf “%b” “***** Nagios *****\n\nNotification Typ$NOTIFICATIONTYPE$\n\nService:  $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$” | /bin/mail -s “** $NOTIFICATIONTYPE$ Service ert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **” $CONTACTEMAIL$

 }

4、修改contacts.cfg 配置文件;

define contact{
       contact_name                   kuangl         ; Short name of user
       use                            generic-contact        ; Inherit default values from generic-contact template (defined above)
       alias                          Nagios Admin           ; Full name of user
       service_notification_period   24x7
       host_notification_period      24x7
       service_notification_options  w,u,c,r
       host_notification_options      d,u,r
       service_notification_commands service-notify-by-sms,service-notify-by-email
       host_notification_commands    host-notify-by-email,host-notify-by-sms
       email                          kuangl@lorient-meadia.com ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
       pager                          138XXXXXX79
       }

在文件最后面修改:

define contactgroup{
       contactgroup_name      sysadmin      #定義的屬組
       alias                  Nagios Administrators
       members                kuangl                #定義的用戶(hù)
       }

多個(gè)成員之間用逗號(hào)做分界符,如果有更多的聯(lián)系組,就依相同的格式在文件中追加余下的組。

5、新增hosts.cfg 配置文件,下面是我定義的兩個(gè)主機(jī)的基本樣式;

define host{
       name                           generichost   ; Referenced in other host definitions, used for template recursion/resolution
       notifications_enabled          1      ; Host notifications are enabled
       event_handler_enabled          1      ; Host event handler is enabled
       flap_detection_enabled         1      ; Flap detection is enabled
       process_perf_data              1      ; Process performance data
       retain_status_information      1      ; Retain status information across program restarts
       retain_nonstatus_information   1      ; Retain non-status information across program restarts
       register                       0      ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
       check_command                  check-host-alive
       max_check_attempts             3
       contact_groups                 sysadmin
       notification_interval          60
       notification_period            24x7
       notification_options           d,u,r
       }

define host{
       name                           generichost1   ; Referenced in other host definitions, used for template recursion/resolution
       notifications_enabled          1      ; Host notifications are enabled
       event_handler_enabled          1      ; Host event handler is enabled
       flap_detection_enabled         1      ; Flap detection is enabled
       process_perf_data              1      ; Process performance data
       retain_status_information      1      ; Retain status information across program restarts
       retain_nonstatus_information   1      ; Retain non-status information across program restarts
       register                       0      ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
       check_command                  check_tcp!80
       max_check_attempts             3
       contact_groups                 sysadmin
       notification_interval          60
       notification_period            24x7
       notification_options           d,u,r
       }

define host{
       use                            generichost
       host_name                      jw01
       alias                          jw01
       address                        192.168.4.200
       }

define host{
       use                            generichost
       host_name                      jw02
       alias                          jw02
       address                        192.168.4.244
       }

   更多的主機(jī)依此格式逐個(gè)追加進(jìn)來(lái)。

6、新增services.cfg 配置文件,沒(méi)有這個(gè)文件,什么監(jiān)控也沒(méi)用。

define service{
       name                           genericservice
       active_checks_enabled          1
       passive_checks_enabled         1
       parallelize_check              1
       obsess_over_service            1
       check_freshness                0
       notifications_enabled          1
       event_handler_enabled          1
       flap_detection_enabled         1
       process_perf_data              1
       retain_status_information      1
       retain_nonstatus_information   1
       register                       0
       is_volatile                    0
       max_check_attempts             2
       check_interval                 3
       retry_interval                 2
       event_handler_enabled          1
       check_period                   24x7
       contact_groups                 sysadmin
       notification_interval          60
       notification_period            24x7
       notification_options           w,u,c,r
       #notes_url                     http://webops/nocweb/home/template/bpv%2CBp***View.vm?instancename=BDC_NMS
       }

#################### jw01 ######################

define service{
       use                            genericservice
       host_name                      jw01
service_description                    PING
       check_command                  check-host-alive
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            tcp_22
       check_command                  check_tcp!22
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            tcp_10000
       check_command                  check_tcp!10000
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            tcp_80
       check_command                  check_tcp!80
       }
define service{
       use                            genericservice
       host_name                      jw01
       service_description            tcp_8081
       check_command                  check_tcp!8081
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            tcp_971
       check_command                  check_tcp!971
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            tcp_111
       check_command                  check_tcp!111
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            HTTP
       check_command                  check_http
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            SSH
       check_command                  check_ssh
}

define service{
       use                            genericservice
       host_name                      jw01
       service_description            Nrpe_users
       check_command                  check_nrpe!check_users
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            Nrpe_load
       check_command                  check_nrpe!check_load
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            Nrpe_sda1
       check_command                  check_nrpe!check_/boot
       }

define service{
       use                            genericservice
       host_name                      jw01
       service_description            Nrpe_zomie_procs
       check_command                  check_nrpe!check_zombie_procs
       }

書(shū)寫(xiě)時(shí)要注意的是,check_tcp與要監(jiān)控的服務(wù)端口之間要用”!”做分隔符。如果服務(wù)太多,以應(yīng)該考慮用腳本來(lái)生成。

7、修改nagios配置文件

[root@jw01 objects]# vim /usr/local/nagios/etc/nagios.cfg

    在配置文件里面增加services.cfg、hosts.cfg等文件保存退出!

cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg          //聯(lián)系人配置文件路徑
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg     //監(jiān)視時(shí)段配置文件路徑
cfg_file=/usr/local/nagios/etc/objects/templates.cfg
cfg_file=/usr/local/nagios/etc/objects/services.cfg          //服務(wù)配置文件路徑
cfg_file=/usr/local/nagios/etc/objects/hosts.cfg              //主機(jī)配置文件路徑

# Definitions for monitoring the local (Linux) host
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg          //本機(jī)配置文件路徑



8、檢查文件配置的正確性

[root@jw01 objects]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Total Warnings: 0
Total Errors:  0

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

    這樣的情況,大功告成;但我卻沒(méi)有這么幸運(yùn),修改了好多個(gè)地方才成功。

問(wèn)題總結(jié):

報(bào)錯(cuò)1:Error: Contact group 'admins' specified in service 'Current Load' for host 'localhost' is not defined anywhere!
解決:將templates.cfg配置中的admins組更改為contactgroups.cfg中定義的sysadmin #自己定義的屬組

報(bào)錯(cuò)2:Error: Service notification command 'service-notify-by-email' specified for contact 'kuangl' is not defined anywhere!
Error: Host notification command 'host-notify-by-email' specified for contact 'kuangl' is not defined anywhere!
解決:在這兩條報(bào)錯(cuò)證明在commands.cfg里沒(méi)有定義這兩條,在commands.cfg里添加以下內(nèi)容:

# ‘notify-host-by-email’ command definition

define command{

command_name host-notify-by-email

command_line /usr/bin/printf “%b” “***** Nagios *****\n\nNotification Typ$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n” | /bin/mai -s “** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **” $CONTTEMAIL$

}

# ’service_notification_commands’ command definition

define command{

command_name service-notify-by-email

command_line /usr/bin/printf “%b” “***** Nagios *****\n\nNotification Typ$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$” | /bin/mail -s “** $NOTIFICATIONTYPE$ Service ert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **” $CONTACTEMAIL$

}

報(bào)錯(cuò)3:如果提示“
 解決:

[root@jw01 etc]# yum -y install php

報(bào)錯(cuò)4:如果提示“Whoops! Error: Could not read object configuration data! ”,這是因?yàn)闆](méi)有啟動(dòng)nagios后臺(tái)進(jìn)程,執(zhí)行以下命令
[root@jw01 objects]# /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg       

9、將nagios 作為守護(hù)進(jìn)程

[root@jw01 objects]# /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
[root@jw01 objects]# ps -ef |grep nagios
nagios   8640    1 0 15:25 ?       00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root    11397 5291 0 17:25 pts/1   00:00:00 grep nagios

10、在IE輸入:https://192.168.4.200/nagios/

Nagios遠(yuǎn)程監(jiān)控軟件的安裝與配置詳解

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線(xiàn),公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性?xún)r(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專(zhuān)為企業(yè)上云打造定制,能夠滿(mǎn)足用戶(hù)豐富、多元化的應(yīng)用場(chǎng)景需求。

網(wǎng)頁(yè)標(biāo)題:Nagios遠(yuǎn)程監(jiān)控軟件的安裝與配置詳解-創(chuàng)新互聯(lián)
URL地址:http://jinyejixie.com/article42/dhosec.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供域名注冊(cè)、做網(wǎng)站、搜索引擎優(yōu)化服務(wù)器托管、網(wǎng)站設(shè)計(jì)、品牌網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

小程序開(kāi)發(fā)
黔江区| 石狮市| 莒南县| 高台县| 霍州市| 始兴县| 兴宁市| 鄄城县| 阿克苏市| 斗六市| 黄平县| 陇川县| 无为县| 盐池县| 延吉市| 天长市| 温宿县| 安吉县| 安丘市| 台东市| 灵武市| 缙云县| 全椒县| 武陟县| 珠海市| 普安县| 聂荣县| 潞西市| 云林县| 大英县| 老河口市| 都匀市| 商河县| 英德市| 嘉祥县| 屏南县| 闸北区| 新乐市| 永仁县| 枝江市| 乐都县|