1、下載nagios-4.0.8、nagios-plugins-2.0.3
創(chuàng)新互聯(lián)專注于平谷網站建設服務及定制,我們擁有豐富的企業(yè)做網站經驗。 熱誠為您提供平谷營銷型網站建設,平谷網站制作、平谷網頁設計、平谷網站官網定制、重慶小程序開發(fā)公司服務,打造平谷網絡公司原創(chuàng)品牌,更為您提供平谷網站排名全網營銷落地服務。
wget http://jaist.dl.sourceforge.net/project/nagios/nagios-4.x/nagios-4.0.8/nagios-4.0.8.tar.gz
wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
2、安裝組件
yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp
3、創(chuàng)建nagios用戶與用戶組
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
4、安裝nagios-4.0.8
tar zxvf nagios-4.0.8.tar.gz
cd nagios-4.0.8
./configure --prefix=/usr/local/nagios --with-command-group=nagcmd --with-nagios-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagcmd /usr/local/nagios/libexec/eventhandlers
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
service nagios start
5、配置httpd
1)配置web登陸用戶名和密碼
htpasswd -c /usr/local/nagios/etc/htpasswd nagiosadmin
vi /etc/httpd/conf/httpd.conf 加入以下內容
2)找到
user apache
group apache
修改為
user nagios
group nagcmd
3)找到
#ServerName www.example.com:80
將前面的#刪除
6、安裝nagios-plugins
tar zxvf nagios-plugins-2.0.3.tar.gz
cd nagios-plugins-2.0.3
./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagcmd --with-command-user=nagios --with-command-group=nagcmd
make
make install
7、設置開機啟動
chkconfig nagios on
service nagios start
chkconfig httpd on
service httpd start
8、訪問
http://IP/nagios 輸入用戶名密碼

nagiosadmin:$apr1$CZJUFBRq$TBWA4x8B6nbH0nA4ekHg7. http://tool.oschina.net/htpasswd
本文題目:nagios-4.0.8安裝
當前鏈接:http://chinadenli.net/article6/gsgsig.html
成都網站建設公司_創(chuàng)新互聯(lián),為您提供定制開發(fā)、商城網站、小程序開發(fā)、營銷型網站建設、微信小程序、定制網站
聲明:本網站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)