91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

nagios圖像(nagiosgraph)(未成)

發布時間:2020-05-24 20:30:36 來源:網絡 閱讀:768 作者:yangzhimingg 欄目:移動開發

 

nagios圖像(nagiosgraph)(未成)


http://cdnetworks-kr-1.dl.sourceforge.net/project/nagiosgraph/nagiosgraph/1.4.4/nagiosgraph-1.4.4.tar.gz

 http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rrdtool-1.2.18-1.el5.rf.i386.rpm (32位)
http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/perl-rrdtool-1.2.18-1.el5.rf.i386.rpm

http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rrdtool-1.2.18-1.el5.rf.x86_64.rpm  (64位)
http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/perl-rrdtool-1.2.18-1.el5.rf.x86_64.rpm


# rpm -ivh rrdtool-1.2.18-1.el5.rf.i386.rpm

# rpm -ivh perl-rrdtool-1.2.18-1.el5.rf.i386.rpm

#tar zxf nagiosgraph-1.4.4.tar.gz

# cd nagiosgraph-1.4.4

# perl Makefile.PL

# vi install.pl


把所有的www-data改成nobody   (web的用戶)

:wq

# make && make install     

第一個路徑改為/usr/local/nagios/nagiosgraph其它直接回車

# cd /usr/local/nagios/nagiosgraph/etc

# cp nagiosgraph-apache.conf /usr/local/apache/conf

# vi /usr/local/apache/conf/httpd.conf

Include conf/nagiosgraph-apache.conf

:wq

# service httpd restart


# vi /usr/local/nagios/etc/nagios.cfg

service_perfdata_file=/usr/local/nagios/nagiosgraph/var/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata

process_performance_data=1 (原為0)

:wq

 

# cp cgi/*.cgi    /usr/local/nagios/sbin

# cp bin/insert.pl /usr/local/nagios/libexec

# cp share/nagios/graph.css  /usr/local/nagios/share

# cp share/nagiosgraph.js    /usr/local/nagios/share

 

# vi /usr/local/nagios/etc/objects/commands.cfg

# 'process-host-perfdata' command definition
define command{
        command_name    process-host-perfdata
        command_line    /usr/local/nagios/libexec/insert.pl
        }
# 'process-service-perfdata' command definition
define command{
        command_name    process-service-perfdata
        command_line    /usr/local/nagios/libexec/insert.pl
        }

:wq


 

注:要注釋掉原有對process-service-perfdata和process-host-perfdata的定義
 

# vi /usr/local/nagios/etc/objects/yang.cfg

為主機添加小太陽圖標

# vi /usr/local/nagios/etc/objects/yang.cfg


define host {
use       linux-server
host_name    yang
address      192.168.1.10
action_url  /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$
}

:wq


為單個服務添加小太陽圖標

# vi /usr/local/nagios/etc/objects/yang.cfg

define service {
use        generic-service
host_name   yang
service_description      check_load
check_command       check_nrpe!check_load
normal_check_interval     2
action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&srv=$SERVICEDESC$

}

:wq


重啟nagios

# service nagios restart

 # ls /usr/local/nagios/nagiosgraph/var/rrd     (看有沒有生成nagios中定義的主機名文件)

注:我做的沒有生成主機名文件,沒有生成圖表,原因還在研究中

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

泗水县| 宁河县| 涡阳县| 印江| 托里县| 西宁市| 长宁县| 鱼台县| 长沙县| 光泽县| 阜城县| 罗田县| 甘孜| 金乡县| 石柱| 铁力市| 肇庆市| 黑河市| 乐陵市| 崇州市| 正宁县| 当雄县| 原平市| 富裕县| 宁阳县| 方正县| 虹口区| 安阳市| 浙江省| 阳泉市| 乐都县| 清新县| 茶陵县| 乳源| 桑植县| 遂昌县| 游戏| 万源市| 密山市| 吴川市| 新沂市|