<br><font size=2 face="sans-serif">When I su to nagios I get an error but
the sms still sends....  The error is fopen : Pemission denied, sending
logs to stderr.  thats all.</font>
<br>
<br><font size=2 face="sans-serif">Had the initial problem of the nagios
user not having access to the comm ports, but fixed that at least in the
test.</font>
<br>
<br><font size=2 face="sans-serif">I have not got a clue about the fopen
thing and I don't have an fopen command on the box.</font>
<br>
<br><font size=2 face="sans-serif">J</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td>
<div align=right><font size=1 face="sans-serif"><b>"Marc Powell"
<marc@ena.com></b></font>
<p><font size=1 face="sans-serif">19/05/2004 13:21</font></div>
<td><font size=1 face="Arial">        </font>
<br><font size=1 face="sans-serif">        To:
       "Onsite DeTeWe" <Onsite.DeTeWe@firstgroup.com>,
<nagios-users@lists.sourceforge.net></font>
<br><font size=1 face="sans-serif">        cc:
       </font>
<br><font size=1 face="sans-serif">        Subject:
       RE: [Nagios-users] SMS notifications</font></table>
<br>
<br>
<br>
<br>
<br><font size=2><tt>________________________________<br>
</tt></font>
<br><font size=2><tt>From: Onsite DeTeWe [mailto:Onsite.DeTeWe@firstgroup.com]<br>
Sent: Wednesday, May 19, 2004 4:34 AM<br>
To: nagios-users@lists.sourceforge.net<br>
Subject: [Nagios-users] SMS notifications<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>Hi All,<br>
</tt></font>
<br><font size=2><tt>I have just setup a mobile gateway on our nagios box
(6310i with serial<br>
lead ;-).  Got all the SMS stuff working using gnokii which works
a<br>
treat.  Recommend it to anyone.  However, when I try and get
nagios to<br>
use a new notify routine it fails to send the text.<br>
</tt></font>
<br><font size=2><tt>Debug so far.<br>
</tt></font>
<br><font size=2><tt>Got gnokii to send SMS direct.<br>
Added notify-by-sms to misccommands.cfg.</tt></font>
<br><font size=2><tt>I know the above works as I then cut the command from
the .cfg<br>
and run it from the command line direct and it works.<br>
</tt></font>
<br><font size=2><tt>Could this be a permissions thing associated with
the nagios user???<br>
</tt></font>
<br><font size=2><tt><marc> -- Yes certainly (and most likely the
problem). Did you run your<br>
test as root or the nagios user? You must be su'd to nagios to truly<br>
test it in the way that nagios would send the notification.<br>
</tt></font>
<br><font size=2><tt>--<br>
Marc<br>
</tt></font>
<br>
<br><FONT SIZE=3><BR>
<BR>
**********************************************************************<BR>
This message is confidential. It may not be disclosed to, or used by, <BR>
anyone other than the addressee. If you receive this message in <BR>
error, please advise us immediately.<BR>
<BR>
Internet email is not necessarily secure. First does not accept<BR>
responsibility for changes to any email which occur after the email<BR>
has been sent. Attachments to this email could contain software<BR>
viruses which could damage your system. First have checked the<BR>
attachments for viruses before sending, but you should virus-check<BR>
them before opening.<BR>
<BR>
http://www.firstgroup.com<BR>
**********************************************************************<BR>
</FONT>