BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{bb} Troubles with setting up sms service, PART 2
Hi all,
So far I haven't been able to get BB send out an sms via gnokii.
Thanks to Frank Timmer so far for some handy tips.
So, as far as I can analyse the problem, the script that handles the sms
part does not run for some reason.
When I run the script directly from the commandline, with the $RCPT variable
set by hand, it works fine.
Can anyone tell me how I can check how far a bbwarnrule is executed, so I
can see where it goes wrong ?
I already ran bbchkwarnrules.sh to see if there's something wrong in my warn
rules, but everything seems to be fine.
I really need to get it working, so I appreciate all help !
Thanks !
Andy
> Hi all,
>
> I am trying to configure a SMS service, which will send
> certain messages to
> a cellphone.
> I am using gnokii for this, but I am not able to get it
> running with BB.
> Sending a SMS message on commandline with gnokii works fine.
> So, in order to get it under bb to work, I did the following:
>
> in /etc/bbwarnrules.cfg define the rules for the sms service:
>
> hg-intern;;cpu disk oracle procs bup
> temperature;;1-5;0800-1600;ext-pgx-0612345678
> hg-slaregios;;cpu disk oracle procs temperature
> bup;;1-5;0800-1600;ext-pgx-0612345678
>
> which are modified rules from:
>
> hg-intern;;*;;1-5;0900-1700;bb.gms@isc.politie.nl
> hg-slaregios;;cpu disk oracle procs temperature;;1-5;0000-0859
> 1701-2359;bb.gms@isc.politie.nl:~10-120
> These mail rules do work.
>
> The pgx scripts, which resides in ext/pg looks like this:
>
> echo "
> BBALPHAMSG - $BBALPHAMSG
> ACKCODE - $ACKCODE
> BBHOSTNAME - $BBHOSTNAME
> BBHOSTSVC - $BBHOSTSVC
> BBHOSTSVCCOMMAS - $BBHOSTSVCCOMMAS
> RCPT - $RCPT
> MACHIP - $MACHIP
> BBSVCNAME - $BBSVCNAME
> BBSVCNUM - $BBSVCNUM
> BBNUMERIC - $BBNUMERIC
> BBCOLORLEVEL - $BBCOLORLEVEL
> DOWNSECSMSG - $DOWNSECSMSG
> DOWNSECS - $DOWNSECS
> RECOVERED - $RECOVERED
> " | gnokii --sendsms "$RCPT"
>
> But I couldn't get it to work.
>
> I've tried adding the country number with "+" in front of the
> number, but no
> result.
> I also adapted the script, that it would write to a tmp file
> instead of
> sending the sms, but also no result.
>
> I also restarted BB every time I made a change. Still no use.
>
> Can anyone help me out on this ?
>
> Thanks in advance.
>
> Kind regards,
> Andy
>
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> To unsubscribe from this list, or to subscribe to the bb-digest list
> send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
> subscribe bb-digest in the BODY of the message.
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index