老熟女激烈的高潮_日韩一级黄色录像_亚洲1区2区3区视频_精品少妇一区二区三区在线播放_国产欧美日产久久_午夜福利精品导航凹凸

nagios安裝配置說明(一)

Nagios安裝配置說明

  • 修改YUM源為國內sohu的站點;

    為余慶等地區用戶提供了全套網頁設計制作服務,及余慶網站建設行業解決方案。主營業務為成都網站設計、成都網站建設、外貿網站建設、余慶網站設計,以傳統方式定制建設網站,并提供域名空間備案等一條龍服務,秉承以專業、用心的態度為用戶提供真誠的服務。我們深信只要達到每一位用戶的要求,就會得到認可,從而選擇與我們長期合作。這樣,我們也可以走得更遠!

[root@nagios ~]# cd/etc/yum.repos.d/

[root@nagios yum.repos.d]# ls

CentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-Media.repo  CentOS-Vault.repo

[root@nagios yum.repos.d]# mvCentOS-Base.repo CentOS-Base.repo.backup

[root@nagios yum.repos.d]# wgethttp://mirrors.sohu.com/help/CentOS-Base-sohu.repo

--2014-06-08 22:34:38-- http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

Resolving mirrors.sohu.com...119.188.36.70

Connecting tomirrors.sohu.com|119.188.36.70|:80... connected.

HTTP request sent, awaitingresponse... 200 OK

Length: 2299 (2.2K)[application/octet-stream]

Saving to:`CentOS-Base-sohu.repo'

 

100%[===================================================================================>]2,299       --.-K/s   in 0.1s   

 

2014-06-08 22:34:43 (20.6 KB/s)- `CentOS-Base-sohu.repo' saved [2299/2299]

 

[root@nagios yum.repos.d]# ls

CentOS-Base-sohu.repo  CentOS-Base.repo.backup  CentOS-Debuginfo.repo  CentOS-Media.repo  CentOS-Vault.repo

[root@nagios yum.repos.d]# mv CentOS-Base-sohu.repoCentOS-Base.repo

 

  • 解決perl編譯問題;

[root@nagios ~]# echo 'exportLC_ALL=C'>> /etc/profile

[root@nagios ~]# tail -1/etc/profile

export LC_ALL=C

[root@nagios ~]# source/etc/profile

[root@nagios ~]# echo $LC_ALL

C

 

  • 關閉iptables防火墻;

[root@nagios ~]#/etc/init.d/iptables stop

[root@nagios ~]#/etc/init.d/iptables status

iptables: Firewall is notrunning.

[root@nagios ~]# chkconfigiptables off

[root@nagios ~]# chkconfig--list|grep iptables

iptables             0:off 1:off 2:off 3:off 4:off 5:off 6:off

 

  • 關閉selinux;

[root@nagios ~]# cat /etc/selinux/config

 

# This file controls the stateof SELinux on the system.

# SELINUX= can take one ofthese three values:

#     enforcing - SELinux security policy isenforced.

#     permissive - SELinux prints warningsinstead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=enforcing

# SELINUXTYPE= can take one ofthese two values:

#     targeted - Targeted processes areprotected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

 

 

[root@nagios ~]# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g'/etc/selinux/config

[root@nagios ~]# cat/etc/selinux/config

 

# This file controls the stateof SELinux on the system.

# SELINUX= can take one ofthese three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warningsinstead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one ofthese two values:

#     targeted - Targeted processes areprotected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

 

[root@nagios ~]# setenforce 0

[root@nagios ~]# getenforce

Disabled

 

五、解決時間同步問題;

[root@nagios ~]#/usr/sbin/ntpdate pool.net.org   #更新當前時間

 8 Jun 22:55:22 ntpdate[2165]: no serversuitable for synchronization found

[root@nagios ~]# echo '#timesync by jerry at 20140131'>> /var/spool/cron/root

[root@nagios ~]# echo '*/10 * ** * /usr/sbin/ntpdate pool.ntp.org >/dev/null 2>&1'>>/var/spool/cron/root

[root@nagios ~]# crontab -l

#time sync by jerry at 20140131

*/10 * * * * /usr/sbin/ntpdatepool.ntp.org >/dev/null 2>&1

 

六、安裝nagios所需的基礎軟件包;

[root@nagios ~]# yum installgcc glibc glibc-common gd gd-devel MySQL* httpd php php-gd –y

 

七、創建用戶和組;

[root@nagios ~]# useradd nagios

[root@nagios ~]# groupaddnagcmd

[root@nagios ~]# usermod -a -Gnagcmd nagios

[root@nagios ~]# usermod -a -Gnagcmd apache

 

八、創建軟件存放文件夾及下載相關軟件;

[root@nagios tools]#mkdir –p /home/jerry/tools

[root@nagios tools]#cd/home/jerry/tools

 

九、解壓并安裝nagios;

[root@nagios tools]# tar zxfnagios-3.5.0-1374045102000.tar.gz

[root@nagios tools]# ls                                  

nagios  nagios-3.5.0-1374045102000.tar.gz  nagios-plugins-1.5.tar.gz

[root@nagios tools]# cd nagios

