您好,登錄后才能下訂單哦!
1. 底層支持庫(圖形顯示的依賴) yum install -y cairo pango zlib zlib-devel freetype freetype-devel gd gd-devel
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$
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。