<?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>ipunct &#187; Ubuntu</title>
	<atom:link href="http://www.ipunct.net/blog/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ipunct.net</link>
	<description>IT-Lösungen auf den Punkt gebracht</description>
	<lastBuildDate>Sun, 05 Sep 2010 12:37:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher</title>
		<link>http://www.ipunct.net/blog/2009/06/temperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher/</link>
		<comments>http://www.ipunct.net/blog/2009/06/temperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 09:03:46 +0000</pubDate>
		<dc:creator>Mario Rasser</dc:creator>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[SNMP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[3Ware]]></category>
		<category><![CDATA[NagiosGrapher]]></category>
		<category><![CDATA[smartctl]]></category>
		<category><![CDATA[smartmontools]]></category>

		<guid isPermaLink="false">http://blog.ipunct.net/?p=51</guid>
		<description><![CDATA[We have a 3Ware 9550SX-8LP installed in a Linuxserver running Ubuntu Server. What I am going to describe is, how we monitor the Harddisk Temperature via Nagios and graphing it via NagiosGrapher. This HowTo can easily be modified for other 3Ware Controllers. Installation and configuration of needed packages #aptitude install smartmontools snmpd Copy the a [...]]]></description>
			<content:encoded><![CDATA[<p>We have a <a href="http://www.3ware.com"target="_blank"rel="external"title="3Ware" >3Ware</a> 9550SX-8LP installed in a Linuxserver running <a href="http://www.ubuntu.org"target="_blank"rel="external"title="Ubuntu" >Ubuntu</a> Server. What I am going to describe is, how we monitor the Harddisk Temperature via <a href="http://www.nagios.org"target="_blank"rel="external"title="Nagios" >Nagios</a> and graphing it via NagiosGrapher. This HowTo can easily be modified for other 3Ware Controllers.<br />
<div id="attachment_313" class="wp-caption alignnone" style="width: 518px"><img class="size-large wp-image-313" title="Temperature graph from a 3Ware 9550SX-8LP with NagiosGrapher" src="http://www.ipunct.net/wp-content/uploads/2009/06/3ware_nagiographer_temp-508x335.png" alt="Temperature graph from a 3Ware 9550SX-8LP with NagiosGrapher" width="508" height="335" /><p class="wp-caption-text">Temperature graph from a 3Ware 9550SX-8LP with NagiosGrapher</p></div><span id="more-51"></span></p>
<h2>Installation and configuration of needed packages</h2>
<ul>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#aptitude install smartmontools snmpd</span></pre></div></div>

</li>
<li>Copy the a wrapper script for smartmontools to <strong>/usr/local/bin/get_smart_value.sh</strong>, it will be used by SNMP later

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Extract the Temperature Value from the SMART values gained by smartclt</span>
<span style="color: #666666; font-style: italic;"># the value 194 contains the HDD Temperature</span>
smartctl <span style="color: #660033;">-a</span> <span style="color: #660033;">-d</span> 3ware,<span style="color: #800000;">${1}</span> <span style="color: #800000;">${2}</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> ^<span style="color: #000000;">194</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $10}'</span></pre></div></div>

<p>&#8230; and do a <strong>chmod +x  /usr/local/bin/get_smart_value.sh</strong></li>
<li>Configure SNMPd to to run extend-Commands (<strong>/etc/snmp/snmpd.conf</strong>) and add at the end of the file:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">...
extend 3Ware_1_Port0 <span style="color: #ff0000;">'/usr/bin/sudo /usr/local/bin/get_smart_value.sh 0 /dev/twa0'</span>
extend 3Ware_1_Port1 <span style="color: #ff0000;">'/usr/bin/sudo /usr/local/bin/get_smart_value.sh 1 /dev/twa0'</span>
extend 3Ware_1_Port2 <span style="color: #ff0000;">'/usr/bin/sudo /usr/local/bin/get_smart_value.sh 2 /dev/twa0'</span>
extend 3Ware_1_Port3 <span style="color: #ff0000;">'/usr/bin/sudo /usr/local/bin/get_smart_value.sh 3 /dev/twa0'</span>
extend 3Ware_1_Port4 <span style="color: #ff0000;">'/usr/bin/sudo /usr/local/bin/get_smart_value.sh 4 /dev/twa0'</span>
extend 3Ware_1_Port5 <span style="color: #ff0000;">'/usr/bin/sudo /usr/local/bin/get_smart_value.sh 5 /dev/twa0'</span>
<span style="color: #666666; font-style: italic;">#in our system just 6 HDDs are connected so we will return 0 for the non used</span>
extend 3Ware_1_Port6 <span style="color: #ff0000;">'/bin/echo 0'</span>
extend 3Ware_1_Port7 <span style="color: #ff0000;">'/bin/echo 0'</span></pre></div></div>

<p>&#8230; and restart SNMPd with <strong>/etc/init.d/snmpd restart</strong></li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># visudo</span></pre></div></div>

<p>and add the following line</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">snmp    ALL = NOPASSWD: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>get_smart_value.sh</pre></div></div>

<p>&#8230; to allow <strong>snmp</strong> run the script as SuperUser, which is needed to get the S.M.A.R.T. values via smartctl</li>
</ul>
<h4>Nagios Temperature Checking</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">define service<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        use                             generic-service
        host_name                       your-server-with-3ware.name.tld
        service_description             3Ware Temp. 9550SX-8LP
        flap_detection_enabled          <span style="color: #000000;">1</span>
        max_check_attempts              <span style="color: #000000;">4</span>
        check_period                    24x7
        notification_period             24x7
        check_command                   check_snmp<span style="color: #000000; font-weight: bold;">!</span><span style="color: #007800;">$HOSTADDRESS</span><span style="color: #007800;">$!</span>yourcommunitystring<span style="color: #000000; font-weight: bold;">!</span>2c<span style="color: #000000; font-weight: bold;">!</span>.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.51.87.97.114.101.95.49.95.80.111.114.116.48.1,.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.51.87.97.114.101.95.49.95.80.111.114.116.49.1,.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.51.87.97.114.101.95.49.95.80.111.114.116.50.1,.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.51.87.97.114.101.95.49.95.80.111.114.116.51.1,.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.51.87.97.114.101.95.49.95.80.111.114.116.52.1,.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.51.87.97.114.101.95.49.95.80.111.114.116.53.1,.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.51.87.97.114.101.95.49.95.80.111.114.116.54.1,.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.51.87.97.114.101.95.49.95.80.111.114.116.55.1<span style="color: #000000; font-weight: bold;">!</span>NET-SNMP-EXTEND-MIB<span style="color: #000000; font-weight: bold;">!</span><span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">4</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #ff0000;">'Port Temperatures'</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #ff0000;">'C'</span>,<span style="color: #ff0000;">'C'</span>,<span style="color: #ff0000;">'C'</span>,<span style="color: #ff0000;">'C'</span>,<span style="color: #ff0000;">'C'</span>,<span style="color: #ff0000;">'C'</span>,<span style="color: #ff0000;">'C'</span>,<span style="color: #ff0000;">'C'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<h4>Nagiosgrapher</h4>
<p>in our config the Nagios Service is called &#8220;3Ware Temp. 9550SX-8LP&#8221;, so we put a config for nagiosgrapher into <strong>/etc/nagiosgrapher/ngraph.d</strong> called <strong>check_temp_3ware_smart_9550SX-8LP.ncfg</strong> that matches the serivce name and defines the needed RegExp to match the wanted data:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        graph_legend    Port <span style="color: #000000;">0</span>
        graph_legend_eol        none
        graph_perf_regex Port0\.1=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        graph_units     degree C
        graph_value     Temp1
        hide            no
        rrd_color       ff0000
        rrd_plottype    LINE1
        service_name    ^3Ware Temp. 9550SX-8LP
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        graph_legend    Port <span style="color: #000000;">1</span>
        graph_legend_eol        LEFT
        graph_perf_regex Port1\.1=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        graph_units     degree C
        graph_value     temp2
        hide    no
        rrd_color       0000ff
        rrd_plottype    LINE1
        service_name    ^3Ware Temp. 9550SX-8LP
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        graph_legend    Port <span style="color: #000000;">2</span>
        graph_legend_eol        LEFT
        graph_perf_regex Port2\.1=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        graph_units     degree C
        graph_value     temp3
        hide    no
        rrd_color       00ffff
        rrd_plottype    LINE1
        service_name    ^3Ware Temp. 9550SX-8LP
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        graph_legend    Port <span style="color: #000000;">3</span>
        graph_legend_eol        LEFT
        graph_perf_regex Port3\.1=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        graph_units     degree C
        graph_value     temp4
        hide    no
        rrd_color       00ff00
        rrd_plottype    LINE1
        service_name    ^3Ware Temp. 9550SX-8LP
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        graph_legend    Port <span style="color: #000000;">4</span>
        graph_legend_eol        LEFT
        graph_perf_regex Port4\.1=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        graph_units     degree C
        graph_value     temp5
        hide    no
        rrd_color       45ff00
        rrd_plottype    LINE1
        service_name    ^3Ware Temp. 9550SX-8LP
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        graph_legend    Port <span style="color: #000000;">5</span>
        graph_legend_eol        LEFT
        graph_perf_regex Port5\.1=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        graph_units     degree C
        graph_value     temp6
        hide    no
        rrd_color       00ff33
        rrd_plottype    LINE1
        service_name    ^3Ware Temp. 9550SX-8LP
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        graph_legend    Port <span style="color: #000000;">6</span>
        graph_legend_eol        LEFT
        graph_perf_regex Port6\.1=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        graph_units     degree C
        graph_value     temp7
        hide    no
        rrd_color       DDFFDD
        rrd_plottype    LINE1
        service_name    ^3Ware Temp. 9550SX-8LP
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        graph_legend    Port <span style="color: #000000;">7</span>
        graph_legend_eol        LEFT
        graph_perf_regex Port7\.1=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        graph_units     degree C
        graph_value     temp8
        hide    no
        rrd_color       aaffaa
        rrd_plottype    LINE1
        service_name    ^3Ware Temp. 9550SX-8LP
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Latest:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  LAST
        print_source    Temp1
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Maximum:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  MAX
        print_source    Temp1
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Average:
        print_eol       left
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  AVERAGE
        print_source    Temp1
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Latest:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  LAST
        print_source    temp2
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Maximum:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  MAX
        print_source    temp2
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Average:
        print_eol       left
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  AVERAGE
        print_source    temp2
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Latest:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  LAST
        print_source    temp3
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Maximum:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  MAX
        print_source    temp3
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Average:
        print_eol       left
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  AVERAGE
        print_source    temp3
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Latest:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  LAST
        print_source    temp4
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Maximum:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  MAX
        print_source    temp4
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Average:
        print_eol       left
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  AVERAGE
        print_source    temp4
        service_name    ^3Ware Temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Latest:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  LAST
        print_source    temp5
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Maximum:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  MAX
        print_source    temp5
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Average:
        print_eol       left
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  AVERAGE
        print_source    temp5
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Latest:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  LAST
        print_source    temp6
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Maximum:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  MAX
        print_source    temp6
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Average:
        print_eol       left
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  AVERAGE
        print_source    temp6
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Latest:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  LAST
        print_source    temp7
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Maximum:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  MAX
        print_source    temp7
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Average:
        print_eol       left
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  AVERAGE
        print_source    temp7
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Latest:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  LAST
        print_source    temp8
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Maximum:
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  MAX
        print_source    temp8
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
define ngraph<span style="color: #7a0874; font-weight: bold;">&#123;</span>
        print_description       Average:
        print_eol       left
        print_format    <span style="color: #000000; font-weight: bold;">%</span>2.2lf
        print_function  AVERAGE
        print_source    temp8
        service_name    ^3Ware temp. 9550SX-8LP
        <span style="color: #7a0874; font-weight: bold;">type</span>    GPRINT
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<h4>BONUS: Short smartctl/3Ware excures</h4>
<ul>
<li>smartctl that comes with the smartmontools package is able to read the S.M.A.R.T. values from HDDs on a 3Ware Controller</li>
<li>it needs the 3Ware Port that should by queried for data and the 3ware blockdevice, on the newer controller series of 3Ware they are /dev/twaX, where X is the controller number and is starting at 0. So the first controller ist /dev/twa0 the second /dev/twa1 and so on.</li>
<li>older 3Ware controllers are using /dev/twe instead, just have a look and maybe modify the SNMP extend section to get the info from the correct controller/devive</li>
<li>Output on one of our System:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># smartctl -a -d 3ware,0 /dev/twa0</span>
smartctl version <span style="color: #000000;">5.37</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>x86_64-unknown-linux-gnu<span style="color: #7a0874; font-weight: bold;">&#93;</span> Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>C<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2002</span>-<span style="color: #000000;">6</span> Bruce Allen
Home page is http:<span style="color: #000000; font-weight: bold;">//</span>smartmontools.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar RE Serial ATA series
Device Model:     WDC WD4000YS-01MPB1
Serial Number:    WD-WCANU1569566
Firmware Version: 09.02E09
User Capacity:    400.088.457.216 bytes
Device is:        In smartctl database <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">for</span> details use: <span style="color: #660033;">-P</span> show<span style="color: #7a0874; font-weight: bold;">&#93;</span>
ATA Version is:   <span style="color: #000000;">7</span>
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Fri Jul <span style="color: #000000;">10</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">53</span>:<span style="color: #000000;">57</span> <span style="color: #000000;">2009</span> CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
&nbsp;
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment <span style="color: #7a0874; font-weight: bold;">test</span> result: PASSED
&nbsp;
General SMART Values:
Offline data collection status:  <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x84<span style="color: #7a0874; font-weight: bold;">&#41;</span> Offline data collection activity
                                        was suspended by an interrupting <span style="color: #7a0874; font-weight: bold;">command</span> from host.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      <span style="color: #7a0874; font-weight: bold;">&#40;</span>   <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total <span style="color: #000000; font-weight: bold;">time</span> to <span style="color: #7a0874; font-weight: bold;">complete</span> Offline
data collection:                 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">11880</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> seconds.
Offline data collection
capabilities:                    <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x7b<span style="color: #7a0874; font-weight: bold;">&#41;</span> SMART execute Offline immediate.
                                        Auto Offline data collection on<span style="color: #000000; font-weight: bold;">/</span>off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x0003<span style="color: #7a0874; font-weight: bold;">&#41;</span> Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x01<span style="color: #7a0874; font-weight: bold;">&#41;</span> Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling <span style="color: #000000; font-weight: bold;">time</span>:        <span style="color: #7a0874; font-weight: bold;">&#40;</span>   <span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> minutes.
Extended self-test routine
recommended polling <span style="color: #000000; font-weight: bold;">time</span>:        <span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #000000;">149</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> minutes.
Conveyance self-test routine
recommended polling <span style="color: #000000; font-weight: bold;">time</span>:        <span style="color: #7a0874; font-weight: bold;">&#40;</span>   <span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> minutes.
&nbsp;
SMART Attributes Data Structure revision number: <span style="color: #000000;">16</span>
Vendor Specific SMART Attributes with Thresholds:
ID<span style="color: #666666; font-style: italic;"># ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE</span>
  <span style="color: #000000;">1</span> Raw_Read_Error_Rate     0x000f   <span style="color: #000000;">200</span>   <span style="color: #000000;">200</span>   051    Pre-fail  Always       -       <span style="color: #000000;">0</span>
  <span style="color: #000000;">3</span> Spin_Up_Time            0x0003   <span style="color: #000000;">218</span>   <span style="color: #000000;">218</span>   021    Pre-fail  Always       -       <span style="color: #000000;">6100</span>
  <span style="color: #000000;">4</span> Start_Stop_Count        0x0032   <span style="color: #000000;">100</span>   <span style="color: #000000;">100</span>   000    Old_age   Always       -       <span style="color: #000000;">19</span>
  <span style="color: #000000;">5</span> Reallocated_Sector_Ct   0x0033   <span style="color: #000000;">200</span>   <span style="color: #000000;">200</span>   <span style="color: #000000;">140</span>    Pre-fail  Always       -       <span style="color: #000000;">0</span>
  <span style="color: #000000;">7</span> Seek_Error_Rate         0x000f   <span style="color: #000000;">200</span>   <span style="color: #000000;">200</span>   051    Pre-fail  Always       -       <span style="color: #000000;">0</span>
  <span style="color: #000000;">9</span> Power_On_Hours          0x0032   085   085   000    Old_age   Always       -       <span style="color: #000000;">11445</span>
 <span style="color: #000000;">10</span> Spin_Retry_Count        0x0013   <span style="color: #000000;">100</span>   <span style="color: #000000;">253</span>   051    Pre-fail  Always       -       <span style="color: #000000;">0</span>
 <span style="color: #000000;">11</span> Calibration_Retry_Count 0x0012   <span style="color: #000000;">100</span>   <span style="color: #000000;">253</span>   051    Old_age   Always       -       <span style="color: #000000;">0</span>
 <span style="color: #000000;">12</span> Power_Cycle_Count       0x0032   <span style="color: #000000;">100</span>   <span style="color: #000000;">100</span>   000    Old_age   Always       -       <span style="color: #000000;">18</span>
<span style="color: #000000;">194</span> Temperature_Celsius     0x0022   <span style="color: #000000;">114</span>   <span style="color: #000000;">113</span>   000    Old_age   Always       -       <span style="color: #000000;">38</span>
<span style="color: #000000;">196</span> Reallocated_Event_Count 0x0032   <span style="color: #000000;">200</span>   <span style="color: #000000;">200</span>   000    Old_age   Always       -       <span style="color: #000000;">0</span>
<span style="color: #000000;">197</span> Current_Pending_Sector  0x0012   <span style="color: #000000;">200</span>   <span style="color: #000000;">200</span>   000    Old_age   Always       -       <span style="color: #000000;">0</span>
<span style="color: #000000;">198</span> Offline_Uncorrectable   0x0010   <span style="color: #000000;">200</span>   <span style="color: #000000;">200</span>   000    Old_age   Offline      -       <span style="color: #000000;">0</span>
<span style="color: #000000;">199</span> UDMA_CRC_Error_Count    0x003e   <span style="color: #000000;">200</span>   <span style="color: #000000;">200</span>   000    Old_age   Always       -       <span style="color: #000000;">0</span>
<span style="color: #000000;">200</span> Multi_Zone_Error_Rate   0x0009   <span style="color: #000000;">200</span>   <span style="color: #000000;">200</span>   051    Pre-fail  Offline      -       <span style="color: #000000;">0</span>
&nbsp;
SMART Error Log Version: <span style="color: #000000;">1</span>
No Errors Logged
&nbsp;
SMART Self-test log structure revision number <span style="color: #000000;">1</span>
Num  Test_Description    Status                  Remaining  LifeTime<span style="color: #7a0874; font-weight: bold;">&#40;</span>hours<span style="color: #7a0874; font-weight: bold;">&#41;</span>  LBA_of_first_error
<span style="color: #666666; font-style: italic;"># 1  Short captive       Interrupted (host reset)      90%      4274         -</span>
<span style="color: #666666; font-style: italic;"># 2  Short offline       Completed without error       00%      4122         -</span>
<span style="color: #666666; font-style: italic;"># 3  Short offline       Completed without error       00%      3954         -</span>
<span style="color: #666666; font-style: italic;"># 4  Short offline       Completed without error       00%      3786         -</span>
<span style="color: #666666; font-style: italic;"># 5  Short offline       Completed without error       00%      3618         -</span>
<span style="color: #666666; font-style: italic;"># 6  Short offline       Completed without error       00%      3451         -</span>
<span style="color: #666666; font-style: italic;"># 7  Short offline       Completed without error       00%      3283         -</span>
<span style="color: #666666; font-style: italic;"># 8  Short offline       Completed without error       00%      3115         -</span>
<span style="color: #666666; font-style: italic;"># 9  Short offline       Completed without error       00%      2947         -</span>
<span style="color: #666666; font-style: italic;">#10  Short offline       Completed without error       00%      2779         -</span>
<span style="color: #666666; font-style: italic;">#11  Short offline       Completed without error       00%      2611         -</span>
<span style="color: #666666; font-style: italic;">#12  Short offline       Completed without error       00%      2443         -</span>
<span style="color: #666666; font-style: italic;">#13  Short offline       Completed without error       00%      2275         -</span>
<span style="color: #666666; font-style: italic;">#14  Short offline       Completed without error       00%      2107         -</span>
<span style="color: #666666; font-style: italic;">#15  Short offline       Completed without error       00%      1940         -</span>
<span style="color: #666666; font-style: italic;">#16  Short offline       Completed without error       00%      1772         -</span>
<span style="color: #666666; font-style: italic;">#17  Short offline       Completed without error       00%      1604         -</span>
<span style="color: #666666; font-style: italic;">#18  Short offline       Completed without error       00%      1436         -</span>
<span style="color: #666666; font-style: italic;">#19  Short offline       Completed without error       00%      1268         -</span>
<span style="color: #666666; font-style: italic;">#20  Short offline       Completed without error       00%      1101         -</span>
<span style="color: #666666; font-style: italic;">#21  Short offline       Completed without error       00%       933         -</span>
&nbsp;
SMART Selective self-test log data structure revision number <span style="color: #000000;">1</span>
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    <span style="color: #000000;">1</span>        <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span>  Not_testing
    <span style="color: #000000;">2</span>        <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span>  Not_testing
    <span style="color: #000000;">3</span>        <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span>  Not_testing
    <span style="color: #000000;">4</span>        <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span>  Not_testing
    <span style="color: #000000;">5</span>        <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span>  Not_testing
Selective self-test flags <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x0<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
  After scanning selected spans, <span style="color: #000000; font-weight: bold;">do</span> NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after <span style="color: #000000;">0</span> minute delay.</pre></div></div>

</li>
</ul>
<ul class="socialwrap size24 row">
<li class="iconOnly share">Teilen:</li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="delicious" href="http://delicious.com/post?url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F06%2Ftemperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher%2F&amp;title=Temperature+Monitoring+of+3Ware+Controller+with+smartmontools%2C+Nagios+and+NagiosGrapher" title="Bookmark this post : Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher on Delicious"><span class="head">Delicious</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="digg" href="http://digg.com/submit?url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F06%2Ftemperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher%2F&amp;title=Temperature+Monitoring+of+3Ware+Controller+with+smartmontools%2C+Nagios+and+NagiosGrapher&amp;bodytext=We+have+a+3Ware+9550SX-8LP+installed+in+a+Linuxserver+running+Ubuntu+Server.+What+I+am+going+to+describe+is%2C+how+we+monitor+the+Harddisk+Temperature+via+Nagios+and+graphing+it+via+NagiosGrapher.+This+HowTo+can+easily+be+modified+for+other+3Ware+Controllers.%0D%0A%5Bcaption+id%3D%22attachment_313%22+align%3D%22alignnone%22+width%3D%22508%22+ca" title="Digg this post : Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher"><span class="head">Digg this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="facebook" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F06%2Ftemperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher%2F&amp;t=Temperature+Monitoring+of+3Ware+Controller+with+smartmontools%2C+Nagios+and+NagiosGrapher" title="Recommend this post : Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher on Facebook"><span class="head">Facebook</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F06%2Ftemperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher%2F&amp;title=Temperature+Monitoring+of+3Ware+Controller+with+smartmontools%2C+Nagios+and+NagiosGrapher&amp;&amp;summary=" title="Share this post : Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher on Linkedin"><span class="head">Linkedin</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="twitter" href="http://twitter.com/home/?status=Temperature+Monitoring+of+3Ware+Controller+with+smartmontools%2C+Nagios+and+NagiosGrapher+-+http%3A%2F%2Fbit.ly%2FaL5sK3" title="Tweet this post : Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher on Twitter"><span class="head">Twitter</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="xing" href="http://www.xing.com/app/user?op=share;url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F06%2Ftemperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher%2F" title="Share this post : Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher on xing"><span class="head">Share on xing</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="rss" href="http://www.ipunct.net/blog/2009/06/temperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher/feed" title="Follow this post : Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher comments"><span class="head">Subscribe to the comments on this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="bookmark" href="javascript:window.bookMark('http://www.ipunct.net/blog/2009/06/temperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher/', 'Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher');" title="Bookmark this post : Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher"><span class="head">Bookmark in Browser</span></a></li>
</ul>
<div class="clean"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ipunct.net/blog/2009/06/temperature-monitoring-of-3ware-controller-with-smartmontools-nagios-and-nagiosgrapher/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>(Arrow) keys are not working in VMWare guest</title>
		<link>http://www.ipunct.net/blog/2009/05/arrow-keys-are-not-working-in-vmware-guest/</link>
		<comments>http://www.ipunct.net/blog/2009/05/arrow-keys-are-not-working-in-vmware-guest/#comments</comments>
		<pubDate>Wed, 06 May 2009 13:41:17 +0000</pubDate>
		<dc:creator>Mario Rasser</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Arrow]]></category>
		<category><![CDATA[Keys]]></category>

		<guid isPermaLink="false">http://blog.ipunct.net/?p=43</guid>
		<description><![CDATA[We had problems within some keys like Arrow, Up, Down etc. in the Guest OS running on a Ubuntu 8.10 and 9.04 running VMWare Server 2.0. The keymapping between host and guest is broken. That could be fixed with the following entries in ~/.vmware/config (create the file if it is not existing). The file is [...]]]></description>
			<content:encoded><![CDATA[<p>We had problems within some keys like Arrow, Up, Down etc. in the Guest OS running on a <a href="http://www.ubuntu.org"target="_blank"rel="external"title="Ubuntu" >Ubuntu</a> 8.10 and 9.04 running <a href="http://www.vmware.com"target="_blank"rel="external"title="VMWare" >VMWare</a> Server 2.0. The keymapping between host and guest is broken. That could be fixed with the following entries in <code>~/.vmware/config</code> (create the file if it is not existing). The file is located in the home of the user that runs ther VMWare Console, e.g. from the VMWare Infrastructure Web Access environment.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xkeymap.keycode.108 = 0x138 <span style="color: #666666; font-style: italic;"># Alt_R</span>
xkeymap.keycode.106 = 0x135 <span style="color: #666666; font-style: italic;"># KP_Divide</span>
xkeymap.keycode.104 = 0x11c <span style="color: #666666; font-style: italic;"># KP_Enter</span>
xkeymap.keycode.111 = 0x148 <span style="color: #666666; font-style: italic;"># Up</span>
xkeymap.keycode.116 = 0x150 <span style="color: #666666; font-style: italic;"># Down</span>
xkeymap.keycode.113 = 0x14b <span style="color: #666666; font-style: italic;"># Left</span>
xkeymap.keycode.114 = 0x14d <span style="color: #666666; font-style: italic;"># Right</span>
xkeymap.keycode.105 = 0x11d <span style="color: #666666; font-style: italic;"># Control_R</span>
xkeymap.keycode.118 = 0x152 <span style="color: #666666; font-style: italic;"># Insert</span>
xkeymap.keycode.119 = 0x153 <span style="color: #666666; font-style: italic;"># Delete</span>
xkeymap.keycode.110 = 0x147 <span style="color: #666666; font-style: italic;"># Home</span>
xkeymap.keycode.115 = 0x14f <span style="color: #666666; font-style: italic;"># End</span>
xkeymap.keycode.112 = 0x149 <span style="color: #666666; font-style: italic;"># Prior</span>
xkeymap.keycode.117 = 0x151 <span style="color: #666666; font-style: italic;"># Next</span>
xkeymap.keycode.78 = 0x46 <span style="color: #666666; font-style: italic;"># Scroll_Lock</span>
xkeymap.keycode.127 = 0x100 <span style="color: #666666; font-style: italic;"># Pause</span>
xkeymap.keycode.133 = 0x15b <span style="color: #666666; font-style: italic;"># Meta_L</span>
xkeymap.keycode.134 = 0x15c <span style="color: #666666; font-style: italic;"># Meta_R</span>
xkeymap.keycode.135 = 0x15d <span style="color: #666666; font-style: italic;"># Menu</span></pre></div></div>

<p><span id="more-43"></span>Restart the guest virtual machine and the keymapping works as it should.<br />
The solution was found in the mentioned reference.</p>
<p>Reference:</p>
<ul>
<li><small><a href="http://communities.vmware.com/thread/175165">VMWare Forum &#8211; Thread 175165</a></small></li>
</ul>
<ul class="socialwrap size24 row">
<li class="iconOnly share">Teilen:</li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="delicious" href="http://delicious.com/post?url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F05%2Farrow-keys-are-not-working-in-vmware-guest%2F&amp;title=%28Arrow%29+keys+are+not+working+in+VMWare+guest" title="Bookmark this post : (Arrow) keys are not working in VMWare guest on Delicious"><span class="head">Delicious</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="digg" href="http://digg.com/submit?url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F05%2Farrow-keys-are-not-working-in-vmware-guest%2F&amp;title=%28Arrow%29+keys+are+not+working+in+VMWare+guest&amp;bodytext=We+had+problems+within+some+keys+like+Arrow%2C+Up%2C+Down+etc.+in+the+Guest+OS+running+on+a+Ubuntu+8.10+and+9.04+running+VMWare+Server+2.0.+The+keymapping+between+host+and+guest+is+broken.+That+could+be+fixed+with+the+following+entries+in+%7E%2F.vmware%2Fconfig+%28create+the+file+if+it+is+not+existing%29.+The+file+is+located+in+the+" title="Digg this post : (Arrow) keys are not working in VMWare guest"><span class="head">Digg this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="facebook" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F05%2Farrow-keys-are-not-working-in-vmware-guest%2F&amp;t=%28Arrow%29+keys+are+not+working+in+VMWare+guest" title="Recommend this post : (Arrow) keys are not working in VMWare guest on Facebook"><span class="head">Facebook</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F05%2Farrow-keys-are-not-working-in-vmware-guest%2F&amp;title=%28Arrow%29+keys+are+not+working+in+VMWare+guest&amp;&amp;summary=" title="Share this post : (Arrow) keys are not working in VMWare guest on Linkedin"><span class="head">Linkedin</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="twitter" href="http://twitter.com/home/?status=%28Arrow%29+keys+are+not+working+in+VMWare+guest+-+http%3A%2F%2Fbit.ly%2FawsnVW" title="Tweet this post : (Arrow) keys are not working in VMWare guest on Twitter"><span class="head">Twitter</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="xing" href="http://www.xing.com/app/user?op=share;url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F05%2Farrow-keys-are-not-working-in-vmware-guest%2F" title="Share this post : (Arrow) keys are not working in VMWare guest on xing"><span class="head">Share on xing</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="rss" href="http://www.ipunct.net/blog/2009/05/arrow-keys-are-not-working-in-vmware-guest/feed" title="Follow this post : (Arrow) keys are not working in VMWare guest comments"><span class="head">Subscribe to the comments on this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="bookmark" href="javascript:window.bookMark('http://www.ipunct.net/blog/2009/05/arrow-keys-are-not-working-in-vmware-guest/', '(Arrow) keys are not working in VMWare guest');" title="Bookmark this post : (Arrow) keys are not working in VMWare guest"><span class="head">Bookmark in Browser</span></a></li>
</ul>
<div class="clean"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ipunct.net/blog/2009/05/arrow-keys-are-not-working-in-vmware-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install VMWare Tools on Ubuntu Server</title>
		<link>http://www.ipunct.net/blog/2009/04/install-vmware-tools-on-ubuntu-server/</link>
		<comments>http://www.ipunct.net/blog/2009/04/install-vmware-tools-on-ubuntu-server/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 14:02:12 +0000</pubDate>
		<dc:creator>Mario Rasser</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMWare-Tools]]></category>

		<guid isPermaLink="false">http://blog.ipunct.net/?p=34</guid>
		<description><![CDATA[How to install VMWare Tools on Ubuntu (tested on Ubuntu 8.10 and 8.04 LTS) in a rush: Within your VMWare Infrastructure Client or WebGUI do a &#8220;Install VMWare Tools&#8221; VMWare will provide a ISO Image with the VMWare Tools to the Virtual Machine SSH to the Ubuntu Server you want the VMWare Tools be installed [...]]]></description>
			<content:encoded><![CDATA[<p>How to install <a href="http://www.vmware.com"target="_blank"rel="external"title="VMWare" >VMWare</a> Tools on <a href="http://www.ubuntu.org"target="_blank"rel="external"title="Ubuntu" >Ubuntu</a> (tested on Ubuntu 8.10 and 8.04 LTS) in a rush:</p>
<ul>
<li>Within your VMWare Infrastructure Client or WebGUI do a &#8220;Install VMWare Tools&#8221;</li>
<li>VMWare will provide a ISO Image with the VMWare Tools to the Virtual Machine</li>
<li>SSH to the Ubuntu Server you want the VMWare Tools be installed</li>
<li>OPTIONAL but prefered:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span> -
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> update
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> full-upgrade</pre></div></div>

</li>
<li>do the following steps as root or prefix a <code>sudo</code>:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cdrom
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>cdrom0<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> VMwareTools-2.0.0-122956.tar.gz <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> xfzv VMwareTools-2.0.0-122956.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> vmware-tools-distrib<span style="color: #000000; font-weight: bold;">/</span>
.<span style="color: #000000; font-weight: bold;">/</span>vmware-install.pl
<span style="color: #666666; font-style: italic;"># answer the question via defaults</span>
init <span style="color: #000000;">6</span></pre></div></div>

</li>
</ul>
<ul class="socialwrap size24 row">
<li class="iconOnly share">Teilen:</li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="delicious" href="http://delicious.com/post?url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F04%2Finstall-vmware-tools-on-ubuntu-server%2F&amp;title=Install+VMWare+Tools+on+Ubuntu+Server" title="Bookmark this post : Install VMWare Tools on Ubuntu Server on Delicious"><span class="head">Delicious</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="digg" href="http://digg.com/submit?url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F04%2Finstall-vmware-tools-on-ubuntu-server%2F&amp;title=Install+VMWare+Tools+on+Ubuntu+Server&amp;bodytext=How+to+install+VMWare+Tools+on+Ubuntu+%28tested+on+Ubuntu+8.10+and+8.04+LTS%29+in+a+rush%3A%0A%0A%09Within+your+VMWare+Infrastructure+Client+or+WebGUI+do+a+%22Install+VMWare+Tools%22%0A%09VMWare+will+provide+a+ISO+Image+with+the+VMWare+Tools+to+the+Virtual+Machine%0A%09SSH+to+the+Ubuntu+Server+you+want+the+VMWare+Tools+be+installed%0A%09OPTIONAL+" title="Digg this post : Install VMWare Tools on Ubuntu Server"><span class="head">Digg this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="facebook" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F04%2Finstall-vmware-tools-on-ubuntu-server%2F&amp;t=Install+VMWare+Tools+on+Ubuntu+Server" title="Recommend this post : Install VMWare Tools on Ubuntu Server on Facebook"><span class="head">Facebook</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F04%2Finstall-vmware-tools-on-ubuntu-server%2F&amp;title=Install+VMWare+Tools+on+Ubuntu+Server&amp;&amp;summary=" title="Share this post : Install VMWare Tools on Ubuntu Server on Linkedin"><span class="head">Linkedin</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="twitter" href="http://twitter.com/home/?status=Install+VMWare+Tools+on+Ubuntu+Server+-+http%3A%2F%2Fbit.ly%2Fa2eBC5" title="Tweet this post : Install VMWare Tools on Ubuntu Server on Twitter"><span class="head">Twitter</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="xing" href="http://www.xing.com/app/user?op=share;url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F04%2Finstall-vmware-tools-on-ubuntu-server%2F" title="Share this post : Install VMWare Tools on Ubuntu Server on xing"><span class="head">Share on xing</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="rss" href="http://www.ipunct.net/blog/2009/04/install-vmware-tools-on-ubuntu-server/feed" title="Follow this post : Install VMWare Tools on Ubuntu Server comments"><span class="head">Subscribe to the comments on this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="bookmark" href="javascript:window.bookMark('http://www.ipunct.net/blog/2009/04/install-vmware-tools-on-ubuntu-server/', 'Install VMWare Tools on Ubuntu Server');" title="Bookmark this post : Install VMWare Tools on Ubuntu Server"><span class="head">Bookmark in Browser</span></a></li>
</ul>
<div class="clean"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ipunct.net/blog/2009/04/install-vmware-tools-on-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
