nagios监控oracle.pdf
文本预览下载声明
IImm ccaallvviinn
专专注注技技术术,,专专注注未未来来
nnaaggiiooss监监控控oorraaccllee
分类: oracle管理 20 3-08- 4 0: 2 356人阅读 评论 (0) 收藏 举报
nagios
继续接着nagios昨天的实验。
一一、、配配置置监监控控oorraaccllee服服务务器器
..安安装装nnrrppee ((略略))
下载DBI- .6 7.tar.gz,DBD-Oracle- .38.tar.gz,check_oracle_health- .6.3.tar.gz。
/CPAN/authors/id/T/TI/TIMB/DBI- .609.tar.gz
/cpan/authors/id/P/PY/PYTHIAN/DBD-Oracle- .52.tar.gz
http://labs.consol.de/wp-content/uploads/2009/09/check_oracle_health- .6.3.tar.gz
22..安安装装DDBBII
# tar -xvf /soft/DBI- .6 7.tar.gz -C /usr/src/
# cd /usr/src/DBI- .6 7/
# perl Makefile.PL
# make all make install
33..安安装装DDBBDD
# tar -xvf /soft/DBD-Oracle- .38.tar.gz -C /usr/src
# cd /usr/src/DBD-Oracle- .38/
要在shell临时设置一下ORACLE_HOME,否则编译通不过
# export ORACLE_HOME=/opt/app/oracle/product/ .2.0/db_
# perl Makefile.PL
# make make install
44..安安装装cchheecckk__oorraaccllee__hheeaalltthh命命令令
# tar -xvf check_oracle_health- .6.3.tar.gz -C /usr/src
# cd /usr/src/check_oracle_health- .6.3/
# ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-
group=nagios --with-mymodules-dir=/usr/local/nagios/libexec --with-mymodules-
dyndir=/usr/local/nagios/libexec
# make all make install
安装完后可在libexec 目录下看到这个命令了
# ll /usr/local/nagios/libexec/
total 276
-rwxrwxr-x nagios nagios 75340 Aug 4 2 :02 check_nrpe
-rwxr-xr-x root root 8472 Aug 4 23:26 check_oracle_health
在本机测试命令是否可用
# /usr/local/nagios/libexec/check_oracle_health --connect=dbtest --user=calvin --
password=calvin --mode=tnsping
CRITICAL - cannot connect to dbtest. install_driver (Oracle) failed: Cant load
/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so for module DBD::Oracle:
libclntsh.so. . : cannot open shared object file: No such file or directory at
/usr/lib64/perl5/DynaLoader.pm line 200.
at (eval 8) line 3
Compilation failed in require at (eval 8) line 3.
Compilation failed in
显示全部