Several commonly used Linux operating system monitoring scripts

  

This article describes several commonly used Linux monitoring scripts that enable automatic monitoring and alarming of host NIC traffic, system status, host disk space, CPU and memory usage. Shell scripts written according to their own needs can better meet the needs, and can further refine the comprehensiveness of host monitoring.

AD:

Recently, friends from the Internet have asked me about server monitoring. I asked common server monitoring to use open source software, such as: cacti, nagios monitoring, whether you can write yourself What about shell scripts? Shell scripts written according to their own needs can better meet the needs, and can further refine the comprehensiveness of host monitoring.

The following are some common host monitoring scripts that I use. You can modify them according to your own situation. I hope I can give you some help.

1. View host NIC traffic

#!/bin/bash #network #Mike.Xu while : ; do time=date +%m-%d %k:%M day= Date +%m-%d rx_before=ifconfig eth0

Copyright © Windows knowledge All Rights Reserved