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
In the actual project development process, the pag...
Application scenario 1: Domain name-based redirec...
Make a nice flip login and registration interface...
Since the entire application needs to be deployed...
Redis uses the apline (Alps) image of Redis versi...
Background requirements: As the business grows la...
First of all, let me talk to you about my daily l...
Step 1: yum install httpd -y #Install httpd servi...
Nginx load balancing server: IP: 192.168.0.4 (Ngi...
Table of contents DATETIME TIMESTAMP How to choos...
First, the server environment information: Reason...
Introduction During the work process, slow querie...
Not using lazy loading import Vue from 'vue...
1. CSS Miscellaneous Icons There are three ways t...
Without further ado Start recording docker pullin...