nagios監控oralce資料庫的表空間大小

2021-09-21 09:04:20 字數 1195 閱讀 2077

一、安裝nrpe

本處使用直接解壓的方式來安裝的nrpe

二、配置nrpe服務

1.修改libexec資料夾中的check_oracle

在其中新增如下項

1

2

oracle_home=/oradata/oracle/product/11.2.0

path=$path:/oradata/oracle/product/11.2.0/bin

2.在nrpe.conf中新增如下項

1

command[check_oracle_tablespace]=/usr/local/nagios/libexec/check_oracle--tablespace 監聽名 資料庫使用者 資料庫密碼 表名稱 critical報警大小 waring報警大小

重啟完nrpe會報如下錯誤

1

2

cannot connect to adpdb. ora-12154: tns:could not resolve the connect identifier

specified (dbd error: ociserverattach)

解決辦法:

出現這個問題,是許可權不足,將nagios加入到oinstall組,並重啟nrpe

1

2

3

[root@hecdb nagios]# usermod -a -g oinstall nagios

[root@hecdb nagios]# killall nrpe

[root@hecdb nagios]# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

現在就可以監控oracle了

Nagios 監控軟體

過程如下 解壓nagios tar zvxf nagios 3.2.1.tar.gz cd nagios 3.2.1 編譯 configure with command group nagcmd make all 安裝nagios,初始化指令碼及配置檔案,nagios將會被安裝至 usr local...

監控工具nagios

nagios 簡介 是乙個開源軟體,可以監控網路裝置網路流量 linux windows主機狀態,甚至可以監控印表機 它可以執行在linux上或windows上 基於瀏覽器的web介面方便運維人員檢視監控專案的狀態 支援web介面配置 管理操作 支援簡訊 郵件通知 可以自定義指令碼實現自定義化監控 ...

Nagios監控系統

三颱centos 6.5 x86 64 同一網段 主要軟體 主機一 nagios nagios 4.0.1.tar.gz nagios plugins 1.5 nrpe 2.15.tar.gz 主機二 mysql nagios plugins 1.5 nrpe 2.15.tar.gz 主機三 htt...