<?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>How to Config &#187; Networking</title>
	<atom:link href="http://www.howtoconfig.com/category/networking/feed" rel="self" type="application/rss+xml" />
	<link>http://www.howtoconfig.com</link>
	<description>how to config - how to configure</description>
	<lastBuildDate>Fri, 29 Apr 2011 09:52:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>จัดเก็บ Logs ของ ADSL Router ด้วย syslog บน CentOS</title>
		<link>http://www.howtoconfig.com/os/centos-syslog-zyxel-p660hw-t1.html</link>
		<comments>http://www.howtoconfig.com/os/centos-syslog-zyxel-p660hw-t1.html#comments</comments>
		<pubDate>Wed, 25 Jun 2008 09:36:31 +0000</pubDate>
		<dc:creator>กวิน ชัยเลิศ</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[adsl]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Log]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[p660hw-t1]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[syslog]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[zyxel]]></category>
		<category><![CDATA[zyxel p660hw-t1]]></category>

		<guid isPermaLink="false">http://www.howtoconfig.com/?p=27</guid>
		<description><![CDATA[แค่ออกแรงปรับแต่ง ADSL Router (ZyXel P660HW-T1) กับ syslog บน CentOS เพิ่มเติมอีกนิดก็จะสามารถจัดเก็บ Logs ของ ADSL Router ได้แล้วครับ ขั้นแรกทำการแก้ไข file &#8220;/etc/sysconfig/syslog&#8221; โดยเพิ่ม -r เข้าไปที่ SYSLOGD_OPTIONS ซึ่งเดิมๆ จะเป็นตามนี้ครับ SYSLOGD_OPTIONS=&#34;-m 0&#34; หลังจากทำการแก้ไข SYSLOGD_OPTIONS=&#34;-r -m 0&#34; เพิ่ม -r เข้าไปยัง SYSLOGD_OPTIONS เพื่อจะบอกให้ syslog daemon ยอมรับ logs จากเครื่องหรืออุปกรณ์อื่นๆ จากนั้นเพิ่ม config เข้าไปใน file &#8220;/etc/syslog.conf&#8221; ตามนี้ครับ local2.* /var/log/zyxel-p660hw.log คราวนี้ย้ายจาก CentOS มาจัดการกับ ZyXEL P660HW-T1 กันครับ 1. [...]]]></description>
			<content:encoded><![CDATA[<p>แค่ออกแรงปรับแต่ง ADSL Router (ZyXel P660HW-T1) กับ syslog บน CentOS เพิ่มเติมอีกนิดก็จะสามารถจัดเก็บ Logs ของ ADSL Router ได้แล้วครับ</p>
<p>ขั้นแรกทำการแก้ไข file &#8220;/etc/sysconfig/syslog&#8221; โดยเพิ่ม -r เข้าไปที่ SYSLOGD_OPTIONS ซึ่งเดิมๆ จะเป็นตามนี้ครับ</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SYSLOGD_OPTIONS</span>=<span style="color: #ff0000;">&quot;-m 0&quot;</span></pre></div></div>

<p>หลังจากทำการแก้ไข</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SYSLOGD_OPTIONS</span>=<span style="color: #ff0000;">&quot;-r -m 0&quot;</span></pre></div></div>

<p><span style="color: #ff0000;">เพิ่ม -r เข้าไปยัง SYSLOGD_OPTIONS เพื่อจะบอกให้ syslog daemon ยอมรับ logs จากเครื่องหรืออุปกรณ์อื่นๆ</span></p>
<p><span id="more-27"></span>จากนั้นเพิ่ม config เข้าไปใน file &#8220;/etc/syslog.conf&#8221; ตามนี้ครับ</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">local2.<span style="color: #000000; font-weight: bold;">*</span>                                                <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>zyxel-p660hw.log</pre></div></div>

<p>คราวนี้ย้ายจาก CentOS มาจัดการกับ ZyXEL P660HW-T1 กันครับ</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">1. telnet ZyXel-IP-Address
2. Select Number 24 -&amp;gt; 3 -&amp;gt; 2 (24.System Maintenance, 3.Log ans Trace, 2.Unix Syslog)
UNIX Syslog:
Active= Yes
Syslog IP Address= ZyXel-IP-Address
Log Facility= Local 2</pre></div></div>

<p><span style="color: #ff0000;">Log Facility ต้องมีค่าเท่ากันกับ config ที่ได้เพิ่มเข้าไปในfile &#8220;/etc/syslog.conf&#8221; ที่ผ่านไปเมื่อครู่นี้ครับ โดยปกติจะมีค่าอยู่ระหว่าง Local 1 &#8211; Local 7</span></p>
<p>เพียงเท่านี้ก็สามารถจัดเก็บ Logs ของ ADSL Router ด้วย syslog บน CentOS ได้แล้วครับ <em>(อย่าลืม restart syslog ด้วยนะครับ)</em></p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.howtoconfig.com%2Fos%2Fcentos-syslog-zyxel-p660hw-t1.html&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.howtoconfig.com/os/centos-syslog-zyxel-p660hw-t1.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

