<font><font face="trebuchet ms,sans-serif"><div><br></div><div>I put together a bash script to use as a plugin. It is to monitor a hard drive temperature via hddtemp on a linux box. I based the script on check_log. The interesting bits are:</div>


<div><font><font face="trebuchet ms,sans-serif"><br></font></font></div><snip><br clear="all"></font></font><div><div>    HDTEMP=$(/user/sbin/hddtemp $DRIVE | awk '{ print $4}' | awk -F '°' '{ print $1}')</div>

<div><snip></div>
<div>    /bin/echo "($DRIVE)=${HDTEMP} C."</div></div><div><snip></div><div><br></div><div>The command line output looks fine:</div><div><br></div><div><div>root@little-harbor:/home/mark# /usr/lib/nagios/plugins/check_hddtemp -d /dev/sda</div>


<div>(/dev/sda)=36 C.</div></div><div><br></div><div>But Firefox and Safari show:</div><div><span style="font-family:arial,serif;font-size:13px"><table border="0" width="100%" style="padding-left:2px;padding-right:2px;padding-top:2px;font-size:8pt;font-family:arial,serif;padding-bottom:2px">


<tbody><tr><td style="font-family:arial,serif;font-size:8pt;background-color:rgb(219,219,219)"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tbody><tr><td align="LEFT"><table border="0" cellspacing="0" cellpadding="0">


<tbody><tr><td align="LEFT" valign="center" style="font-family:arial,serif;font-size:8pt;background-color:rgb(219,219,219)"><a href="http://little-harbor.local/cgi-bin/nagios3/extinfo.cgi?type=2&host=localhost&service=Disk+Temperature" target="_blank">Disk Temperature</a></td>


</tr></tbody></table></td><td align="RIGHT" style="font-family:arial,serif;font-size:8pt;background-color:rgb(219,219,219)"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr></tr></tbody></table>
</td></tr></tbody></table></td><td style="font-family:arial,serif;font-size:8pt;background-color:rgb(51,255,0)">OK</td><td nowrap style="font-family:arial,serif;font-size:8pt;background-color:rgb(219,219,219)">
<a href="tel:2012-01-16%2013" value="+12012011613" target="_blank">2012-01-16 13</a>:14:55</td><td nowrap style="font-family:arial,serif;font-size:8pt;background-color:rgb(219,219,219)">0d 4h 8m 22s</td><td style="font-family:arial,serif;font-size:8pt;background-color:rgb(219,219,219)">


1/4</td><td valign="center" style="font-family:arial,serif;font-size:8pt;background-color:rgb(219,219,219)">(/dev/sda)= C. </td></tr></tbody></table></span>
</div><div><span style="font-family:arial,serif;font-size:13px"><br></span></div><div><span style="font-family:arial,serif;font-size:13px">The machine details are:</span></div><div><span style="font-family:arial,serif;font-size:13px"><span class="Apple-style-span" style="font-family:'trebuchet ms',sans-serif;font-size:small">Ubuntu 11.10</span></span></div>

<div><span style="font-family:arial,serif;font-size:13px"><span class="Apple-style-span" style="font-family:'trebuchet ms',sans-serif;font-size:small">Nagios core 3.2.3</span></span></div><div><span style="font-family:arial,serif;font-size:13px"><span class="Apple-style-span" style="font-family:'trebuchet ms',sans-serif;font-size:small">Nagios plugins 1.4.15</span></span></div>

<div><span style="font-family:arial,serif;font-size:13px"><span class="Apple-style-span" style="font-family:'trebuchet ms',sans-serif;font-size:small">Apache 2.2.20</span></span></div><div><span style="font-family:arial,serif;font-size:13px"><br>

</span></div><div><span style="font-family:arial,serif;font-size:13px">Does anyone have any thoughts?</span></div>
<div><span style="font-family:arial,serif;font-size:13px"><br></span></div><div><span style="font-family:arial,serif;font-size:13px">Thanks,</span></div><div><span style="font-family:arial,serif;font-size:13px">Mark</span></div>


<div>--</div><a href="http://claytoncapers.blogspot.com" target="_blank">claytoncapers.blogspot.com</a><div><a href="http://www.mark-clayton.com" target="_blank">www.mark-clayton.com</a></div><div><br></div><br>