gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: GSM Modems


From: Michael Hutchinson
Subject: RE: GSM Modems
Date: Thu, 18 Jun 2009 11:08:59 +1200

Hello Blurry,

> Thank you for the config file u posted earlier.. I have one question
to
> ask.
> 
> This is my scenario. I am developing a monitoring system which sends
> out SMSes to a number of receipients by Linux Crontab. My query is,
> would the Fastrack Supreme Modem queue the outbound SMSes as the
> Crontab would send the gnokii --sendsms command to the modem in quick
> succession.
 
I don't think so. Fasttrack modems interact with your computer just like
a 56k modem - you can't stack commands on those, and the same goes for
Fasttrack modems.

Gnokii/SMSd will do queuing for you - it might be worth checking that
out as it would be easiest to implement. I know that I have no issues
with this when I'm using Nagios which handles sending out my alerts from
my monitoring servers. This is because I run gnokii/smsd in FILE mode.
It picks up individual text files that get dropped into /var/spool/sms
by Nagios, which contain the contact number and the notification
information. Gnokii/SMSd runs in Daemon mode and monitors the directory
- when a new file is written it sends it as SMS and deletes the file,
then moves on to the next one - perfect system for queueing.

Here is a snippet of my /etc/init.d/smsd startup file:

        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec
$DAEMON -- -m file -c /var/spool/sms -l /usr/lib/smsd &

You can see the -m and -c options that set the desired behaviour.

If you're programming a monitoring system, you might want to check out
Nagios - it just works, and is really easy to get working with SMS/GSM
modems - http://www.nagios.org. Afterall, there's no point re-inventing
the wheel. The config to get Nagios to use Smsd would be similar to
this:

In misccommands.cfg:
define command{
        command_name                    host-notify-by-sms
        command_line                    /usr/bin/printf
"$CONTACTPAGER$\n$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$" >
/var/spool/sms/`date +%d%m%Y%H%M%S%N`
}
define command{
        command_name                    notify-by-sms
        command_line                    /usr/bin/printf
"$CONTACTPAGER$\n$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is
$SERVICESTATE$" > /var/spool/sms/`date +%d%m%Y%H%M%S%N`
}

You can see all that Nagios does is dump notifications into
/var/spool/sms. The SMS Daemon picks them up and sends them one at a
time. You could tell your Monitoring System to do the same thing as
Nagios, just dump the Cell # in the top line of a file, followed by the
notification message, and move on to the next one in a new file.. Let
Gnokii/SMSD take care of the rest.

I hope that helps ;)

> Thank you in advance for your reply. Your help is highly appreciated.

No problem, happy to do so. Nice to see polite people still exist on
mailing lists ;-)

 
Yours Sincerely,
Michael Hutchinson
Manux Solutions Limited



