<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=311591423-21112002>Figured it out (with the help from
Sensatronics).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=311591423-21112002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=311591423-21112002>My
nagios user did not have permission to /dev/ttyS0 </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=311591423-21112002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=311591423-21112002>1.
chmod o+rw /dev/ttys0</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=311591423-21112002>2.
change the group ownership to something that contains root & nagios
user.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=311591423-21112002></SPAN></FONT> </DIV>
<DIV><FONT face=Tahoma size=2><BR><B>Subject:</B> [Nagiosplug-help] TempTrax
Problem<BR><BR></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><SPAN class=560371522-21112002><FONT face=Arial size=2>If I run
./check_temptrax from the command line I get:</FONT></SPAN></DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial size=2>./check_temptrax
-w 77 -c 88 -S 1 -f 0</FONT></SPAN></DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial size=2>Temp Ok: Sensor 1
= 21.1 Deg. C</FONT></SPAN></DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial size=2>Nagios Reports:
</FONT></SPAN></DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial size=2>Temp Ok: Sensor 1
= 17.8 Deg. C</FONT></SPAN></DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial size=2>My Check Command
(in Nagios) is:</FONT></SPAN></DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial size=2>define
command{</FONT></SPAN></DIV>
<DIV><SPAN class=560371522-21112002> <FONT face=Arial
size=2>command_name check_temp</FONT></SPAN></DIV>
<DIV><SPAN class=560371522-21112002> <FONT face=Arial
size=2>command_line $USER1$/check_temptrax
-w 77 -c 88 -S 1 -f 0</FONT></SPAN></DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=560371522-21112002><FONT face=Arial
size=2>-Jeff</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>