<font><font face="trebuchet ms,sans-serif"><div><font><font face="trebuchet ms,sans-serif"><br></font></font></div>Bret & Feri,</font></font><div><font><font face="trebuchet ms,sans-serif"><br clear="all"></font></font><div>


Oh how embarrassing.. You are both right. HDTEMP is (null) because hddtemp needs root privileges. </div><div><br></div><div>I assumed I would be rusty after all these yeas but not so much to miss something this amateurish. </div>

<div><br></div><div>Thank you for your help and forgive me.</div>
<div><br></div><div>Blessings,</div><div>Mark Clayton</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>
<br><br><div class="gmail_quote">On Tue, Jan 17, 2012 at 02:14, Ferenc Wagner <span dir="ltr"><<a href="mailto:wferi@niif.hu" target="_blank">wferi@niif.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>Mark Clayton <<a href="mailto:clayton256@gmail.com" target="_blank">clayton256@gmail.com</a>> writes:<br>
<br>
>     HDTEMP=$(/user/sbin/hddtemp $DRIVE | awk '{ print $4}' | awk -F '°' '{ print $1}')<br>
><br>
</div><div>> root@little-harbor:/home/mark# /usr/lib/nagios/plugins/check_hddtemp -d /dev/sda<br>
> (/dev/sda)=36 C.<br>
><br>
> But Firefox and Safari show:<br>
</div>>  Disk Temperature<<a href="http://little-harbor.local/cgi-bin/nagios3/extinfo.cgi?type=2&host=localhost&service=Disk+Temperature" target="_blank">http://little-harbor.local/cgi-bin/nagios3/extinfo.cgi?type=2&host=localhost&service=Disk+Temperature</a>><br>



> OK <a href="tel:2012-01-16%2013" value="+12012011613" target="_blank">2012-01-16 13</a>:14:550d 4h 8m 22s 1/4(/dev/sda)= C.<br>
<br>
/usr/sbin/hddtemp probably requires elevated privileges, which it has<br>
when run from a root shell, but not when run by Nagios.  You'll probably<br>
have to configure passwordless sudo from the nagios user to root or disk<br>
for this command.<br>
--<br>
Regards,<br>
Feri.<br>
<br>
------------------------------------------------------------------------------<br>
Keep Your Developer Skills Current with LearnDevNow!<br>
The most comprehensive online learning library for Microsoft developers<br>
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,<br>
Metro Style Apps, more. Free future releases when you subscribe now!<br>
<a href="http://p.sf.net/sfu/learndevnow-d2d" target="_blank">http://p.sf.net/sfu/learndevnow-d2d</a><br>
_______________________________________________________<br>
Nagios Plugin Development Mailing List <a href="mailto:Nagiosplug-devel@lists.sourceforge.net" target="_blank">Nagiosplug-devel@lists.sourceforge.net</a><br>
Unsubscribe at <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null</blockquote></div><br></div>