Using zabbix to monitor the ogg process (Linux platform)

Using zabbix to monitor the ogg process (Linux platform)

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

$ su - oracle
$ mkdir scripts
$ cd scripts
$ vi checkogg.sh

#!/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

$ chmod +x checkogg.sh

$ crontab –l

*/3 * * * * /home/oracle/scripts/checkogg.sh

2. Modify the agent configuration file

$ su - root
$ cd /etc/zabbix/zabbix_agentd.d
$ vi userparameter_ogg.conf

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:
  • Using zabbix to monitor the ogg process (Windows platform)
  • Detailed explanation of monitoring Jenkins process based on zabbix
  • Detailed explanation of the process of Zabbix active, passive and web monitoring in distributed monitoring system
  • Distributed monitoring system Zabbix uses SNMP and JMX channels to collect data
  • Detailed explanation of Zabbix monitoring SQL Server service status
  • How to monitor mysql using zabbix
  • Detailed tutorial for upgrading zabbix monitoring 4.4 to 5.0
  • Detailed steps for adding hosts you need to monitor in zabbix
  • Example code for configuring monitoring items and aggregated graphics in Zabbix

<<:  Why MySQL does not recommend deleting data

>>:  HTML table tag tutorial (31): cell width and height attributes WIDTH, HEIGHT

Recommend

Detailed explanation of Nginx rewrite jump application scenarios

Application scenario 1: Domain name-based redirec...

Make a nice flip login and registration interface based on html+css

Make a nice flip login and registration interface...

Solve the MySQL login 1045 problem under centos

Since the entire application needs to be deployed...

Docker starts Redis and sets the password

Redis uses the apline (Alps) image of Redis versi...

How to build an ELK log system based on Docker

Background requirements: As the business grows la...

mysql8.0.11 winx64 manual installation and configuration tutorial

First of all, let me talk to you about my daily l...

Detailed steps to install web server using Apache httpd2.4.37 on centos8

Step 1: yum install httpd -y #Install httpd servi...

Nginx configuration to achieve multiple server load balancing

Nginx load balancing server: IP: 192.168.0.4 (Ngi...

MySQL time type selection

Table of contents DATETIME TIMESTAMP How to choos...

Detailed explanation of how to cleanly uninstall Docker

First, the server environment information: Reason...

Detailed explanation of mysql execution plan id is empty (UNION keyword)

Introduction During the work process, slow querie...

Summary of 3 ways to lazy load vue-router

Not using lazy loading import Vue from 'vue&#...

CSS Pick-up Arrows, Catalogs, Icons Implementation Code

1. CSS Miscellaneous Icons There are three ways t...

Detailed tutorial on Docker pulling Oracle 11g image configuration

Without further ado Start recording docker pullin...