真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

cacti與nagios整合

1.系統(tǒng)環(huán)境
# uname -a
Linux 10-6-8-200 2.6.32-279.22.1.el6.x86_64 #1 SMP Wed Feb 6 03:10:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS release 6.3 (Final)
Nagios Stats 3.5.0
cacti-0.8.7e
2.下載包
ndoutils-1.4b9.tar.gz
npc-2.0.4.tar.gz
3.解壓編譯安裝
# tar zxf ndoutils-1.4b9.tar.gz
# cd ndoutils-1.4b9
# ./configure --prefix=/usr/local/nagios/ --sysconfdir=/usr/local/nagios/etc/ --enable-MySQL --disable-pgsql
# make
# make install ##這步可以省略
4.拷貝命令
#cp src/{ndomd-3x.o,ndo2db-3x,file2sock,log2ndo} /usr/local/nagios/bin/
5.更改命令權(quán)限
# chown nagios.nagios /usr/local/nagios/bin/ndo*
# chmod 644 /usr/local/nagios/bin/ndo*
6.編輯配置文件
# vi /usr/local/nagios/etc/ndo2db.cfg
lock_file=/usr/local/nagios/var/ndo2db.lock
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=tcp
socket_name=/usr/local/nagios/var/ndo.sock
tcp_port=5668
use_ssl=0
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=cacti
db_prefix=npc_
db_user=cacti
db_pass=xxxx
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=10080
max_hostchecks_age=10080
max_eventhandlers_age=44640
max_externalcommands_age=44640
debug_level=0
debug_verbosity=1
debug_file=/usr/local/nagios//var/ndo2db.debug
max_debug_file_size=1000000
# vi /usr/local/nagios/etc/ndomod.cfg
instance_name=default
output_type=tcpsocket
output=127.0.0.1
tcp_port=5668
use_ssl=0
output_buffer_items=5000
buffer_file=/usr/local/nagios//var/ndomod.tmp
file_rotation_interval=14400
file_rotation_timeout=60
reconnect_interval=15
reconnect_warning_interval=15
data_processing_options=-1
config_output_options=2
7.修改nagios的配置文件
# vi /usr/local/nagios/etc/nagios.cfg
event_broker_options=-1
broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg
8.修改數(shù)據(jù)庫
# mysql -ucacti -p
mysql> use catci;
mysql> alter table npc_eventhandlers add long_output TEXT NOT NULL default '' after output;
mysql> alter table npc_hostchecks add long_output TEXT NOT NULL default '' after output;
mysql>  alter table npc_hoststatus add long_output TEXT NOT NULL default '' after output;
mysql> alter table npc_notifications add long_output TEXT NOT NULL default '' after output;
mysql> alter table npc_servicechecks add long_output TEXT NOT NULL default '' after output;
mysql> alter table npc_servicestatus add long_output TEXT NOT NULL default '' after output;
mysql> alter table npc_statehistory add long_output TEXT NOT NULL default '' after output;
mysql> alter table npc_systemcommands add long_output TEXT NOT NULL default '' after output;
9.拷貝服務(wù)啟動腳本
# cp daemon-init /etc/init.d/ndo2db
# chmod +x /etc/init.d/ndo2db
# chkconfig --add ndo2db
# chkconfig --level 35 ndo2db on
# service ndo2db start
# service nagios restart
10.解壓npc,并拷貝到cacti目錄
# tar zxf npc-2.0.4.tar.gz
# mv npc/ /var/www/html/cacti/plugin/

11.打開網(wǎng)頁進(jìn)入cacti

武定ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為成都創(chuàng)新互聯(lián)公司的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書合作)期待與您的合作!

console--->Configuration--->Plugin Management--->Npc

cacti與nagios整合

cacti與nagios整合


新聞標(biāo)題:cacti與nagios整合
分享網(wǎng)址:http://weahome.cn/article/jsccjp.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部