1. 底層支持庫(圖形顯示的依賴) yum install -y cairo pango zlib zlib-devel freetype freetype-devel gd gd-devel
創(chuàng)新互聯(lián)公司專業(yè)為企業(yè)提供澄城網(wǎng)站建設(shè)、澄城做網(wǎng)站、澄城網(wǎng)站設(shè)計(jì)、澄城網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)與制作、澄城企業(yè)網(wǎng)站模板建站服務(wù),十載澄城做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
2. RRDTOOLS的支持軟件libart_lgpl
yum install libart_lgpl
或者編譯安裝libart_lgpl-2.3.17
重要步驟:
cp -r libart-2.0 /usr/include/
3. 安裝rrd-tools
./configure --prefix=/usr/local/rrdtool --disable-python --disable-tcl
4. 安裝PNP
./configure --with-rrdtool=/usr/local/rrdtool/bin/rrdtool ----->真正出圖的命令
--with-perfdata=/usr/local/nagios/share/perfdata ----->出圖所用的數(shù)據(jù)路徑
WARNING: The RRDs Perl Modules are not found on your System
Using RRDs will speedup things in larger Installtions.
警告不用理會。
詳細(xì)安裝記錄:
978 ./configure --with-rrdtool=/usr/local/rrdtool/bin/rrdtool --with-perfdata=/usr/local/nagios/share/perfdata
979 make all
980 make install
981 make install-config
982 make install-init
5. 至此,PNP及相關(guān)NAGIOS圖形安裝完畢
6. 配置command.cfg
# 'process-host-perfdata' command definition
define command{
command_name process-host-perfdata
command_line /usr/local/nagios/libexec/process_perfdata.pl
}
# 'process-service-perfdata' command definition
define command{
command_name process-service-perfdata
command_line /usr/local/nagios/libexec/process_perfdata.pl
}
7. 整合nagios和pnp的web顯示頁面
編輯host.cfg添加action_url 參數(shù) 或者編輯模板文件templates.cfg
action_url /nagios/pnp/index.php?host=$HOSTNAME$
再次整合services
/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
文章名稱:安裝NAGIOS圖形(PNP)
鏈接分享:http://www.rwnh.cn/article16/jgjjgg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈、網(wǎng)站制作、網(wǎng)站維護(hù)、營銷型網(wǎng)站建設(shè)、虛擬主機(jī)、Google
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)