The rest of the message: 
> Sent via BlackBerry Storm from Maxis
> 
> -----Original Message-----
> From: address@hidden
> 
> Date: Wed, 27 May 2009 12:00:15
> To: <address@hidden>
> Subject: gnokii-users Digest, Vol 78, Issue 10
> 
> 
> Send gnokii-users mailing list submissions to
>       address@hidden
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://lists.nongnu.org/mailman/listinfo/gnokii-users
> or, via email, send a message with subject or body 'help' to
>       address@hidden
> 
> You can reach the person managing the list at
>       address@hidden
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gnokii-users digest..."
> 
> 
> Today's Topics:
> 
>    1. RE: GSM Modems (Michael Hutchinson)
>    2. Gnokii update. (address@hidden)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 27 May 2009 11:00:53 +1200
> From: "Michael Hutchinson" <address@hidden>
> Subject: RE: GSM Modems
> To: "Discussion forum for gnokii users." <address@hidden>
> Message-ID:
>
<address@hidden>
> Content-Type: text/plain;     charset="utf-8"
> 
> Hi Daniel,
> 
> Sure thing.. it is actually small enough to post here.
> 
> Hope this helps. With these WaveComm units, it is the same connection
> style as you would use for an external 56k modem (AT). So the setup is
> really simple.
> 
> [global]
> port = /dev/ttyS0
> model = AT
> initlength = default
> connection = serial
> use_locking = no
> serial_baudrate = 19200
> handshake = hardware
> connect_script =
> disconnect_script =
> 
> smsc_timeout = 10
> 
> [xgnokii]
> allow_breakage = 0
> [gnokiid]
> bindir = /usr/sbin/
> [connect_script]
> TELEPHONE = 12345678
> [disconnect_script]
> 
> [logging]
> debug = off
> rlpdebug = off
> xdebug = off
> 
> > -----Original Message-----
> > From: address@hidden
> > [mailto:address@hidden On
> > Behalf Of Daniel Mejia
> > Sent: Tuesday, 19 May 2009 6:42 p.m.
> > To: address@hidden
> > Subject: RE: GSM Modems
> >
> >
> > Hi Michael,
> >
> > Would you be kind enough to please share the /etc/gnokiirc file with
> > me?
> > I am considering to buy the Wavecom GSM modem, and your proven
config
> > would
> > greatly help!
> > My email address is: blurry1912[at]yahoo[dot]com
> > Thanx in advance.
> >
> > - Daniel
> >
> >
> >
> > Michael Hutchinson-3 wrote:
> > >
> > > Hello Bishal,
> > >
> > > Sorry for the late reply,
> > >
> > > Wavecom GSM modems will work on a COM/Serial port - and therefore,
> > will
> > > work with ANY distribution of Linux at all.
> > >
> > > Will most likely work with most versions of windows too ;-)
> > >
> > > You should be able to find a local supplier from their web page
(as
> > stated
> > > in mail from Madars
> > > (http://www.wavecom.com/modules/movie/scenes/locator/).
> > > However, I found a local importer that is not on this list, who
can
> > get
> > > the units a lot cheaper than buying them from Wavecom directly. So
> > check
> > > your regular suppliers and ask them if they can get their hands on
> > Wavecom
> > > Kit.
> > >
> > > Cheers,
> > >
> > > Michael Hutchinson
> > > Manux Solutions Ltd
> > > Phone: 0800 328 324 | Email: address@hidden
> > > http://www.manux.co.nz/
> > >
> > >
> > >> -----Original Message-----
> > >> From: address@hidden
> > >> [mailto:address@hidden
> On
> > >> Behalf
> > >> Of Bishal
> > >> Sent: 13 November 2008 6:51 p.m.
> > >> To: address@hidden
> > >> Subject: RE: GSM Modems
> > >>
> > >>
> > >> Hello Michael,
> > >>
> > >>
> > >>
> > >>     Will Wavecom GSM modem work on FreeBSD OS and how much is the
> > cost of
> > >>
> > >> wavecom GSM modem? I am trying to implement the network
monitoring
> > but
> > >>
> > >> could not find any here.
> > >>
> > >>
> > >>
> > >> Thank you
> > >>
> > >> Bishal
> > >>
> > >>
> > >>
> > >> On 11/12/2008, "Michael Hutchinson" <address@hidden>
> wrote:
> > >>
> > >>
> > >>
> > >> >Hello all,
> > >>
> > >> >
> > >>
> > >> >Wavecom modems are great! We've used a FastTrack M1306B
(obsolete
> > now),
> > >>
> > >> >and the FastTrack Supreme (current model). Brilliant serial port
> > modems,
> > >>
> > >> >fully featured, and very reliable.
> > >>
> > >> >
> > >>
> > >> >We're about to employ two FastTrack Supreme's on site in the
next
> > few
> > >>
> > >> >weeks, for our Nagios monitoring system.
> > >>
> > >> >
> > >>
> > >> >Nokia phones are OK too, but don't compare to a GSM modem (they
> > tend to
> > >>
> > >> >be flaky in comparison).
> > >>
> > >> >
> > >>
> > >> >Cheers,
> > >>
> > >> >Michael Hutchinson
> > >>
> > >> >Manux Solutions Ltd
> > >>
> > >> >
> > >>
> > >> >
> > >>
> > >> >> -----Original Message-----
> > >>
> > >> >> From: address@hidden
> > >>
> > >> >> [mailto:gnokii-users-
> address@hidden
> > On
> > >>
> > >> >Behalf
> > >>
> > >> >> Of Madars Vitolins
> > >>
> > >> >> Sent: 11 November 2008 10:07 a.m.
> > >>
> > >> >> To: Discussion forum for gnokii users.
> > >>
> > >> >> Subject: Re: GSM Modems
> > >>
> > >> >>
> > >>
> > >> >> Hi,
> > >>
> > >> >>
> > >>
> > >> >> Well I decided to go for Wavecom Fastrack Supreme 20,
> > >>
> > >> >> will see how it will work.
> > >>
> > >> >> I will check it with gnokii nad with sms server tools 3
> > >>
> > >> >> Will post here after results!
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >> Thanks,
> > >>
> > >> >> Madars
> > >>
> > >> >>
> > >>
> > >> >> TopLek wrote:
> > >>
> > >> >>
> > >>
> > >> >>       HI,
> > >>
> > >> >>
> > >>
> > >> >>       I think the best way is NOKIA 8110, this model is
fastest I
> > >>
> > >> >tested
> > >>
> > >> >> and
> > >>
> > >> >>       result of errors i proper too.
> > >>
> > >> >>
> > >>
> > >> >>       best regards
> > >>
> > >> >>       Piotr Polok
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >>       Madars Vitolins-3 wrote:
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >>               Hello!
> > >>
> > >> >>
> > >>
> > >> >>               Could somebody tell me which GSM modem to choose
for
> > >>
> > >> >building
> > >>
> > >> >> SMS
> > >>
> > >> >>               Gateway (send & receve messages) using
gnokii-smsd.
> > >>
> > >> >>               I am thinking to use three such devices for load
> > >>
> > >> >balancing.
> > >>
> > >> >>
> > >>
> > >> >>               What brands and models (up-to-date) you would
> > recomend
> > >>
> > >> >me? Or
> > >>
> > >> >> what
> > >>
> > >> >>               models you have and working well?
> > >>
> > >> >>               Also I would prefer serial port based devices as
they
> > do
> > >>
> > >> >not
> > >>
> > >> >> chang the
> > >>
> > >> >>               ttySX X number, as I seen for usb number times
to
> > times
> > >>
> > >> >> changes...
> > >>
> > >> >>
> > >>
> > >> >>               Thanks a lot in advance!
> > >>
> > >> >>               Madars
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >>               _______________________________________________
> > >>
> > >> >>               gnokii-users mailing list
> > >>
> > >> >>               address@hidden
> > >>
> > >> >>
http://lists.nongnu.org/mailman/listinfo/gnokii-users
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >>
> > >>
> > >> >
> > >>
> > >> >
> > >>
> > >> >
> > >>
> > >> >_______________________________________________
> > >>
> > >> >gnokii-users mailing list
> > >>
> > >> >address@hidden
> > >>
> > >> >http://lists.nongnu.org/mailman/listinfo/gnokii-users
> > >>
> > >> >
> > >>
> > >> >
> > >>
> > >>
> > >> _______________________________________________
> > >> gnokii-users mailing list
> > >> address@hidden
> > >> http://lists.nongnu.org/mailman/listinfo/gnokii-users
> > >
> > >
> > > _______________________________________________
> > > gnokii-users mailing list
> > > address@hidden
> > > http://lists.nongnu.org/mailman/listinfo/gnokii-users
> > >
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/GSM-Modems-
> > tp20225240p23610578.html
> > Sent from the gnokii-users mailing list archive at Nabble.com.
> >
> >
> >
> > _______________________________________________
> > gnokii-users mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/gnokii-users
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 27 May 2009 10:14:23 +0530
> From: address@hidden
> Subject: Gnokii update.
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Sir,
> 
> i want to update gnokii from version 0.6.7 to current version. please
> tell me
> how to update gnokii.
> 
> Rajeev.
> 
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> gnokii-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gnokii-users
> 
> 
> End of gnokii-users Digest, Vol 78, Issue 10
> ********************************************




reply via email to

[Prev in Thread] Current Thread [Next in Thread]