Linux monitoring (added)

Source: Internet
Author: User

Task at a certain time

For user in $ (cat/etc/passwd | cut-f1-d:);d o crontab-l-u $user;d One

Does a user perform a hidden scheduled task? If a task is being backed up


Two networks

sysctl-a | grep xx View network kernel parameter information

Ss-s Show all existing connections

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7F/B5/wKioL1cp8piDjHQTAAAmyIvqwKo580.png "title=" Qq20160504205722.png "alt=" Wkiol1cp8pidjhqtaaamyivqwko580.png "/>

Cat/proc/interrupts See if the interrupt request is evenly distributed to the CPU, or is there a CPU core overloaded by a large number of network interrupt requests or RAID requests?

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7F/B7/wKiom1cp8pqx4BbVAABsML1AXj0191.png "title=" Qq20160504210033.png "alt=" Wkiom1cp8pqx4bbvaabsml1axj0191.png "/>The explanations are as follows:
16:6121 6216 io-apic-fasteoi uhci_hcd:usb5, HDA Intel, nvidia
Interrupt number 16 interrupt port, in response to 6,121 interrupts on the cpu0, in response to 6,216 interrupts on the CPU1, the link on the interrupt list on this port device interface is IO-APIC-FASTEOI, the interrupt number is the device named UHCI_HCD:USB5, HDA Intel, Nvidia's several devices are shared.

Three-core message

$ dmesg

$ less/var/log/messages

$ less/var/log/secure

$ less/var/log/auth


    • Review the error and warning messages, such as see if there is a lot of connections caused by too many?

    • See if there is a hardware error or a file system error?

    • Analyze whether these error events can be compared to the previously discovered suspects in time.

4. Disk

sar-d 2 Check the disk's busy level

IOSTAT-KX 2 Check the disk's busy level

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7F/B7/wKiom1cp9qmhnsQUAABJjCZVOsY425.png "style=" float: none; "title=" Qq20160504211729.png "alt=" Wkiom1cp9qmhnsquaabjjczvosy425.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7F/B5/wKioL1cp93-Twf-JAAA6TuM4igA369.png "style=" float: none; "title=" Qq20160504211744.png "alt=" Wkiol1cp93-twf-jaaa6tum4iga369.png "/>

Dstat--top-io--top-bio

See which program is using disk

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7F/B5/wKioL1cp9_7TwK1PAAAvzYiNNko688.png "title=" Qq20160504212011.png "alt=" Wkiol1cp9_7twk1paaavzyinnko688.png "/>

Dstat similar to Vmstat can also view disk read and write situations, network transmission, paging and system interrupts, context switching

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7F/B5/wKioL1cp-C-TYqzPAAA3qFQggMk356.png "title=" Qq20160504212114.png "alt=" Wkiol1cp-c-tyqzpaaa3qfqggmk356.png "/>

For more information, refer to: http://chengeng29.blog.51cto.com/1264594/1769959

Linux monitoring (added)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.