站在用戶的角度思考問(wèn)題,與客戶深入溝通,找到東西湖網(wǎng)站設(shè)計(jì)與東西湖網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶體驗(yàn)好的作品,建站類型包括:網(wǎng)站設(shè)計(jì)制作、做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、主機(jī)域名、網(wǎng)絡(luò)空間、企業(yè)郵箱。業(yè)務(wù)覆蓋東西湖地區(qū)。
Add nagios for nagios system:
# useradd nagios –s /sbin/nologin
Install nagios:
# tar zvxf nagios-3.5.0.tar.gz
# cd nagios
# ./configure --prefix=/usr/local/nagios \
# --with-nagios-user=nagios \
# --with-nagiso-group=nagios \
# --sysconfdir=/etc/nagios
# make all
# make install
# make install-init
# make install-commandmode
# make install-config
# make install-webconf
# htpasswd -c /etc/nagios/htpasswd.users nagios
# vi /etc/nagios/cgi.cfg
authorized_for_system_information=nagios authorized_for_configuration_information=nagios authorized_for_system_commands=nagios authorized_for_all_services=nagios authorized_for_all_hosts=nagios authorized_for_all_service_commands=nagios authorized_for_all_host_commands=nagios
# chown nagios:nagios /etc/nagios/htpasswd.users
Install nagios-plugins:
# tar xzf nagios-plugins-1.4.16.tar.gz
# cd nagios-plugins-1.4.16
# ./configure --prefix=/usr/local/nagios \
# --with-nagios-user=nagios \
# --with-nagios-group=nagios \
# --sysconfdir=/etc/nagios
# make
# make install
Configuration file syntax checking:
# /usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg
Start HTTP & nagios:
# service httpd start
# service nagios start
Testing nagios web site as following:
http://localhost/nagios
Install rrdtool:
# tar xzf rrdtool-1.4.7.tar.gz
# cd rrdtool-1.4.7
# ./configure --prefix=/usr/local/rrdtool \
# --sysconfdir=/etc/rrdtool
# make
# make install
Install PNP4nagios plugins with nagios:
# tar zvxf pnp4nagios-0.6.21.tar.gz
# cd pnp4nagios-0.6.21
# ./configure --prefix=/usr/local/pnp4nagios \
# --with-rrdtool=/usr/local/rrdtool/bin/rrdtool \
# --with-nagios-user=nagios \
# --with-nagios-group=nagios \
# --sysconfdir=/etc/pnp \
# --with-httpd-conf=/etc/httpd/conf.d
# make all
# make install
# make install-webconf
Modify pnp4nagios configuration file:
# vi /etc/httpd/conf.d/pnp4nagios.conf
AuthUserFile /etc/nagios/htpasswd.users
# make install-config
# make install-init
Integration of the PNP4Nagios and Nagios:
# vi /etc/nagios/nagios.cfg
#The corresponding part of the amended as follows: process_performance_data=1 host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata
# vi /etc/nagios/objects/commands.cfg
#The corresponding part of the amended as follows: define command{ command_name process-host-perfdata command_line /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl -d HOSTPERFDATA } define command{ command_name process-service-perfdata command_line /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl }
# vi /etc/nagios/objects/templates.cfg
#Add by Kingcraft define host{ name host-pnp register 0 action_url /pnp4nagios/graph?host=$HOSTNAME$ } define service{ name srv-pnp register 0 action_url /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$ }
PNP4Nagios display graphics in the the nagios host or service by adding host-pnp, srv-pnp, as follows:
# vi /etc/nagios/objects/localhost.cfg
define host{ use linux-server,host-pnp host_name localhost alias localhost address 127.0.0.1 } define service{ use local-service,srv-pnp host_name localhost service_description PING check_command check_ping!100.0,20%!500.0,60% }
Restart HTTP & nagios:
# service httpd restart
# service nagios restart
Delete /usr/local/pnp4nagios/share/install.php,Otherwise it can not be viewed:
# rm /usr/local/pnp4nagios/share/install.php
----------------------------------------------Note----------------------------------------------
Image files are located in:/usr/local/pnp4nagios/var/perfdata
Operating system installation package(RHEL5.8-X64-----1):http://down.51cto.com/data/753238
Operating system installation package(RHEL5.8-X64-----2):http://down.51cto.com/data/753249
Operating system installation package(RHEL5.8-X64-----3):http://down.51cto.com/data/753271
Operating system installation package(RHEL5.8-X64-----4):http://down.51cto.com/data/753311
Operating system installation package(RHEL5.8-X64-----5):http://down.51cto.com/data/753327
Operating system installation package(RHEL5.8-X64-----6):http://down.51cto.com/data/753337
Operating system installation package(RHEL5.8-X64-----7):http://down.51cto.com/data/753366
Operating system installation package(RHEL5.8-X64-----8):http://down.51cto.com/data/753375
The location of the package:http://down.51cto.com/data/750641
網(wǎng)頁(yè)題目:InstallNagios
URL地址:http://muchs.cn/article14/ieghge.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供手機(jī)網(wǎng)站建設(shè)、網(wǎng)站內(nèi)鏈、網(wǎng)站收錄、服務(wù)器托管、自適應(yīng)網(wǎng)站、營(yíng)銷型網(wǎng)站建設(shè)
聲明:本網(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)