On 11/4/07, Brandino Andreas <[EMAIL PROTECTED]> wrote:

> I have a debian box with an attached wavecom gsm modem.
> I am trying to send messages using GSM-SMS-0.162 (
> http://search.cpan.org/~johanvdb/GSM-SMS-0.162/ )
>
> The wavecom modem is attached correctly to the pc, and i can connect
> to it using minicom. Pin code is disabled.
>
> From command line i can send messages sucessfully.
> However, when messages are sent from nagios , the messages remain in
> /var/spool/gsmsms directory and are not sent.

What's nagios? Is it this?

    http://www.nagios.org/

More to the point, why are you asking about this in a forum for Perl
beginners? Although you're using a Perl module to do a small part of
the task, this problem sure doesn't sound like a beginners' Perl
issue. There's almost certainly a better place for your question.
Maybe there's a forum about nagios? Might it even be answered in
perhaps the nagios docs or FAQ?

My best guess is that, since things work from the command line but not
from nagios, you've got nagios configured differently than the command
line. Maybe it runs with different permissions or user-id than you
have at the command line, for example. Or, since things are getting
stuck in that directory and never sent, maybe you should see whether
there's an error log for the program that's supposed to send them,
whatever that is. What does that program's documentation say it does
when something goes wrong?

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to