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

nagios編譯安裝、搭建

基本準(zhǔn)備

創(chuàng)新互聯(lián)專(zhuān)注于涉縣企業(yè)網(wǎng)站建設(shè),響應(yīng)式網(wǎng)站設(shè)計(jì),商城系統(tǒng)網(wǎng)站開(kāi)發(fā)。涉縣網(wǎng)站建設(shè)公司,為涉縣等地區(qū)提供建站服務(wù)。全流程按需網(wǎng)站設(shè)計(jì),專(zhuān)業(yè)設(shè)計(jì),全程項(xiàng)目跟蹤,創(chuàng)新互聯(lián)專(zhuān)業(yè)和態(tài)度為您提供的服務(wù)

yum -y install httpd php MySQL-devel php-mysql            安裝需要的包

groupadd nagcmd                                    創(chuàng)建nagios的管理組

useradd –g nagcmd nagios                            將nagios添加到組nagioscmd內(nèi)

usermod -a -G nagcmd apache                        將apache加入到組nagcmd內(nèi)

yum –y install gcc                                    編譯安裝的需要

安裝httpd【apache環(huán)境】

[root@zhangpub]# tar zxvf nagios-3.0.6.tar.gz

[root@localhosthttpd-2.2.6]# cd /var/ftp/upload/httpd-2.2.6

[root@localhosthttpd-2.2.6]# ./configure --prefix=/usr/local/apache  

[root@localhosthttpd-2.2.6]# make

[root@localhosthttpd-2.2.6]# make install

[root@localhost httpd-2.2.6]#service httpd start

Starting httpd: httpd: Could notreliably determine the server's fully qualified domain name, usinglocalhost.localdomain for ServerName

(98)Address already in use:make_sock: could not bind to address [::]:80

(98)Address already in use:make_sock: could not bind to address 0.0.0.0:80

no listening sockets available,shutting down

Unable to open logs

                                                         [FAILED]

[root@localhost httpd-2.2.6]#(98)Address already in use: make_sock: could not bind to address [::]:80

-bash: syntax error nearunexpected token `Address'

[root@localhost httpd-2.2.6]#(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

-bash: syntax error nearunexpected token `Address'

啟動(dòng)報(bào)錯(cuò):

[root@localhosthttpd-2.2.6]# netstat -lnp|grep 80

tcp        0     0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      3536/nginx

tcp        0     0 127.0.0.1:631              0.0.0.0:*                   LISTEN      1802/cupsd

tcp        0     0 ::1:631                    :::*                        LISTEN      1802/cupsd

udp        0     0 0.0.0.0:631                0.0.0.0:*                              1802/cupsd

unix  2     [ ACC ]     STREAM     LISTENING     15688 2517/gnome-power-ma /tmp/orbit-root/linc-9d5-0-e7ccb8c8800b

unix  2     [ ACC ]     STREAM     LISTENING     10437 1802/cupsd         /var/run/cups/cups.sock

kill掉進(jìn)程。

Kill -93536

再次啟動(dòng)httpd服務(wù)

[root@localhosthttpd-2.2.6]#service httpd start

安裝nagios

#useraddnagios –s /sbin/nologin

#tar zxvfnagios-3.0.6.tar.gz

#cdnagios-3.0.6

./configure--sysconfdir=/etc/nagios --with-commend-group=nagcmd --enable-event-broker

#make all查看安裝步驟

有如下內(nèi)容

*** Compile finished ***

If the main program and CGIscompiled without any errors, you

can continue with installingNagios as follows (type 'make'

without any arguments for a listof all possible options):

make install

    - This installs the main program, CGIs,and HTML files

make install-init

    - This installs the init script in/etc/rc.d/init.d

makeinstall-commandmode

    - This installs and configures permissionson the

      directory for holding the externalcommand file

makeinstall-config

    - This installs *SAMPLE* config files in/usr/local/nagios--with-nagios-user=nagios--with-nagios-group=nagios/etc

      You'll have to modify these sample filesbefore you can

      use Nagios.  Read the HTML documentation for more info

      on doing this.  Pay particular attention to the docs on

      object configuration files, as theydetermine what/how

      things get monitored!

makeinstall-webconf

    - This installs the Apache config file forthe Nagios

      web interface

*** Support Notes*******************************************

編譯安裝

make all                                            安裝主程序、CGI和HTML文件

make install                                        在/etc/rc.d/init.d安裝啟動(dòng)腳本

make install-init    把nagios做成一個(gè)運(yùn)行腳本,使nagios隨系統(tǒng)開(kāi)機(jī)啟動(dòng),這是一個(gè)很方便的措施。

make install-commendmode                來(lái)配置目錄權(quán)限

make install-config    把配置文件的例子復(fù)制到nagios的安裝目錄

make install-webconf        創(chuàng)建一個(gè)nagiosadmin的用戶用于nagios的web接口登錄

htpasswd-c /etc/nagios/htpasswd.users nagiosadmin

Newpassword:

Re-typenew password:

Addingpassword for user nagiosadmin

配置密碼。

service httpd restart                                啟動(dòng)apache服務(wù)

chkconfig --add nagios  將nagios加入到服務(wù)中

chkconfig nagios on  開(kāi)機(jī)啟動(dòng)

servicenagios start

Nagios-plugins安裝

[root@localhost upload]# tar zxvf nagios-plugins-1.4.13        解壓

[root@localhost upload]# cd nagios-plugins-1.4.13        進(jìn)入文件夾

[root@localhost nagios-plugins-1.4.13]#./configure--with-nagios-user=nagios --with-nagios-group=nagios                                        執(zhí)行配置

[root@localhost nagios-plugins-1.4.13]# make            進(jìn)行編譯安裝

[root@localhostnagios-plugins-1.4.13]# make install

[root@localhostnagios-plugins-1.4.13]# service nagios restart

關(guān)閉selinux

setenforce0

訪問(wèn)nagios

IP/nagios

nagios編譯安裝、搭建

輸入賬號(hào)密碼。

默認(rèn)已在監(jiān)控localhost

本文名稱(chēng):nagios編譯安裝、搭建
文章網(wǎng)址:http://jinyejixie.com/article36/pggcsg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站維護(hù)、全網(wǎng)營(yíng)銷(xiāo)推廣、動(dòng)態(tài)網(wǎng)站、App開(kāi)發(fā)、Google

廣告

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

小程序開(kāi)發(fā)
分宜县| 江孜县| 札达县| 栾川县| 阿鲁科尔沁旗| 卢氏县| 弋阳县| 灵台县| 虹口区| 晋宁县| 富蕴县| 五大连池市| 霍城县| 睢宁县| 瓦房店市| 永川市| 平远县| 淳安县| 大城县| 达日县| 襄樊市| 交城县| 盈江县| 平舆县| 虹口区| 宜君县| 深泽县| 英山县| 隆林| 尚义县| 金门县| 略阳县| 锦州市| 马关县| 大厂| 丹东市| 南安市| 宝鸡市| 安西县| 新乐市| 南投市|