Function:
Monitor the MySQL process, the failure is restarted, if unable to start the email notification
The code is as follows:
The code is as follows
Copy Code
#!/bin/bash#/usr/bin/nmap localhost | grep 3306#lsof-i:3306mysqlport= ' Netstat-na|grep ' LISTEN "|grep" 3306″|awk-f[: ""]+ ' {print $} ' function Checkmysqlstatus () {/usr
When submitting svn, you will be notified by email about the problem solving experience and svn email notification.Svn can use the hook function to Send comment/log and content change comments to a specified email address when submitting a commit request, so that you can monitor the content conveniently.The specific de
. Therefore, place the script in the directory required by the prompt and directly perform the mv:
Mv/usr/bin/zabbix2014/usr/local/zabbix/scripts/zabbix2014
Then you will see the new alarm PROBLEM information. The email has been sent out, for example:
9.2 Change the email address to 139 mailbox, and implement the free SMS alarm function.
Go to the directory,AdministrationUsers Zabbix administrators Users
Step1. install Sendmail to send an email
# Yum-y install sendmail
#/Etc/init. d/sendmail start
# Chkconfig Sendmail on
Step2. install the email client
# Yum-y install mutt
2.1 Add the sender information as follows:
# Vim/etc/muttrc
Set charset = "UTF-8" # Set email Encoding
Set envelope_from = Yes
Set rfc2047_parameters = yes # solve the attachment garbled Probl
Monitor whether the host can ping the script-general Linux technology-Linux programming and kernel information. The following is a detailed description. :) Shell is a beginner. a script that just compiled to monitor whether the host can be pinged. If a host cannot be pinged, send an email and record it. If the host can
SVN server, you can ping the mail server immediately after the configuration, but you still cannot receive the message.Operations colleagues at this time and leisurely start to see the SVN server SendMail service is correct, sure enough, the mail service of this machine is not started, can not send/receive any mail, so start the mail service, and then ... Messages that have not been sent before have been delayed and are being sent as a snowflake.This
I have contributed a script to monitor the MYSQL process. I hope it will be helpful to you.
Function:
Monitors the MYSQL process and restarts upon failure. If the MYSQL process fails to be started, an Email notification is sent.
The Code is as follows:
#! /Bin/bash
#/Usr/bin/nmap localhost | grep3306
# Lsof-I:3306
MYSQLPORT = 'netstat-na | grep"LISTEN"| Grep
This article is an example of how Android monitors phone status and sends email notification calls. Share to everyone for your reference, specific as follows:
You can use Phonestatelistener to listen to mobile phone status (e.g. standby, call, Bell, etc.) on Android. This example is through it to monitor mobile phone status, when the phone calls, through the mai
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.