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

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

nagios插件ndoutile的使用方法

本篇內(nèi)容介紹了“nagios插件ndoutile的使用方法”的有關(guān)知識(shí),在實(shí)際案例的操作過(guò)程中,不少人都會(huì)遇到這樣的困境,接下來(lái)就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!

創(chuàng)新互聯(lián)建站主要為客戶提供服務(wù)項(xiàng)目涵蓋了網(wǎng)頁(yè)視覺(jué)設(shè)計(jì)、VI標(biāo)志設(shè)計(jì)、網(wǎng)絡(luò)營(yíng)銷推廣、網(wǎng)站程序開(kāi)發(fā)、HTML5響應(yīng)式重慶網(wǎng)站建設(shè)公司、成都做手機(jī)網(wǎng)站、微商城、網(wǎng)站托管及成都網(wǎng)站改版、WEB系統(tǒng)開(kāi)發(fā)、域名注冊(cè)、國(guó)內(nèi)外服務(wù)器租用、視頻、平面設(shè)計(jì)、SEO優(yōu)化排名。設(shè)計(jì)、前端、后端三個(gè)建站步驟的完善服務(wù)體系。一人跟蹤測(cè)試的建站服務(wù)標(biāo)準(zhǔn)。已經(jīng)為塔吊租賃行業(yè)客戶提供了網(wǎng)站營(yíng)銷推廣服務(wù)。

cmake安裝
./bootstrap ; make ; make install

MySQL安裝
cmake \  
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \  
-DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock \  
-DDEFAULT_CHARSET=utf8 \  
-DDEFAULT_COLLATION=utf8_general_ci \  
-DWITH_INNOBASE_STORAGE_ENGINE=1 \  
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \  
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \  
-DMYSQL_DATADIR=/data/mysqldb \  
-DMYSQL_TCP_PORT=3306 \  
-DENABLE_DOWNLOADS=1

make && make install

chown mysql:mysql /usr/local/mysql/ -R
chown mysql:mysql /data/mysqldb/ -R
scripts/mysql_install_db --user=mysql --datadir=/data/mysqldb
service mysqld start
啟動(dòng)報(bào)錯(cuò)
The server quit without updating PID file ([FAILED]sqldb/nagios.pid)
解決辦法,查看日志。pid進(jìn)程是否存在。、

wget http://www.cpan.org/modules/by-module/DBD/DBI-1.634.tar.gz
wget http://www.cpan.org/modules/by-module/DBD/DBD-mysql-4.033.tar.gz

cd DBI-1.605
perl Makefile.PL
make
make install


cd DBD-mysql-3.0008
unset LANG
perl Makefile.PL --libs="-L/usr/local/mysql/bin/mysql -lmysqlclient -L/usr/lib -lz" --cflags=-I/usr/local/mysql/include/mysql --mysql_config=/usr/local/mysql/bin/mysql_config --testhost=127.0.0.1 --
testsocket=/usr/local/mysql/tmp/mysql.sock --testdb=nagios --testuser=root --testpassword=123456    :有問(wèn)題 沒(méi)繼續(xù)
make
make install


cd /usr/local/include 
# ln -s /usr/local/mysql/include/mysql ./mysql  
# cd /usr/lib64
# ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so ./libmysqlclient.so 
# ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.16\


./configure --prefix=/usr/local/nagios --enable-mysql --disable-pgsql LDFLAGS=-L/usr/local/mysql/lib --with-mysql-inc=/usr/local/mysql/include/mysql --with-mysql-lib=/usr/local/mysql/lib/mysql
make

cp ./src/ndomod-3x.o /usr/local/nagios/bin
cp ./src/ndo2db-3x /usr/local/nagios/bin
cp ./src/log2ndo /usr/local/nagios/bin
cp ./src/file2sock /usr/local/nagios/bin
chown nagios:nagios /usr/local/nagios/bin/*


# cp ./config/ndo* /usr/local/nagios/etc/
# chown nagios:nagios /usr/local/nagios/etc/*


mysql -uroot -p
mysql> create database ndodb;
mysql> GRANT SELECT,INSERT,UPDATE,DELETE ON nagios.* TO nagios@localhost IDENTIFIED BY '123456';
mysql> flush privileges;
mysql> \q
生成ndoutils所需要的數(shù)據(jù)庫(kù)
cd db
./installdb -u n root -p 123456 -h localhost -d ndodb
也可這樣:# /opt/mysql/bin/mysql -u root -p -D nagios -h localhost < ./db/mysql.sql

vi /usr/local/nagios/etc/ndo2db.cfg
db_user=nagios
db_pass=123456

vi /usr/local/nagios/etc/nagios.cfg
broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg
event_broker_options=-1

/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg

“nagios插件ndoutile的使用方法”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí)可以關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!


文章名稱:nagios插件ndoutile的使用方法
網(wǎng)站路徑:http://weahome.cn/article/ggccpo.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部