<?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>XPC Design &#187; Linux</title>
	<atom:link href="http://www.xpcdesign.com/category/tech/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xpcdesign.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Jul 2010 19:13:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Nagios SSL/Connection Issue Solved</title>
		<link>http://www.xpcdesign.com/2010/05/nagios-sslconnection-issue-solved/</link>
		<comments>http://www.xpcdesign.com/2010/05/nagios-sslconnection-issue-solved/#comments</comments>
		<pubDate>Wed, 26 May 2010 19:33:31 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical Issues]]></category>
		<category><![CDATA[nagios]]></category>
		<guid isPermaLink="false">http://www.xpcdesign.com/?p=457</guid>
		<description><![CDATA[On /etc/nagios/nrpe.cfg, (remote server) comment out the following line: #allowed_hosts= They say it ignores this config line if you use xinet.d, but they are totally wrong. I used to get the &#8220;Host &#60;blah&#62; is not allowed to talk to us!&#8221; error because of this. The command I used to test the connection (on the host [...]]]></description>
			<content:encoded><![CDATA[<p>On /etc/nagios/nrpe.cfg, (remote server) comment out the following line:</p>
<ul>
<li>#allowed_hosts=</li>
</ul>
<p>They say it ignores this config line if you use xinet.d, but they are totally wrong. I used to get the &#8220;Host &lt;blah&gt; is not allowed to talk to us!&#8221; error because of this.</p>
<p>The command I used to test the connection (on the host server) is:</p>
<ul>
<li>/usr/lib/nagios/plugins/check_nrpe -H &lt;remote_server_ip&gt;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2010/05/nagios-sslconnection-issue-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Commands and Paths for a Plesk Server</title>
		<link>http://www.xpcdesign.com/2010/03/plesk-commands-and-paths/</link>
		<comments>http://www.xpcdesign.com/2010/03/plesk-commands-and-paths/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 03:37:54 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.xpcdesign.com/?p=411</guid>
		<description><![CDATA[This is my on-going cheat sheet of Linux commands for my Plesk server running on CentOS 5. I will keep updating this as I go on. Read more to see the list: Restarting Firewall /etc/rc.d/init.d/psa-firewall stop /etc/rc.d/init.d/psa-firewall start Restart Plesk /etc/init.d/psa stop /etc/init.d/psa start Restart MySQL /etc/init.d/mysqld restart Optimize all MySQL databases and tables mysqlcheck [...]]]></description>
			<content:encoded><![CDATA[<p>This is my on-going cheat sheet of Linux commands for my Plesk server running on CentOS 5. I will keep updating this as I go on. Read more to see the list: <span id="more-411"></span></p>
<p><strong>Restarting Firewall</strong></p>
<ul>
<li>/etc/rc.d/init.d/psa-firewall stop</li>
<li>/etc/rc.d/init.d/psa-firewall start</li>
</ul>
<p><strong>Restart Plesk</strong></p>
<ul>
<li>/etc/init.d/psa stop</li>
<li>/etc/init.d/psa start</li>
</ul>
<p><strong>Restart MySQL</strong></p>
<ul>
<li>/etc/init.d/mysqld restart</li>
</ul>
<p><strong>Optimize all MySQL databases and tables</strong></p>
<ul>
<li>mysqlcheck -Ao -u username -ppassword <strong>(Optimize all)</strong></li>
<li>mysqlcheck -Aa -u username -ppassword <strong>(Just analyze)</strong></li>
<li>mysqlcheck -Aao -auto-repair -u username -ppassword<strong> (Analyze, repair and optimize)</strong></li>
</ul>
<p><strong>Run Logwatch</strong></p>
<ul>
<li>logwatch &#8211;print &#8211;detail High &#8211;archives &#8211;range All</li>
</ul>
<p><strong>Change Ownership</strong></p>
<ul>
<li>chown user:group /some/folder</li>
<li>chown user:group /some/folders-and-the-files-inside/*</li>
</ul>
<p><strong>Copy Contents of a Folder to Another</strong></p>
<ul>
<li>cp -r /some/folders-and-the-files-inside/* /some/folder</li>
</ul>
<p><strong>Check Sub-folder Sizes in the Current Folder<br />
</strong></p>
<ul>
<li>du -sh *</li>
</ul>
<p><strong>Check Total Size of a Folder<br />
</strong></p>
<ul>
<li>du -sh</li>
</ul>
<p><strong>List Partitions and Drive Space Usage</strong></p>
<ul>
<li>df -k</li>
</ul>
<p><strong>Splunk Commands</strong></p>
<ul>
<li>/opt/splunk/bin/splunk stop</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2010/03/plesk-commands-and-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMARTd Commands for SATA Drives</title>
		<link>http://www.xpcdesign.com/2010/02/smartd-output-for-sata-drives/</link>
		<comments>http://www.xpcdesign.com/2010/02/smartd-output-for-sata-drives/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 01:22:47 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[smartd]]></category>
		<guid isPermaLink="false">http://www.xpcdesign.com/?p=400</guid>
		<description><![CDATA[Show all SMART information smartctl -d ata -a /dev/sda1 -a = Show all SMART information for device. -d = Specify the device type to one of: ata, scsi, marvell, 3ware (ata is selected above). /dev/sda1 = The drive. Run a self-test smartctl -d ata -t offline /dev/sda1 smartctl -d ata -t long /dev/sda1 Output self-test and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Show all SMART information</strong></p>
<div class="codesnip-container" >smartctl -d ata -a /dev/sda1</div>
<ul>
<li><strong>-a</strong> = Show all SMART information for device.</li>
<li><strong>-d</strong> = Specify the device type to one of: ata, scsi, marvell, 3ware (ata is selected above).</li>
<li><strong>/dev/sda1</strong> = The drive.</li>
</ul>
<p><strong>Run a self-test</strong></p>
<div class="codesnip-container" >smartctl -d ata -t offline /dev/sda1</div>
<div class="codesnip-container" >smartctl -d ata -t long /dev/sda1</div>
<p><strong>Output self-test and other log results</strong></p>
<ul>
<li>smartctl -d ata -l selftest /dev/sda1</li>
<li>smartctl -d ata -l error /dev/sda1</li>
<li>smartctl -d ata -l selective /dev/sda1</li>
<li>smartctl -d ata -l directory /dev/sda1</li>
</ul>
<p><strong>Output all options</strong></p>
<div class="codesnip-container" >smartctl -h</div>
<p><strong>Misc</strong></p>
<ul>
<li>Enable smart by editing /etc/smartd.conf file.</li>
<li>Smart Configuration file: /etc/smartd.conf</li>
<li>Start/Stop smart: /etc/init.d/smartd start | stop</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xpcdesign.com/2010/02/smartd-output-for-sata-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 6/28 queries in 0.033 seconds using disk

Served from: www.xpcdesign.com @ 2010-09-08 23:29:59 -->