Community discussions

MUM Europe 2020
 
flyfly
just joined
Topic Author
Posts: 14
Joined: Tue Apr 13, 2010 2:01 pm

the dude sms notification

Tue Apr 13, 2010 2:10 pm

Hello all,

I have routerOS with the dude on it, all that on routerboard with usb. I've attached USB GSM gateway.
How can I send sms notifications from the dude.
I know mikrotik commands but what commands should I use to send notifications with the dude.

tnx in advance
 
 
Morphology
just joined
Posts: 21
Joined: Mon Jan 26, 2009 7:51 pm

Re: the dude sms notification

Wed Apr 21, 2010 4:55 pm

What I did was to write a very simple APP in VB, which takes an alert from The Dude, and then sends this on to the SMS gateway. That way I could control the SMS gateway using a language I understood (VB6).

In The Dude I created a new Notification called "SMS Send" of type "Execute on Server"

In the definition for this Notification, I put the following code:

SMSSender.exe Service [Probe.Name] on [Device.Name] is now [Service.Status] ([Service.ProblemDescription])

SMSSender.exe is my VB6 app, which is then called when a Dude alert is triggered. In SMSSender.exe the alert test is passed as a command line argument, and my little VB App picks this up and passes it on to the SMS Gateway.

In my case, it is a little more complex as I am actually dialling an SMS Gateway using a USB Modem, and issuing a load of commands to create and send SMS messages.

However, it was WELL worth the effort, as the Dude can now alert me when our Internet line is down!!

Morph
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: the dude sms notification

Wed Apr 21, 2010 6:34 pm

Any chance you would share the VB program?

What are you doing to detect down internet? Ping google?
 
flyfly
just joined
Topic Author
Posts: 14
Joined: Tue Apr 13, 2010 2:01 pm

Re: the dude sms notification

Fri Apr 23, 2010 12:51 pm

@Morphology it would be great if you can share that script with us.
Just to be clear, that VB script can be run from the dude on routerboard ?


tnx
 
Percanta
newbie
Posts: 39
Joined: Tue Feb 24, 2009 1:00 am

Re: the dude sms notification

Fri Apr 23, 2010 11:39 pm

well but isnt it better can send sms directly? rb with modem usb and dude shouldnt use other programs
 
flyfly
just joined
Topic Author
Posts: 14
Joined: Tue Apr 13, 2010 2:01 pm

Re: the dude sms notification

Tue Apr 27, 2010 11:28 am

Percanta, how to send sms (via usb modem) from the dude on routerboard ? :)
 
Percanta
newbie
Posts: 39
Joined: Tue Feb 24, 2009 1:00 am

Re: the dude sms notification

Mon May 10, 2010 11:19 pm

i´d wish to know how to do it....
 
Morphology
just joined
Posts: 21
Joined: Mon Jan 26, 2009 7:51 pm

Re: the dude sms notification

Thu Jun 24, 2010 1:49 pm

Sorry for not responding, I didn't tick the box that says "Notify me when a reply is posted"!

I have just posted the source code for my VB app as a new topic.

Morph.

Who is online

Users browsing this forum: No registered users and 4 guests