Mysql-mmm-monitor Service Startup error, no compilation related Class: The Singleton package solves the following error prompts during compilation and the error resolution process; [html] www.2cto.com [root @ DB1 mmm_deps] # cd/etc/init. d/[root @ DB1 init. d] # chkconfig mysql-mmm-monitor on [root @ DB1 init. d] # service
Use the mod_status module to monitor the apache service, mod_statusapacheApache service can be monitored using the mod_status module, which is represented as LoadModule status_module modules/mod_status.so in the apache configuration file httpd. conf. Comment out the previous # to load the module. Jump to the end of the configuration file by G and add
ExtendedSta
Problem Description: Monitor whether the MySQL service starts properly, start MySQL if it does not start properlyWays to judge MySQL:1) port judgment[Email protected] ~]# Netstat-lntup | grep 3306tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2288/mysqld2) Process judgment[Email protected] ~]# Ps-ef |grep mysqld MySQL 2071 1 0 11:32?00:00:00/bin/sh/usr/bin/mysqld_safe--basedir=/usrmysql 2288 2071 0 11:32? 00:00:24/u
Shell scripts monitor Linux system nodes and service CPU memory performance
1. Obtain information
#! /Bin/bash # Description: # enter the top information into a file # Author: lone boat # version: 1.0 # Creation Time: 03: 04: 28 PATH =/bin: /sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin :~ /Binexport PATHp = 'pwd' Day = 'date + "% Y % m % d" 'host = 'hostname' for (I = 0; I
2. filter information
#
ServiceCheck process httpd with Pidfile/var/run/httpd.pidGroup ApacheStart program = "/ETC/INIT.D/HTTPD start"Stop program = "/ETC/INIT.D/HTTPD Stop"If failed host 127.0.0.1 Port 80Protocol HTTP then restartIf 5 restarts within 5 cycles then timeoutMonitoring HTTP ServicesMonitoring Custom ServicesCheck process web_lb with Pidfile/data/v20/server/web_lb/httpd.pidStart program = "/data/v20/bin/lb.sh"//Startup scriptStop program = "/data/v20/bin/lb_stop.sh"//Stop ScriptIf failed host 10.10.8.2 Po
Monitoring services, which are placed on crontab tasks, individuals do not like to use a dead loop to run in the background.So every time 3 cycles are executed, 3 cycles in a row, and any one of the services is down, the alarm will be reported.Popularize small knowledge, pay attention to redirect 3 kinds of writing, in fact, the effect is the same.#!/bin/bashnmap-p606510.31.6.6|egrep "6065/tcpopen" >/dev/nullcode1=$?nmap-p8010.31.6.6|grep "80/tcpopen http ">/dev/null2>1code2=$?curlhttp://10.31.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.