<?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>www.LinuxGeek.net</title>
	<atom:link href="http://www.linuxgeek.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxgeek.net</link>
	<description>Open Source and Linux Opinions and Reviews</description>
	<lastBuildDate>Thu, 24 Jun 2010 23:34:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Nagios monitoring mysql</title>
		<link>http://www.linuxgeek.net/2010/06/24/nagios-monitoring-mysql/</link>
		<comments>http://www.linuxgeek.net/2010/06/24/nagios-monitoring-mysql/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 23:34:11 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=906</guid>
		<description><![CDATA[<p>I was asked by a client to configure nagios to monitor two database servers, running on Redhat
Enterprise Linux 5. Here are the steps, including a couple mis-steps to get it working. Nagios
was already set up and running on a server called monitor, which is running CentOS5.</p>
<p>I had two options. I could directly monitor the databases <p>keep reading <a href="http://www.linuxgeek.net/2010/06/24/nagios-monitoring-mysql/">Nagios monitoring mysql</a></p>]]></description>
			<content:encoded><![CDATA[<p>I was asked by a client to configure nagios to monitor two database servers, running on Redhat<br />
Enterprise Linux 5. Here are the steps, including a couple mis-steps to get it working. Nagios<br />
was already set up and running on a server called monitor, which is running CentOS5.</p>
<p>I had two options. I could directly monitor the databases from monitor using the check_mysql or<br />
run check_mysql on the database server and call it through check_by_ssh. I started out configuring<br />
the method over ssh.</p>
<p>First, in each database server I created a user nagios and set a password for that user. I then<br />
created a set of keys:</p>
<blockquote><p>ssh-keygen -t dsa </p></blockquote>
<p>I set no  passphrase for the key, since I intended it to have a single purpose and limited<br />
access to the database servers. I then tested the access to see if there were any glitches.<br />
It worked on one server but not the other. After  a quick once over, I decided to proceed and<br />
solve that problem later. Since I needed check_mysql I compiled the plugins</p>
<p>From the <a title="Ngios Plugins" href="http://nagiosplugins.org/" target="_blank">nagios plugins web site</a>, I downloaded <strong>nagios-plugins-1.4.14.tar.gz</strong> to each of the<br />
database servers. However, because not all the necessary mysql packages were in place, it<br />
threw some errors during the configure stage.</p>
<blockquote><p>./configure &#8211;with-nagios-user=nagios &#8211;with-nagios-group=nagios &#8211;with-mysql=/usr</p></blockquote>
<p>The main error that interfered with my plans was the failure to build the check_mysql plugin.<br />
After some research I discovered that the failure was probably due to the absence of some<br />
mysql libraries that would be in a development package. However, RHEL5 doesn&#8217;t have such a<br />
package in their repository for RHEL5. It is available in some of the alternate repositories. It&#8217;s not really that surprising, when I think about it, that the package is unavailable, RHEL isn&#8217;t intended to be a development platform, it&#8217;s a server platform. I didn&#8217;t want to add alternate repositories without permission from the client.</p>
<p>So I went for plan B. I decided to configure the check-mysql to run on the monitor server<br />
and attach to the mysql database over the network. There is a danger that If not carefully configured  this could represent a security vulnerability for the database server. To make it as secure as possible<br />
I logged into mysql on each of the database servers and created special access rules for this<br />
purpose. I created a special nagios user with it&#8217;s own password and gave it read only permissions<br />
and only on one database.</p>
<blockquote><p>grant select on database.* to nagios@monitor identified by &#8220;password&#8221;</p></blockquote>
<p>Now the user nagios can read that database. It doesn&#8217;t have any more privileges, so it&#8217;s unlikely to be used to damage the database, even if the monitor were compromised. The bad guys won&#8217;t<br />
be able to use the compromise of the monitor to also compromise or damage the database server.</p>
<p>To test my work I issued the following command:</p>
<blockquote><p>/usr/local/nagios/libexec/check_mysql  -d database -u nagios -p password -H $HOSTNAME$ </p></blockquote>
<p><strong>$HOSTNAME</strong> is the ip of the database server.<br />
The data came back:</p>
<blockquote><p>Uptime: 528011  Threads: 61  Questions: 83799845  Slow queries: 38527  Opens:<br />
11365  Flush tables: 1  Open tables: 1003  Queries per second avg: 158.709</p></blockquote>
<p>To prevent the username and password from being exposed in the web interface I put some of the command values in resource.cfg</p>
<blockquote><p>###########################################################################<br />
#<br />
# RESOURCE.CFG &#8211; Sample Resource File for Nagios 3.0b6<br />
#<br />
# Last Modified: 09-10-2003<br />
#<br />
# You can define $USERx$ macros in this file, which can in turn be used<br />
# in command definitions in your host config file(s).  $USERx$ macros are<br />
# useful for storing sensitive information such as usernames, passwords,<br />
# etc.  They are also handy for specifying the path to plugins and</em><br />
# event handlers &#8211; if you decide to move the plugins or event handlers to<br />
# a different directory in the future, you can just update one or two<br />
# $USERx$ macros, instead of modifying a lot of command definitions.<br />
#<br />
# The CGIs will not attempt to read the contents of resource files, so<br />
# you can set restrictive permissions (600 or 660) on them.<br />
#<br />
# Nagios supports up to 32 $USERx$ macros ($USER1$ through $USER32$)<br />
#<br />
# Resource files may also be used to store configuration directives for<br />
# external data sources like MySQL&#8230;<br />
#<br />
###########################################################################</p>
<p># Sets $USER1$ to be the path to the plugins<br />
$USER1$=/usr/local/nagios/libexec<br />
# Sets $USER2$ to be the path to event handlers</p>
<p>#$USER2$=/usr/local/nagios/libexec/eventhandlers<br />
# Store some usernames and passwords (hidden from the CGIs)</p>
<p>$USER3$=nagios<br />
$USER4$=password</p>
<p>############################################################################################### </p></blockquote>
<p><em><strong>commands.cfg</strong></em> is where I put my tested command</p>
<blockquote><p>############################### commands.cfg ######################<br />
define command{<br />
        command_name                    check-mysql<br />
        command_line                    $USER1$/check_mysql -d tracking -u $USER3$ -p $USER4$ -H $HOSTADDRESS$<br />
}<br />
####################################################################
</p></blockquote>
<p>Next I need to tell nagios where to send messages.</p>
<blockquote><p>############################### contacts.cfg #######################<br />
define contact{<br />
  contact_name                    pacneil<br />
  use                             generic-contact<br />
  alias                           Neil Schneider<br />
  email                           pacneil@linuxgeek.net<br />
}</p>
<p>define contactgroup {<br />
    contactgroup_name                   pacneil<br />
    alias                               Test Group<br />
    members                             pacneil<br />
}<br />
######################################################################</p></blockquote>
<p>What group of servers are we going to monitor?</p>
<blockquote><p>###############################  host_groups.cfg #####################<br />
define hostgroup{<br />
  hostgroup_name      db-host-group<br />
  alias               Database Servers Host Group<br />
  hostgroup_members   db-slave-host-group<br />
}</p>
<p>define hostgroup{<br />
  hostgroup_name      db-slave-host-group<br />
  alias               Slave Database Servers Host Group<br />
}<br />
######################################################################</p></blockquote>
<p>And we need to configure some parameters how we want to display the hosts in the web interface.</p>
<blockquote><p>############################### hosts.cfg ############################<br />
define host{<br />
  use                     db-server<br />
  host_name               db3.servers.pmc<br />
  hostgroups              db-slave-host-group,lb1-host-group,rackspace-host-group<br />
  alias                   db3<br />
  display_name            Db3<br />
  address                 74.205.65.35<br />
  parents                 app2.servers.pmc<br />
  2d_coords               100,0<br />
  3d_coords               -5,4,1<br />
}</p>
<p>define host{<br />
  use                     db-server<br />
  host_name               db4.servers.pmc<br />
  hostgroups              db-slave-host-group,lb1-host-group,rackspace-host-group<br />
  alias                   db4<br />
  display_name            Db4<br />
  address                 74.205.65.36<br />
  parents                 app2.servers.pmc<br />
  2d_coords               200,0<br />
  3d_coords               -5,4,-1<br />
}</p>
<p>######################################################################</p></blockquote>
<p>And I create a service group just for database servers.</p>
<blockquote><p>########################## service_groups.cfg ########################</p>
<p>define servicegroup{<br />
  servicegroup_name           db-server-service-group<br />
  alias                       Database Server Service Group<br />
  servicegroup_members        server-service-group<br />
}<br />
######################################################################</p></blockquote>
<p>Then I define the service</p>
<blockquote><p>############################ services.cfg ############################<br />
define service{<br />
        use                     server-service<br />
        name                    db-server-service<br />
        servicegroups           db-server-service-group<br />
        hostgroup_name          db-host-group<br />
        register                0<br />
}</p>
<p>######################################################################</p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2010%2F06%2F24%2Fnagios-monitoring-mysql%2F&amp;linkname=Nagios%20monitoring%20mysql" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2010/06/24/nagios-monitoring-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache with Syslog</title>
		<link>http://www.linuxgeek.net/2010/04/16/898/</link>
		<comments>http://www.linuxgeek.net/2010/04/16/898/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 00:19:36 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=898</guid>
		<description><![CDATA[<p>I just updated the page for Remote Logging Apache with Syslog-ng. </p>
<p>I hope it saves you some time and you find it useful.</p>
]]></description>
			<content:encoded><![CDATA[<p>I just updated the page for <a title="Remote logging Apache with Syslog-ng" href="http://www.linuxgeek.net/apache-with-syslog-ng" target="_blank">Remote Logging Apache with Syslog-ng. </a></p>
<p>I hope it saves you some time and you find it useful.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2010%2F04%2F16%2F898%2F&amp;linkname=Apache%20with%20Syslog" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2010/04/16/898/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is MeeGo Linux’ Answer to iPad?</title>
		<link>http://www.linuxgeek.net/2010/02/16/is-meego-linux%e2%80%99-answer-to-ipad/</link>
		<comments>http://www.linuxgeek.net/2010/02/16/is-meego-linux%e2%80%99-answer-to-ipad/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 19:22:39 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=832</guid>
		<description><![CDATA[<p>Three weeks ago, the technology world was aflutter with buzz of the iPad. But with yesterday&#8217;s MeeGo announcement from Intel, the Linux Foundation and Nokia, it appears that Apple could have a Linux-based competitor for tablets, netbooks and other categories of devices.</p>
<p>&#8230;&#8230; read more</p>
<p> </p>
]]></description>
			<content:encoded><![CDATA[<p>Three weeks ago, the technology world was aflutter with buzz of the iPad. But with yesterday&#8217;s MeeGo announcement from Intel, the Linux Foundation and Nokia, it appears that Apple could have a Linux-based competitor for tablets, netbooks and other categories of devices.</p>
<p>&#8230;&#8230; <a title=" Is MeeGo Linux’ Answer to iPad?" href="http://www.linux.com/news/embedded-mobile/netbooks/287100-is-meego-linux-answer-to-ipad" target="_blank">read more</a></p>
<p> </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2010%2F02%2F16%2Fis-meego-linux%25e2%2580%2599-answer-to-ipad%2F&amp;linkname=Is%20MeeGo%20Linux%E2%80%99%20Answer%20to%20iPad%3F" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2010/02/16/is-meego-linux%e2%80%99-answer-to-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redhat Enterprise 5.4 Released</title>
		<link>http://www.linuxgeek.net/2009/09/03/redhat-enterprise-5-4-released/</link>
		<comments>http://www.linuxgeek.net/2009/09/03/redhat-enterprise-5-4-released/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 19:26:34 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[GFS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[RHEL 5.4]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=716</guid>
		<description><![CDATA[<p>This is at it&#8217;s heart an update to RHEL 5. But Redhat is promoting it as &#8220;the first product to deliver commercial quality open source virtualization featuring Kernel-based Virtual Machine (KVM) hypervisor technology.&#8221; The kernel version is still 2.6.18, with backported patches. Redhat is promoting upcoming Red Hat Enterprise Virtualization products along with RHEL 5.4 <p>keep reading <a href="http://www.linuxgeek.net/2009/09/03/redhat-enterprise-5-4-released/">Redhat Enterprise 5.4 Released</a></p>]]></description>
			<content:encoded><![CDATA[<p>This is at it&#8217;s heart an update to RHEL 5. But Redhat is promoting it as &#8220;the first product to deliver commercial quality open source virtualization featuring Kernel-based Virtual Machine (KVM) hypervisor technology.&#8221; The kernel version is still 2.6.18, with backported patches. Redhat is promoting upcoming Red Hat Enterprise Virtualization products along with RHEL 5.4 on the <a href="http://www.redhat.com/rhel/virtualization/" target="_blank"> announcement page </a>. </p>
<p>The server release is touted as providing &#8220;the most cost-effective, flexible, and scalable environment&#8221;. There are two flavors, Red Hat Enterprise Linux and Red Hat Enterprise Linux Advanced Platform. The number of guests on Advanced Platform is unlimited while the standard release is limited to four guests. </p>
<p>Redhat Enterprise Linux is certified as a guest OS on the following platforms: </p>
<ul>
<li>VMware ESX and VMware ESXi</li>
<li>BM POWER LPARs</li>
<li>IBM System z</li>
</ul>
<p>Redhat Enterprise Linux supports three distributed system technologies:</p>
<ul>
<li>Logical Volume Manager (LVM)</li>
<li>Global File System (GFS)</li>
<li>Distributed Lock Manager (DLM)</li>
</ul>
<p>Redhat also has new managment tools for managing virtualized environments. And of course it provides tools like Samba for integration into Windows environments, Apache Web server, MySQL and Postgresql databases. And of course all the enterprise network services such as DNS, dhcp, and firewall capabilities are included. </p>
<p>Redhat is also promoting Redhat Enterprise Desktop as an alternative to &#8220;proprietary&#8221; desktop operating systems. They&#8217;re selling the &#8220;security&#8221; features and cost benefits of managing their system. And if you must run one of those &#8220;proprietary&#8221; systems, they offer virtualization to run it as a guest OS. </p>
<p>While not everything on RHEL 5.4 is the latest release, it does provide the kind of system and support that will make management comfortable. </p>
<p>Subscribers to RHEL 5 will get the updates automatically for free. New subscribers will pay about $349 for the server version and prices start at $80 for the desktop version. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2009%2F09%2F03%2Fredhat-enterprise-5-4-released%2F&amp;linkname=Redhat%20Enterprise%205.4%20Released" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/09/03/redhat-enterprise-5-4-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Flaws disclosed</title>
		<link>http://www.linuxgeek.net/2009/08/07/xml-flaws-disclosed/</link>
		<comments>http://www.linuxgeek.net/2009/08/07/xml-flaws-disclosed/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 21:14:06 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Codenomicon]]></category>
		<category><![CDATA[CROSS]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[programming flaws]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web browser]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=706</guid>
		<description><![CDATA[<p>http://www.sdlinux.com/2009/08/xml-flaws-disclosed/</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sdlinux.com/2009/08/xml-flaws-disclosed/" target="_blank">http://www.sdlinux.com/2009/08/xml-flaws-disclosed/</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2009%2F08%2F07%2Fxml-flaws-disclosed%2F&amp;linkname=XML%20Flaws%20disclosed" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/08/07/xml-flaws-disclosed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSuSe hardware failure</title>
		<link>http://www.linuxgeek.net/2009/07/10/opensuse-hardware-failure/</link>
		<comments>http://www.linuxgeek.net/2009/07/10/opensuse-hardware-failure/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 19:59:14 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[diagnostics]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[interrupts]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[IRQ]]></category>
		<category><![CDATA[Network Manager]]></category>
		<category><![CDATA[OpenSuse]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=515</guid>
		<description><![CDATA[<p>I got a call from a customer asking for help with a subversion server that suddenly went off-line. The system was running SuSe 10.1, apache2 and subversion, and almost nothing else. It had been operating for 2 years in the server room, in a headless configuration. The developers that used it connected with their Windows <p>keep reading <a href="http://www.linuxgeek.net/2009/07/10/opensuse-hardware-failure/">OpenSuSe hardware failure</a></p>]]></description>
			<content:encoded><![CDATA[<p>I got a call from a customer asking for help with a subversion server that suddenly went off-line. The system was running SuSe 10.1, apache2 and subversion, and almost nothing else. It had been operating for 2 years in the server room, in a headless configuration. The developers that used it connected with their Windows machines and everything worked flawlessly  for two years. Suddenly, last week, it became unresponsive. They tried rebooting the server, nothing worked. nothing had changed in the configuration, and since this machine was only accessible in the LAN, and protected by a firewall, they hadn&#8217;t even done any upgrades. Their attitude could best be described &#8220;if it&#8217;s not broken, don&#8217;t fix it&#8221;. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p>Before I was called in, the customer had installed a new ethernet card, on the assumption that the on-board card had failed. They came to that conclusion because they couldn&#8217;t ping out, and no other machines could ping the server. A good assumption, I think. However, the new ethernet card didn&#8217;t fix the problem. That&#8217;s when they called me in. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>We went through the configuration with a fine tooth comb. We disabled Network Manager, since I&#8217;ve known it to cause issues on some systems. Everything seemed fine, but the network still didn&#8217;t work. The network configuration was static. So we changed to using dhcp to get an address. This worked, it got an address, but we still couldn&#8217;t ping either direction, from the server or to the server. We looked for alternate kernels we could boot, to see if it was a kernel specific problem, however there was only one kernel available. As I recall there wasn&#8217;t even a failsafe option in the boot menu.</p>
<p>As part of the diagnostic process we put a laptop on the wired network and tried pinging it from the server. No response. we checked the ARP tables and there was an entry for the server we was working on, with it&#8217;s IP and MAC addresses. We concluded that the server could &#8220;talk&#8221; but couldn&#8217;t &#8220;hear&#8221;. We checked for firewall rules that might be blocking. There were none.  We checked the arp tables on the server, and there were entries, without host names, for other machines on the network. None of us had see this before. The plot thickens. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p> So next we decided to try a Knoppix live CD to test the hardware. we figured if Knoppix worked, then there was a software configuration problem. Sure enough, Knoppix booted and networking was working. We could ping, other machines on the network could ping the server.  So we concluded that it must be something in the software. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>We again, went through the network configuration files. Suspecting that there may have been some corruption in the files, we manually rewrote them from scratch. We thought there was a possibility of unprintable characters in the configuration files that was causing them not to work properly. We flushed the firewall rules for good measure with <b><i>iptables -F</i></b> just to make sure there were no rules, that were not being reported by <b><i>iptables -L</i></b>. Still no change. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Still operating under the assumption that there was a configuration errors somewhere, we decided to try an upgrade, to OpenSuSE 11.1. We backed up all the configuration files and data to an external USB drive. Then we did an upgrade. Upgrading is a pretty slow process, relative to a fresh install. Nothing changed. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  </p>
<p>Next we tried a fresh install, no change. Then I tried another distributions, CentOS 5. Still no change. Finally as my frustration mounted, I did ifup eth0 and a root console popped up displaying an error message. &#8220;&#8230;. irq #66 disabled&#8221; So we googled the error and found that this kind of error appears when there are spurious interrupts on the bus. After a couple more tests we concluded that there was some kind of hardware problem, that we hadn&#8217;t seen before. Since the system was under warranty, we contacted the manufacturer and they replaced the motherboard. After a fresh install, the system came up and ran perfectly. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p>This is one of the things I both love and hate about this business. Everyday there is a new problem to be solved that we&#8217;ve never seen before. I hope this saves someone else some time diagnosing their hardware problems.   </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2009%2F07%2F10%2Fopensuse-hardware-failure%2F&amp;linkname=OpenSuSe%20hardware%20failure" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/07/10/opensuse-hardware-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving CentOS to new hardware</title>
		<link>http://www.linuxgeek.net/2009/06/27/moving-centos-to-new-hardware/</link>
		<comments>http://www.linuxgeek.net/2009/06/27/moving-centos-to-new-hardware/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 03:26:51 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=501</guid>
		<description><![CDATA[<p>I&#8217;ve been working on a customers system, upgrading the motherboard and memory for better performance and reliability. We replaced an MSI motherboard with a SuperMicro Server board.  When I tried to boot up the system after installing the new hardware, I got the following message in the screen.</p>
<p>
uncompressing linux
OK  booting the kernel
Red Hat <p>keep reading <a href="http://www.linuxgeek.net/2009/06/27/moving-centos-to-new-hardware/">Moving CentOS to new hardware</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a customers system, upgrading the motherboard and memory for better performance and reliability. We replaced an MSI motherboard with a SuperMicro Server board.  When I tried to boot up the system after installing the new hardware, I got the following message in the screen.</p>
<p><code><br />
uncompressing linux<br />
OK  booting the kernel<br />
Red Hat nash version 4.2.1.10 starting<br />
Ext3-fs: unable to read superblock<br />
mount error 22 mounting ext3<br />
mount error 2 now mounting none<br />
switchroot: mount failed 22<br />
umount /initrd/dev failed 2<br />
Kernel panic not syncing<br />
Attempted to kill init<br />
</code></p>
<p>It&#8217;s been a while since I had issues like this. So I went looking through Google for answers. Isn&#8217;t that what everyone does these days? Everything search showed seemed to indicate a problem with the the raid. So I tried to look for a problem with the raid partitions. First I used Knoppix. I found a web site <a href="http://www.howtoforge.com/recover_data_from_raid_lvm_partitions">Recover Data From RAID1 LVM Partitions With Knoppix Linux LiveCD</a> I followed the instructions, using <i>mdadm &#8211;examine &#8211;scan</i> to examine the partitions and manually set up the raid. Everything worked fine. I could see the raid partitions, I could mount them and view the data. <i>cat /proc/mdstat</i> showed the  proper raided partitions. So what&#8217;s the problem?</p>
<p>Next I tried the rescue option of the Centos CD. The system booted fine, and the rescue mode dutifully mount all the partitions in the right order to <i>/mnt/sysimage</i>. But still no love when I tried to boot. Next I got on irc and talked to some of my friends from <a href="http://www.kernel-panic.org">KPLUG</a>.</p>
<p>One suggested trying to boot to the grub prompt and running boot options by hand, using tab completion. He suggested that perhaps the system wasn&#8217;t recognizing the drive. It seemed plausible, so I tested it. But the system seemed to be finding the <i>/boot</i> partition just fine and tab completion found the init ram disk fine. </p>
<p>Another suggested that the failure of the system to recognize the drives was caused by not loading the proper controller module. This had not occurred to me, because I thought I remembered that all the modules for hard drive host controllers were built into the kernel. At least that&#8217;s the way I used to build them. I remembered wrong. My friend suggested that I look at <i>/etc/modprobe.conf</i> and check the <i>scsci_hostadapter</i> parameter. So I booted into the Centos CD rescue mode, as the system booted I noticed the message <i>loading ata_piix</i>. This was the clue I had been missing. I edited the <i>/etc/modprobe.conf</i> file and changed the reference there. When I attempted to reboot the system the raid partitions were recognized and the system finished booting. </p>
<p>Once upon a time, modules for hard drives were included in the kernel, not loaded at boot time. Now with the size of kernels getting very large, nearly everything is loaded at boot. That&#8217;s fine for things like ethernet and sound cards. It&#8217;s always been a point of pride with me, that we could take the hard drives from one system, and install them into another system and it would just run.  I guess that&#8217;s no longer true.  </p>
<p>IMNSHO this is not progress. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2009%2F06%2F27%2Fmoving-centos-to-new-hardware%2F&amp;linkname=Moving%20CentOS%20to%20new%20hardware" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/06/27/moving-centos-to-new-hardware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lenny ldap problem solved</title>
		<link>http://www.linuxgeek.net/2009/05/05/lenny-ldap-problem-solved/</link>
		<comments>http://www.linuxgeek.net/2009/05/05/lenny-ldap-problem-solved/#comments</comments>
		<pubDate>Tue, 05 May 2009 15:49:21 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=492</guid>
		<description><![CDATA[<p>After some poking around I found the solution to my ldap problem. I started reading the log files, turned on debugging in the init.d file and determined  ldap was not starting.  I started reviewing and checking the slapd.conf file and noticed that I was missing the samba.schema file, previously named samba3.schema.</p>
<p>So I started <p>keep reading <a href="http://www.linuxgeek.net/2009/05/05/lenny-ldap-problem-solved/">Lenny ldap problem solved</a></p>]]></description>
			<content:encoded><![CDATA[<p>After some poking around I found the solution to my ldap problem. I started reading the log files, turned on debugging in the init.d file and determined  ldap was not starting.  I started reviewing and checking the <code>slapd.conf </code>file and noticed that I was missing the <code>samba.schema</code> file, previously named <code>samba3.schema</code>.</p>
<p>So I started looking for it on my system. Not to be found. Not where it belonged in <code>/etc/ldap/schema</code> not in <code>/usr/share/docs/samba</code>. I used <code>find<br />
</code> to search my system, looking for the schema file. In Debian, even if you install packages that support the ldap authentication method for samba, you don&#8217;t get the <code>samba.schema</code> file necessary to make it work. You have to install samba-doc and then move or copy the <code>samba.schema</code> file to the right place to make it work. </p>
<p>I installed the samba-doc package and the schema file in <code>/usr/share/doc/samba-doc/examples/LDAP</code> I have to question what the Debian developers were thinking when they put the schema file in the samba-doc package. I didn&#8217;t install most of the optional doc packages, because my space is a little tight and  I am trying to conserve it the best I can.</p>
<p>Once I found the <code>samba.schema</code> file and put it in the right place, I used <code>ldapadd</code> to install my ldif file and restarted slapd. After that,  everything  worked fine and samba is up and running as it was before I did the upgrade to Lenny.</p>
<p>Onward &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2009%2F05%2F05%2Flenny-ldap-problem-solved%2F&amp;linkname=Lenny%20ldap%20problem%20solved" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/05/05/lenny-ldap-problem-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading from Debian  Etch to Lenny</title>
		<link>http://www.linuxgeek.net/2009/05/04/upgrading-from-debian-etch-to-lenny/</link>
		<comments>http://www.linuxgeek.net/2009/05/04/upgrading-from-debian-etch-to-lenny/#comments</comments>
		<pubDate>Mon, 04 May 2009 16:32:51 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=484</guid>
		<description><![CDATA[<p>I recently decided it was time to upgrade my workstation  from Etch to Lenny. Several of the applications were showing bugs and it looked like Lenny had stabilized enough to use it. I&#8217;m alway reluctant to upgrade. In my experience something always breaks, and I spend an inordinate amount of time figuring out how <p>keep reading <a href="http://www.linuxgeek.net/2009/05/04/upgrading-from-debian-etch-to-lenny/">Upgrading from Debian  Etch to Lenny</a></p>]]></description>
			<content:encoded><![CDATA[<p>I recently decided it was time to upgrade my workstation  from Etch to Lenny. Several of the applications were showing bugs and it looked like Lenny had stabilized enough to use it. I&#8217;m alway reluctant to upgrade. In my experience something always breaks, and I spend an inordinate amount of time figuring out how to repair the broken system.</p>
<p>So I found the instruction <a href="http://www.debian.org/releases/lenny/i386/release-notes/ch-upgrading.html"> Chapter 4: Upgrading from previous releases</a>. I followed the  instructions, except for <a href="http://www.debian.org/releases/lenny/i386/release-notes/ch-upgrading.en.html#record-session"> recording the session</a>. Next time I&#8217;ll probably consider doing this too. Everything seemed to go well. I managed to do the entire upgrade, while logged into the machine, and reading the web page in the browser running on that same machine. I was pretty impressed,  I have to say. I was even able to chat on IRC with my friends while I did the upgrade.</p>
<p>Nothing ever works perfectly. For some reason, every time I upgrade even the kernel, it messes up my /boot/grub/menu.lst  My boot drive is /dev/sda2 but it keeps getting set to /dev/sdb2, go figure. After repeatedly having this problem, it really doesn&#8217;t bother me that much anymore. It&#8217;s just a minor annoyance.</p>
<p>I have a samba share where I store all my Windows data files. I don&#8217;t trust Windows to keep my data safe, so I store it on  my Linux machine. I use ldap for authentication. So after my upgrade I tripped over &lt;a href=&#8221;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495954&#8243; bug #495954&lt;/a&gt; I found it interesting that this bug seemed to have been reported and verified by several people, but no one seemed to want to report a work around. Either my Google foo is weak, or no one has reported how to work around this. I&#8217;m in the process of reconstructing my authentication system from scratch. I also notice there is no samba3 schema file. I&#8217;m still trying to track this down.</p>
<p>More later &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2009%2F05%2F04%2Fupgrading-from-debian-etch-to-lenny%2F&amp;linkname=Upgrading%20from%20Debian%20%20Etch%20to%20Lenny" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/05/04/upgrading-from-debian-etch-to-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amarok fails to rescan collection</title>
		<link>http://www.linuxgeek.net/2009/04/28/amarok-fails-to-rescan-collection/</link>
		<comments>http://www.linuxgeek.net/2009/04/28/amarok-fails-to-rescan-collection/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 16:26:18 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[multimedia]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=394</guid>
		<description><![CDATA[<p>I&#8217;ve been using Amarok for months to manage and listen to my digital music collection. I really like the interface. And I like the ability to manage my collection, add and manage tags and import music into my collection. Yesterday however, it lost my collection. My music is still all there.</p>
<p>I was importing some music <p>keep reading <a href="http://www.linuxgeek.net/2009/04/28/amarok-fails-to-rescan-collection/">Amarok fails to rescan collection</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Amarok for months to manage and listen to my digital music collection. I really like the interface. And I like the ability to manage my collection, add and manage tags and import music into my collection. Yesterday however, it lost my collection. My music is still all there.</p>
<p>I was importing some music into my collection and the entire collection disappeared from the left panel. I could still view the files and I could still play, but the collection panel was empty. I ran Rescan Collection, it progressed to about 82% and then quit. I searched all over and this appears to be a common problem. And it doesn&#8217;t seem to matter if you&#8217;re using MySql as I am or sqlite. I tried all the suggestions posted to the amarok forums, nothing worked. I basically wiped out all my amarok configuration files and started over, with the same result.</p>
<p>So I checked around and found there is an IRC channel #amarok. I thought I would give that a try. Although there were a lot of people in the channel, no one responded to my questions. Finally a smart-ass posted and said that I should try something else since Amarok was bad software. Although I wasn&#8217;t quite ready to accept this at face value, I was somewhat surprised that someone would make a statement like this on a support channel.</p>
<p>I continued to search for a solution, to no avail. It seems there is a bug in Amarok that causes it to fail to manage the collection list once it gets to a certain size, or if it encounters a file with some kind of error. I even ran amarokcollectionscanner manually to see if I could spot an error.  Nothing appeared, though it seems to not complete scanning the entire collection.</p>
<p>I checked and it appears that my MySQL database is intact. It looks like, for whatever reason, Amarok can&#8217;t or won&#8217;t access it.</p>
<p>Finally out of frustration, I started looking at other applications. So far Rhythmbox seems to be working well. It does most all the things that Amarok does.  It doesn&#8217;t seem to have the tagging capabilities that Amarok has, but it sees and displays my entire collection, so that&#8217;s a start. I&#8217;ll continue to look at other applications to replace Amarok. I&#8217;ll write about it when I have time.</p>
<p><strong>Update:</strong> I went from Etch to Lenny and tried Amarok again. This time it scanned my collection and rebuilt everything just fine. Probably a bug in the old version that&#8217;s been fixed. I&#8217;m happy.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.linuxgeek.net%2F2009%2F04%2F28%2Famarok-fails-to-rescan-collection%2F&amp;linkname=Amarok%20fails%20to%20rescan%20collection" target="_blank"><img src="http://www.linuxgeek.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/04/28/amarok-fails-to-rescan-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
