<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>榆树网 &#187; 监控</title>
	<atom:link href="http://www.wenzk.com/archives/tag/%e7%9b%91%e6%8e%a7/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wenzk.com</link>
	<description>http://www.wenzk.com</description>
	<lastBuildDate>Thu, 09 Feb 2012 07:57:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Windows下VLC状态检查脚本</title>
		<link>http://www.wenzk.com/archives/938</link>
		<comments>http://www.wenzk.com/archives/938#comments</comments>
		<pubDate>Sun, 01 Aug 2010 00:11:03 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-系统]]></category>
		<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[VLC]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[流媒体服务]]></category>
		<category><![CDATA[状态检查]]></category>
		<category><![CDATA[监控]]></category>
		<category><![CDATA[监视]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=938</guid>
		<description><![CDATA[原理很简单，假设你的流媒体是20Mbps的，你通过下载程序下载10秒，平均速率如果低于10Mbps，那VLC肯定工作不正常了，把VLC进程杀掉，重新启动VLC即可。 相关文章Windows下循环启动VLC的脚本 (0)解决smbclient与Windows 7之间的共享问题 (0)IOBlazer-跨平台的IO压力测试程序 (0)如何使windows7的默认共享可以被访问[转载] (0)在CentOS上升级vlc至最新版本 (0)]]></description>
			<content:encoded><![CDATA[<p>原理很简单，假设你的流媒体是20Mbps的，你通过下载程序下载10秒，平均速率如果低于10Mbps，那VLC肯定工作不正常了，把VLC进程杀掉，重新启动VLC即可。</p>
<p><span id="more-938"></span>
<pre class="brush: plain; title: ; notranslate">c:
cd \
title CheckNetTraffic

call :sleep 30

set cnt=0

:loop

::zabbix_get -s 127.0.0.1 -k NetOut5 | head -1 | cut -d '.' -f1 &gt; NetOut5.txt

curl -m 10 -o tmpfile.mkv http://localhost:9001 2&gt;&amp;1 | grep Operation | awk &quot;{ print $10*8/$7 ;}&quot; | cut -d. -f1 &gt; NetOut5.tmp.txt
echo 1 &gt;&gt; NetOut5.tmp.txt
cat NetOut5.tmp.txt | head -1 &gt; NetOut5.txt

for /f %%i in (NetOut5.txt) do if %%i LSS 9999 (
taskkill /F /im vlc.exe
set /a cnt+=1
) else set cnt=0

if %cnt% GTR 5 shutdown -r

call :sleep 180

goto loop

:sleep
:: sleep for x number of seconds
ping -n %1 127.0.0.1 &gt; NUL 2&gt;&amp;1
goto :EOF
</pre>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/940" title="Windows下循环启动VLC的脚本">Windows下循环启动VLC的脚本</a> (0)</li><li><a href="http://www.wenzk.com/archives/1506" title="解决smbclient与Windows 7之间的共享问题">解决smbclient与Windows 7之间的共享问题</a> (0)</li><li><a href="http://www.wenzk.com/archives/1443" title="IOBlazer-跨平台的IO压力测试程序">IOBlazer-跨平台的IO压力测试程序</a> (0)</li><li><a href="http://www.wenzk.com/archives/1131" title="如何使windows7的默认共享可以被访问[转载]">如何使windows7的默认共享可以被访问[转载]</a> (0)</li><li><a href="http://www.wenzk.com/archives/1113" title="在CentOS上升级vlc至最新版本">在CentOS上升级vlc至最新版本</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/938/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD下运行Zabbix出现错误</title>
		<link>http://www.wenzk.com/archives/586</link>
		<comments>http://www.wenzk.com/archives/586#comments</comments>
		<pubDate>Fri, 29 Jan 2010 08:19:15 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-系统]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[zabbix]]></category>
		<category><![CDATA[共享内存]]></category>
		<category><![CDATA[监控]]></category>
		<category><![CDATA[网管]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=586</guid>
		<description><![CDATA[这次提示： zabbix_agentd [12234]: Can not create Semaphore [No space left on device] zabbix_agentd [12234]: Unable to create mutex for log file 这次又是另外一个错误，根据上次的经验，通过修改sysctl.conf试试 居然好用了 相关文章Zabbix在FreeBSD启动错误 (0)Weathermap如何使用Zabbix作为数据源 (0)ZFS Tuning Guide (0)Re: Freebsd 8.0 kmem map too small (0)Freebsd 8.0 kmem map too small (0)]]></description>
			<content:encoded><![CDATA[<p>这次提示：</p>
<p>zabbix_agentd [12234]: Can not create Semaphore [No space left on  device]<br />
zabbix_agentd [12234]: Unable to create mutex for log file</p>
<p>这次又是另外一个错误，根据上次的经验，通过修改sysctl.conf试试</p>
<pre class="brush: plain; title: ; notranslate">kern.ipc.shmall=40960000
kern.ipc.shmmax=204800000</pre>
<p>居然好用了</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/494" title="Zabbix在FreeBSD启动错误">Zabbix在FreeBSD启动错误</a> (0)</li><li><a href="http://www.wenzk.com/archives/1499" title="Weathermap如何使用Zabbix作为数据源">Weathermap如何使用Zabbix作为数据源</a> (0)</li><li><a href="http://www.wenzk.com/archives/1101" title="ZFS Tuning Guide">ZFS Tuning Guide</a> (0)</li><li><a href="http://www.wenzk.com/archives/1096" title="Re: Freebsd 8.0 kmem map too small">Re: Freebsd 8.0 kmem map too small</a> (0)</li><li><a href="http://www.wenzk.com/archives/1092" title="Freebsd 8.0 kmem map too small">Freebsd 8.0 kmem map too small</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/586/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zabbix在FreeBSD启动错误</title>
		<link>http://www.wenzk.com/archives/494</link>
		<comments>http://www.wenzk.com/archives/494#comments</comments>
		<pubDate>Wed, 23 Dec 2009 09:16:31 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-系统]]></category>
		<category><![CDATA[zabbix]]></category>
		<category><![CDATA[监控]]></category>
		<category><![CDATA[网管]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=494</guid>
		<description><![CDATA[日志提示：Can&#8217;t allocate shared memory of size 8388608 [Cannot allocate memory] 解决办法： eventually I have successfully get around the problem by modifying the below two setting as below:- kern.ipc.shmall=40960000 kern.ipc.shmmax=204800000 I believe it would be too large but I really don&#8217;t have an idea on how large should I modify the setting before I can get [...]]]></description>
			<content:encoded><![CDATA[<p>日志提示：Can&#8217;t allocate shared memory of size 8388608 [Cannot allocate memory]</p>
<p>解决办法：</p>
<p>eventually I have successfully get around the problem by modifying the  below two setting as below:-<br />
kern.ipc.shmall=40960000<br />
kern.ipc.shmmax=204800000</p>
<p>I believe it would be too large but I really don&#8217;t have an idea on how  large should I modify the setting before I can get it run, so a bit  overkilling. Grateful if anyone got an idea on a better setting.</p>
<p>From: http://www.zabbix.org/forum/showthread.php?p=55178</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/586" title="FreeBSD下运行Zabbix出现错误">FreeBSD下运行Zabbix出现错误</a> (0)</li><li><a href="http://www.wenzk.com/archives/1499" title="Weathermap如何使用Zabbix作为数据源">Weathermap如何使用Zabbix作为数据源</a> (0)</li><li><a href="http://www.wenzk.com/archives/938" title="Windows下VLC状态检查脚本">Windows下VLC状态检查脚本</a> (0)</li><li><a href="http://www.wenzk.com/archives/880" title="Zabbix Agentd在Windows下如何获得网卡流量">Zabbix Agentd在Windows下如何获得网卡流量</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/494/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

