﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-finer-随笔分类-4.配置运维 监控工具</title><link>http://www.blogjava.net/zouhui/category/53946.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 21 Dec 2016 19:31:46 GMT</lastBuildDate><pubDate>Wed, 21 Dec 2016 19:31:46 GMT</pubDate><ttl>60</ttl><item><title>BWM-NG 监控网络带宽和磁盘IO的小利器 </title><link>http://www.blogjava.net/zouhui/archive/2014/03/26/411513.html</link><dc:creator>zouhui</dc:creator><author>zouhui</author><pubDate>Wed, 26 Mar 2014 07:33:00 GMT</pubDate><guid>http://www.blogjava.net/zouhui/archive/2014/03/26/411513.html</guid><wfw:comment>http://www.blogjava.net/zouhui/comments/411513.html</wfw:comment><comments>http://www.blogjava.net/zouhui/archive/2014/03/26/411513.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zouhui/comments/commentRss/411513.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zouhui/services/trackbacks/411513.html</trackback:ping><description><![CDATA[<h1><a id="cb_post_title_url" href="http://www.cnblogs.com/jankie/archive/2011/06/14/2080623.html">BWM-NG 监控网络带宽和磁盘IO的小利器</a>		 </h1><div><div id="cnblogs_post_body"><span style="color: #000080;" color="#000080">安装 bwm-ng </span><br /><br />官网： <strong><a href="http://www.gropp.org/bwm-ng/" target="_blank">http://www.gropp.org/</a></strong><br /><ul><li><span style="color: #333333;" color="#333333"><strong>cd /usr/src<br />wget <a href="http://www.gropp.org/bwm-ng/bwm-ng-0.6.tar.gz" target="_blank">http://www.gropp.org/bwm-ng/bwm-ng-0.6.tar.gz</a><br />tar zxvf bwm-ng-0.6.tar.gz<br />cd bwm-ng-0.6<br />./configure &amp;&amp; make &amp;&amp; make install</strong></span></li></ul>1.监控网络：<br /><div id="code0"><li>bwm-ng -u bits -d</li><li>bwm-ng -u bytes -d</li></div><br /><br />2.监控磁盘IO<br /><div><div id="code1">bwm-ng -u bytes&nbsp;&nbsp;-i disk</div></div><a title="2011-5-11 9-39-24.png 下载次数:0" href="http://bbs.linuxtone.org/forum-attachment-aid-MjU0M3w1Nzc2MTY3OXwxMzA4MDMxMjAxfDk0NTU%3D-nothumb-yes.html" target="_blank"><strong>下载附件</strong> (21.76 KB)</a> </div></div><br /><br /># bwm-ng --help&nbsp; &nbsp;//更详细的使用大家一起挖掘<br />Bandwidth Monitor NG (bwm-ng) v0.6<br />Copyright (C) 2004-2007 Volker Gropp &lt;<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#98;&#119;&#109;&#110;&#103;&#64;&#103;&#114;&#111;&#112;&#112;&#46;&#111;&#114;&#103;">bwmng@gropp.org</a>&gt;<br />USAGE: bwm-ng [OPTION] ... [CONFIGFILE]<br />displays current ethernet interfaces stats<br /><br />Options:<br />&nbsp;&nbsp;-t, --timeout &lt;msec&gt;&nbsp; &nbsp; displays stats every &lt;msec&gt; (1msec = 1/1000sec)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;default: 500<br />&nbsp;&nbsp;-d, --dynamic [value]&nbsp; &nbsp;show values dynamicly (Byte KB or MB)<br />&nbsp;&nbsp;-a, --allif [mode]&nbsp; &nbsp;&nbsp; &nbsp;where mode is one of:<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;0=show only up (and selected) interfaces<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;1=show all up interfaces (default)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;2=show all and down interfaces<br />&nbsp;&nbsp;-I, --interfaces &lt;list&gt; show only interfaces in &lt;list&gt; (comma seperated), or<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if list is prefaced with % show all but interfaces<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;in list<br />&nbsp;&nbsp;-S, --sumhidden [value] count hidden interfaces for total<br />&nbsp;&nbsp;-A, --avglength &lt;sec&gt;&nbsp; &nbsp;sets the span of average stats (Default 30s)<br />&nbsp;&nbsp;-D, --daemon [value]&nbsp; &nbsp; fork into background and daemonize<br />&nbsp;&nbsp;-h, --help&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;displays this help<br />&nbsp;&nbsp;-V, --version&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;print version info<br /><br />Input:<br />&nbsp;&nbsp;-i, --input &lt;method&gt;&nbsp; &nbsp; input method, one of: proc netstat disk<br />&nbsp;&nbsp;-f, --procfile &lt;file&gt;&nbsp; &nbsp;filename to read raw data from. (/proc/net/dev)<br />&nbsp; &nbsp;&nbsp; &nbsp;--diskstatsfile &lt;file&gt; filename to read diskstats (Linux 2.6+) from. (/proc/diskstats)<br />&nbsp; &nbsp;&nbsp; &nbsp;--partitionsfile &lt;file&gt; filename to read diskstats (Linux 2.4) from. (/proc/partitions)<br /><br />Output:<br />&nbsp;&nbsp;-o, --output &lt;method&gt;&nbsp; &nbsp;output method, one of: <br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;plain, curses, curses2, csv, html<br />&nbsp;&nbsp;-u, --unit &lt;value&gt;&nbsp; &nbsp;&nbsp; &nbsp;unit to show. one of bytes, bits, packets, errors<br />&nbsp;&nbsp;-T, --type &lt;value&gt;&nbsp; &nbsp;&nbsp; &nbsp;type of stats. one of rate, max, sum, avg<br />&nbsp;&nbsp;-C, --csvchar &lt;char&gt;&nbsp; &nbsp; delimiter for csv<br />&nbsp;&nbsp;-F, --outfile &lt;file&gt;&nbsp; &nbsp; output file for csv and html (default stdout)<br />&nbsp;&nbsp;-R, --htmlrefresh &lt;num&gt; meta refresh for html output<br />&nbsp;&nbsp;-H, --htmlheader&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;show &lt;html&gt; and &lt;meta&gt; frame for html output<br />&nbsp;&nbsp;-c, --count &lt;num&gt;&nbsp; &nbsp;&nbsp; &nbsp; number of query/output for plain &amp; csv<br />&nbsp;&nbsp;-N, --ansiout&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;disable ansi codes for plain output<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;(ie 1 for one single output)<img src ="http://www.blogjava.net/zouhui/aggbug/411513.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zouhui/" target="_blank">zouhui</a> 2014-03-26 15:33 <a href="http://www.blogjava.net/zouhui/archive/2014/03/26/411513.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Spotlight 监控工具使用</title><link>http://www.blogjava.net/zouhui/archive/2014/03/19/411227.html</link><dc:creator>zouhui</dc:creator><author>zouhui</author><pubDate>Wed, 19 Mar 2014 08:26:00 GMT</pubDate><guid>http://www.blogjava.net/zouhui/archive/2014/03/19/411227.html</guid><wfw:comment>http://www.blogjava.net/zouhui/comments/411227.html</wfw:comment><comments>http://www.blogjava.net/zouhui/archive/2014/03/19/411227.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zouhui/comments/commentRss/411227.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zouhui/services/trackbacks/411227.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.blogjava.net/zouhui/archive/2014/03/19/411227.html'>阅读全文</a><img src ="http://www.blogjava.net/zouhui/aggbug/411227.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zouhui/" target="_blank">zouhui</a> 2014-03-19 16:26 <a href="http://www.blogjava.net/zouhui/archive/2014/03/19/411227.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>