Hi Jon,<br>I just followed the following:<br><br>
i did "su nagios", ran the script and the errors popped out:<br>
<br>
~# su nagios<br>
$ /usr/bin/sms_gnokii<br>
GNOKII Version 0.6.27<br>
Couldn't read /home/nagios/.gnokiirc config file.<br>
Couldn't read /home/nagios/.gnokiirc config file.<br>
Couldn't read /etc/gnokiirc config file.<br>
Couldn't read /etc/gnokiirc config file.<br>
Config file cannot be read.<br>
<br>
I copied .gnokiirc from /root to /home/nagios and did chown nagios:nagios on it.<br>
<br>
Further, gnokii tries to send the message but it ends in another permission<br>
related error:<br>
Connecting<br>
Serial device: opening device USB<br>
Ignoring extra header, type 171, length 5<br>
Found FBUS interface<br>
Can't set configuration: -1<br>
Can't claim control interface: -1<br>
Couldn't open PHONET device: Operation not permitted<br>
Error in link initialisation: 1<br>
Telephone interface init failed: Command failed.<br>
Quitting.<br>
Command failed.<br>
<br>
Furthermore, i tried the following:<br>
<br>
chown -R nagios:nagios /dev/bus/usb/*<br>
chown -R nagios:nagios  /dev/ttyACM0<br>
and<br>
chmod 750 -R /dev/bus/usb/*<br>
chmod 750 /dev/ttyACM0<br>
<br>then I tried /usr/bin/gnokii --getnetworkinfo<br><br>and It works without error. Now I restarted nagios. NO SMS SENT only Email notification.<br><br><br><div class="gmail_quote">On Fri, Jan 9, 2009 at 11:05 AM, Jon Angliss <span dir="ltr"><<a href="mailto:jon@netdork.net">jon@netdork.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Fri, 9 Jan 2009 10:10:30 +0800, "fernando renegado"<br>
<div class="Ih2E3d"><<a href="mailto:flrenegado@gmail.com">flrenegado@gmail.com</a>> wrote:<br>
<br>
>Hi,<br>
><br>
</div><div class="Ih2E3d">>Just tested gnokii at the terminal as nagios user. It can send sms manually<br>
>as nagios user but when I restarted nagios, it failed to send sms. Also I<br>
>noticed that each time I reboot my nagios box, the permissions are denied.<br>
>And I have to chown and chmod the gnokii port and usb each time. Thanks for<br>
>your help.<br>
<br>
</div>chmod what port?  Can you add the nagios user to the group that is<br>
part of the port owner?  You still haven't provided a huge amount of<br>
information, like command definitions, or the likes.<br>
<font color="#888888">--<br>
</font><div><div></div><div class="Wj3C7c">Jon Angliss<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It is the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a href="http://p.sf.net/sfu/Xq1LFB" target="_blank">http://p.sf.net/sfu/Xq1LFB</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br>