In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you the "sample analysis of mrtg hard disk read and write monitoring in Ubuntu", which is easy to understand and well-organized. I hope it can help you solve your doubts. Let the editor lead you to study and study the "sample analysis of mrtg hard disk read and write monitoring in Ubuntu".
Ubuntu has always supported the mainstream i386, AMD64 and PowerPC platforms, so most PC users can install the corresponding Ubuntu version on their computers.
Hard disk read and write monitoring [collection every 5 minutes by default]
Ubuntu mrtg switches to superuser:
Sudo-sH
Ubuntu mrtg set up a hard disk read-write script:
Mkdir / opt/mrtg
Vim / opt/mrtg/mrtg.disk
#! / bin/bash
Hd=sda
Disk=/dev/$hd
UPtime= `/ usr/bin/uptime | awk'{print $3 "" $4 "" $5}'`
KBread_sec= `iostat-x $disk | grep $hd | awk'{print 8 $}'`
KBwrite_sec= `iostat-x $disk | grep $hd | awk'{print 9 $}'`
Echo $KBread_sec
Echo $KBwrite_sec
Echo $UPtime
Hostname
Ubuntu mrtg enables scripts to execute:
Chmod + 755 / opt/mrtg/mrtg.disk
Modify / etc/mrtg.cfg to add hard disk read and write to file *
Target [disk]: `/ opt/mrtg/ mrtg.disk`
Title [disk]: Disk HDA I/O Utilization Report
# Unscaled [disk]: dwym
MaxBytes [disk]: 10240000
PageTop [disk]: Disk I/O Utilization Report
Kmg [disk]: KB,MB,GB
LegendI [disk]: Disk I/O KBread/sec
LegendO [disk]: Disk I/O KBwrite/sec
Legend1 [disk]: Disk I/O KBread/sec
Legend2 [disk]: Disk I/O KBwrite/sec
YLegend [disk]: Megabytes
ShortLegend [disk]: &
Options [disk]: growright,gauge,nopercent
Rebuild the index page:
Indexmaker / etc/mrtg.cfg > / var/www/mrtg/index.html
Visit:
Http://localhost/mrtg/
The above is all the contents of the article "sample Analysis of mrtg hard disk read and write Monitoring in Ubuntu". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.