[root@nagios nagios]#./configure --with-command-group=nagcmd

[root@nagios nagios]# make all

[root@nagios nagios]# makeinstall

[root@nagios nagios]# makeinstall-init

[root@nagios nagios]# makeinstall-config

[root@nagios nagios]# makeinstall-commandmode

 

十、安裝nagios web 配置文件及創建登陸用戶;

[root@nagios nagios]# makeinstall-webconf

/usr/bin/install -c -m 644sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf

 

*** Nagios/Apache conf fileinstalled ***

[root@nagios nagios]# grep -v"#" /etc/httpd/conf.d/nagios.conf

 

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

 

   Options ExecCGI

   AllowOverride None

   Order allow,deny

   Allow from all

   AuthName "Nagios Access"

   AuthType Basic

   AuthUserFile/usr/local/nagios/etc/htpasswd.users

   Require valid-user

 

Alias /nagios"/usr/local/nagios/share"

 

   Options None

   AllowOverride None

   Order allow,deny

   Allow from all

   AuthName "Nagios Access"

   AuthType Basic

   AuthUserFile/usr/local/nagios/etc/htpasswd.users

   Require valid-user

 

[root@nagios nagios]# htpasswd-c /usr/local/nagios/etc/htpasswd.users nagiosadmin

New password:

Re-type new password:

Adding password for usernagiosadmin

 

十一、添加監控報警的接收email地址;

[root@nagios nagios]# vim/usr/local/nagios/etc/objects/contacts.cfg +35

email                           nagios@localhost

更改為

email                           46718718@qq.com

 

 

1.       啟動sendmail時時間過長請檢查主機名是否一致

[root@nagios nagios]#/etc/init.d/sendmail start

Starting sendmail: ^C

[root@nagios nagios]# cat/etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4localhost4.localdomain4

::1         localhost localhost.localdomainlocalhost6 localhost6.localdomain6

[root@nagios nagios]# uname -n

Nagios

修改為:

[root@nagios nagios]# cat/etc/hosts

127.0.0.1   nagios localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomainlocalhost6 localhost6.localdomain6

 

[root@nagios nagios]#/etc/init.d/sendmail start

Starting sendmail:                                         [  OK  ]

Starting sm-client:                                        [  OK  ]

[root@nagios nagios]# lsof -i:25

COMMAND  PID USER  FD   TYPE DEVICE SIZE/OFF NODENAME

master  1771 root  12u  IPv4  11293     0t0  TCP nagios:smtp (LISTEN)

master  1771 root  13u  IPv6  11295     0t0  TCP localhost:smtp (LISTEN)

[root@nagios nagios]# chkconfigsendmail on

[root@nagios nagios]# chkconfig--list|grep sendmail

sendmail           0:off 1:off 2:on 3:on 4:on 5:on 6:off

 

2.       啟動apache;

[root@nagios nagios]# netstat-lnt|grep 80

tcp        0     0 :::80                      :::*                        LISTEN     

[root@nagios nagios]# chkconfig--list|grep httpd

httpd              0:off 1:off 2:off 3:off 4:off 5:off 6:off

[root@nagios nagios]# chkconfighttpd on

[root@nagios nagios]# chkconfig--list|grep httpd

httpd              0:off 1:off 2:on 3:on 4:on 5:on 6:off

 

打開瀏覽器輸入http://server-ip/nagios  會有一個用戶名密碼提示窗口,輸入之前創建的用戶名密碼即可進入nagios系統頁面。


文章名稱:nagios安裝配置說明(一)
網頁路徑:http://www.xueling.net.cn/article/ggihhg.html

其他資訊

在線咨詢
服務熱線
服務熱線:028-86922220
TOP
主站蜘蛛池模板: 成人免费在线视频观看 | 亚洲一区二区视频 | 国产精品国产三级国产a | 精品人妻伦九区久久AAA片 | 欧洲人与动牲交α欧美精品 | 国产精品一区二区在线观看不卡 | 亚洲成人123 | 久久久久久久久久久高潮 | 91色精品视频在线 | 美女扒了内裤让男人桶 | 亚洲h片在线观看 | WWW激情内射在线看 亚洲人成网7777777国产 | 亚洲精品国产有码 | 97精品 | 91一区二区国产 | 狠狠干夜夜爽 | 国产裸舞福利在线视频合集 | 下属新婚人妻紧窄 | 色欲AV永久无码精品无码蜜桃 | 老司机久久一区二区三区 | 日韩精品1区 | 91色成人| 国产成人a区在线观看视频 色婷婷综合久久久中文一区二区 | 国产黄片软件在线观看 | 国产性猛交粗暴力xxxx | 狠狠艹狠狠干 | 免费一看一级毛片 | 国产免费av资源 | www.久久国产| 粉嫩av淫片一区二区三区 | 亚洲区在线 | 日韩欧美手机在线 | 91激情影院 | 最新国产一区最新在线 | 久久精品国产欧美亚洲人人爽 | 岛国一区二区三区 | 亚洲一区自拍偷拍 | 亚洲一区二区三区毛片 | 亚洲成人免费视频在线观看 | 日本成片 | 国产精品久久久久久久久亚洲美女 |