This script is mainly used for Zabbix monitoring system hard disk only, for Windows and Linux systems, the return value of 0 is normal, there are several partitions of hard disk remaining less than 10G or less than 10% is the alarm threshold (except for Windows C-drive and Linux root partition):
Copy the Code code as
The main contents of this section:Use shell scripts to monitor the load, CPU, memory, hard disk, and user logins of Linux systems.One, Linux system alarm mail script# vim/scripts/sys-warning.sh#!/bin/bash#site:www.jquerycn.cn# Monitoring System load and CPU, memory, hard disk
I. Finding problems
The phenomenon is more common, the crash is frequent, and open chrome has been the core of the IDE must be frozen. Initially thought it was a 10.9 system problem, and later came to think of the problem of memory or hard disk.
An artifact on the Web: TechTool
If you do not trust your hard drive can also go to test the results of the test:
S
the scope of application is different.Suddenly, a bright light came in, the eyes of the two people stabbed compelled, the original day has been big bright, the owner opened the folder, selected Hello.java and hello.py, and then did a strange operation.Java and Python only felt dizzy, and in a twinkling they were carried to a place where rubbish was everywhere.The shaggy-haired C-man sat on an ebook called "C and the hands" and said to them, "Hello, Welcome to the
I found that I really love it. In the past, a FC5 gave me the LINUX boot information when I re-installed XP, and I simply re-installed one. Install Ubuntu7.04 on FTP. But I have no optical drive on my computer, so it is slow to install it on the Internet. Find the hard disk installation method on the Internet. I tried it successfully. Let me talk about the installation method. I found it on the Internet. Ub
(1)/boot partition (not required): The/boot partition is used to boot the system, which contains the kernel of the operating system and the files to be used during the startup of the system.The size of the partition is typically 100MB.
(2) Swap partition: The function of swap is to act as virtual memory, which is usually about twice times the size of physical memory (when the physical memory is greater than 512MB, the swap partition is 512MB).For example, the physical memory is 128MB, then the
configurations are fine. When selecting the image source, you must note that when the image is placed in the NTFS partition, even if you enter the correct path, the installation will still prompt No repository found, so that you cannot continue to install the system. Run the following command to fix the installation bug: roll back to the Expert mode, select shell, and run the following command to continue the installation.
OpenSUSE 11.3 hard
Install Ubuntu 3 on a hard disk in Windows-configure the android development environment and common settings in ubuntuRelated links:Install Ubuntu on a hard disk in Windows-install Ubuntu11.10http in XP: // www.bkjia.com/ OS /201205/130282.html;Ubuntu II for Windows hard dri
It is an effective way to prevent virus and maintain computer security to strengthen safety consciousness and enhance the management of computer. Many effective measures are listed below:
Establish sound rules and regulations and strictly manage the use of computer systems.
To strengthen the education of computer virus and its harmfulness to the staff. thereby consciously enhance the awareness of anti-virus.
The computer in the important department should be specially dedicated. Don't use a f
[email protected]: ~$ cat warning.sh#!/bin/bash#监控系统负载与CPU, memory, hard disk, number of logged on users, out of alert to send an email alarm. Prerequisites for installing the Mail Service [email protected] #提取本服务器的IP地址信息ip= ' ifconfig eth0 | grep "inet addr" | cut-f 2-d ":" | Cut-f 1-d "" ' # 1, monitoring system load changes, out-of-the-time email alerts: #抓取cp
permission chown mysql: mysql * to start mysql.
18. confirm that the startup is successful.
19. run/usr/local/mysql/bin/mysql_install_db -- datadir =/opt/mysql/data -- user = mysql.
20. generally, after the modification, the service mysql start cannot be started./usr/bin/mysqld_safe
Note:
1. configure chown-R mysql: Directory modified by mysql for jdk executable permissions
2. mount the
Using http://www.weiruoyu.cn/?p=368Shell script monitors hard disk space remaining space email alerts1. First look at the disk, and how to use the script
[[emailprotected]~]#df-h
File System capacity used available used% mount point
/dev/mapper /volgroup00-logvol00
8.9g2.6g5.9g31% /
/dev/sda1 99m13m82m13%/boot
tmpfs 188M
HDD Auto Format/dev/sdb:1, list all the disks on the current system, let the user choose, if you choose Quit to quit the script, if the user chooses the error, let the user choose again;2, when the user selects, remind the user to confirm that the next operation may damage the data, and ask the user to confirm; if the user chooses Y to continue, n exits; otherwise, let the user re-select;3. Erase all partitions on the hard drive (prompt, erase all par
In the era of the Internet where viruses are rampant, in the school data centers operated by the "explorer", the system maintainer often inevitably starts the computer to DOS, detects viruses, and repairs faults, or use ghost for cloning or recovery.
For Windows 98, you can press F8 to enter DoS at startup, but for Windows 2000 (Windows XP or Windows 2003), can you choose not to use a floppy disk or a CD, boot from
Lnmp how to disable mysql log Protection hard disk space LNMP
BitsCN.com
Today, we found that the VPS hard disk is almost full. The first reaction is: it must have been caused by a log file of something, because it had similar experience in WINDOWS before.
After analysis, find the reason: MYSQL log file.
You can al
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.