dba:oracle:scripts:check_remote_oracle
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
check_remote_oracle [2013/10/10 17:03] – [Testing] dodger | oracle:check_remote_oracle [2018/04/27 08:55] – dodger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== [SCRIPT] Nagios check plugin for oracle ====== | ||
+ | |||
====== Description ====== | ====== Description ====== | ||
Script used as plugin for Nagios to remotely check Oracle. | Script used as plugin for Nagios to remotely check Oracle. | ||
Line 26: | Line 28: | ||
grant CONNECT, SELECT_CATALOG_ROLE to " | grant CONNECT, SELECT_CATALOG_ROLE to " | ||
</ | </ | ||
+ | |||
+ | Control specific grants: | ||
+ | * SGA: | ||
+ | <code sql> | ||
+ | GRANT SELECT ON SYS.V_$SGASTAT TO VOXELADMIN ; | ||
+ | </ | ||
+ | |||
+ | |||
For a better understand of the usage, this script will do something like: | For a better understand of the usage, this script will do something like: | ||
Line 176: | Line 186: | ||
<code SQL> | <code SQL> | ||
SELECT * FROM V$DATAGUARD_STATS WHERE NAME LIKE ' | SELECT * FROM V$DATAGUARD_STATS WHERE NAME LIKE ' | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== --redogen ==== | ||
+ | Daily REDO generation statistics. | ||
+ | Something like that: | ||
+ | <code SQL> | ||
+ | SELECT A.DAY, Round(A.COUNT# | ||
+ | FROM | ||
+ | ( | ||
+ | SELECT To_Char(First_Time,' | ||
+ | FROM v$log_history | ||
+ | GROUP BY To_Char(First_Time,' | ||
+ | ORDER BY 1 DESC | ||
+ | ) A, | ||
+ | ( | ||
+ | SELECT Avg(BYTES) AVG# | ||
+ | FROM v$log | ||
+ | ) B | ||
+ | ORDER BY DAY | ||
+ | / | ||
</ | </ | ||
dba/oracle/scripts/check_remote_oracle.txt · Last modified: 2023/01/31 08:28 by dodger