The ogg process of a database produced some time ago was down for almost half a month before it was discovered. It could no longer be started and had to be reinitialized and synchronized. Therefore, it is necessary to monitor the ogg process. Here we will introduce how to use zabbix to monitor the oracle ogg process. The idea is to use the oracle user to check the relevant status of ogg and write the status to a temporary file for access by the zabbix user. If the ogg status is RUNNING, then the file should be an empty file. If any process is stopped or abended, then the file is not empty. The ogg status can be determined by setting a trigger to determine whether the length of the file content is greater than 0. To monitor the ogg program under the Windows platform, please see: //www.jb51.net/article/201496.htm 1. First, create a script under the oracle user to periodically write the ogg status to a temporary file
#!/bin/bash # author: yangbao source ~/.bash_profile oggdir='/u01/app/OGG_11' # input your ogg home directory echo "info all" | $oggdir/ggsci | awk '/^MANAGER|^EXTRACT|^REPLICAT/ {print $2}' | grep -v RUNNING | uniq > /tmp/tmpogg.cache exit 0
*/3 * * * * /home/oracle/scripts/checkogg.sh 2. Modify the agent configuration file
UserParameter=ogg.status,cat /tmp/tmpogg.cache $ service zabbix-agent restart 3. Add monitoring items to the web page 4. Add a trigger The above is the details of using zabbix to monitor the ogg process (Linux platform). For more information about zabbix monitoring the ogg process, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Why MySQL does not recommend deleting data
>>: HTML table tag tutorial (31): cell width and height attributes WIDTH, HEIGHT
1. Go to the official website to download the jdk...
This time we set up an rtmp live broadcast server...
Sometimes you just want to test an app but don’t ...
If there is a backup, it is very simple. You only...
MySQL is a relational database management system ...
1. Add a user . First, use the adduser command to...
The bash history command in Linux system helps to...
Preface: After studying the previous article, we ...
How to determine whether a variable is empty in s...
This article shares the specific code of the canv...
Nginx can use the limit_req_zone directive of the...
Table of contents 1. Comparison of data before an...
1. Make a repo file Refer to the official install...
Table of contents 1. Check the current status of ...
Table of contents 1. Use the uuid function to gen...