使用nagios監控oracle
一、增加使用者並設定密碼
#useradd nagios
#passwd nagios
二、安裝nagios外掛
[@more@]上傳nagios-plugins外掛
解壓縮
tar -zxvf nagios-plugins-1.4.14.tar.gz
cd nagios-plugins-1.4.14
編譯安裝
./configure
make
make install
這一步完成後會在/usr/local/nagios/下生成兩個目錄libexec和share
#ls /usr/local/nagios/
修改目錄許可權
#chown nagios.nagios /usr/local/nagios
#chown -R nagios.nagios /usr/local/nagios/libexec
安裝nrpe
上傳nrpe-2.12.tar.gz
解壓縮
#tar -zxvf nrpe-2.12.tar.gz
#cd nrpe-2.12
編譯安裝
#./configure
#make all
安裝check_nrpe這個外掛
#make install-plugin
安裝deamon
#make install-daemon
安裝配置檔案
#make install-daemon-config
安裝xinetd指令碼
make install-xinetd
編輯這個指令碼
vi /etc/xinetd.d/nrpe
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios -->修改為oracle使用者
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1在後面增加監控主機的地址10.30.1.82,以空格間隔
}
編輯/etc/services檔案,增加NRPE服務
#vi /etc/services
nrpe 5666/tcp # nrpe
重啟xinetd服務
#service xinetd restart
檢視NRPE是否已經啟動
#netstat -at|grep nrpe
#netstat -an|grep 5666
測試NRPE是否則正常工作
#/usr/local/nagios/libexec/check_nrpe -H localhost
會返回當前NRPE的版本
NRPE v2.8.1
編輯nrpe.cfg增加如下命令使其可以監控oracle
command[check_oracle_tns]=/usr/local/nagios/libexec/check_oracle --tns orcl
command[check_oracle_db]=/usr/local/nagios/libexec/check_oracle --db orcl
command[check_oracle_login]=/usr/local/nagios/libexec/check_oracle --login orcl
command[check_oracle_cache]=/usr/local/nagios/libexec/check_oracle --cache orcl system oracle 80 90
command[check_oracle_tablespace]=/usr/local/nagios/libexec/check_oracle --tablespace orcl system oracle EXAMPLE 90 80
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/73920/viewspace-1038490/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- nagios監控例項 -- PostgreSQL監控iOSSQL
- Nagios使用check_mysql監控mysqliOSMySql
- nagios-新增oracle資料庫監控iOSOracle資料庫
- nagios批量新增監控iOS
- nagios的配置(監控端和被監控端)iOS
- nagios監控例項 -- Windows伺服器監控iOSWindows伺服器
- 運維監控利器nagios運維iOS
- Nagios 監控ESXI指令碼iOS指令碼
- Nagios監控系統搭建iOS
- Nagios主動監控oracle資料庫check_oracle_healthiOSOracle資料庫
- 使用Nagios打造專業的業務狀態監控iOS
- nagios監控華為5700交換機iOS
- nagios監控drbd同步狀態iOS
- Nagios for Aix監控客戶端iOSAI客戶端
- 將Nagios監控資訊存入MySQLiOSMySql
- nagios監控例項 -- 伺服器基本狀況監控iOS伺服器
- nagios監控linux主機監控記憶體指令碼iOSLinux記憶體指令碼
- Nagios監控lvs服務iOS
- nagios監控 ogg同步狀態iOS
- nginx下搭建nagios監控環境NginxiOS
- nagios-新增記憶體監控iOS記憶體
- nagios監控頻寬外掛薦iOS
- MySQL伺服器部署nagios監控MySql伺服器iOS
- ORACLE 監控索引的使用Oracle索引
- Cacti+Nagios監控平臺完美整合iOS
- nagios監控linux磁碟io的bugiOSLinux
- nagios監控流量大小的外掛iOS
- linux效能監控工具——NAGIOS和OVOLinuxiOS
- Oracle Undo使用情況監控Oracle
- 監控Oracle索引是否被使用?Oracle索引
- Nagios 裡面監控MySQL 監控事務夯住(RUNNING)報警通知iOSMySql
- Nagios+Centreon監控系統簡介iOS
- centos7 nagios 配置被動模式監控CentOSiOS模式
- Nagios+Cacti監控平臺完美整合部署iOS
- nagios監控windows 報NSClient - ERROR: Invalid passwordiOSWindowsclientError
- nagios-監控端的localhost.cfg配置iOSlocalhost
- nagios-建立記憶體監控指令碼iOS記憶體指令碼
- Nagios 監控系統架設全攻略iOS