Community discussions

MikroTik App
 
boom132
just joined
Topic Author
Posts: 3
Joined: Thu Dec 24, 2009 1:08 am

Notifications to a text file

Fri Jan 08, 2010 2:14 am

I'd like to have Dude notify errors/warnings to a text file.
How do I setup a custom notification to do this?

If Dude could do this, I have an SMS program that will retrieve these texts, parse the info and dial out the message to my cell-phone provider.

HELP?!

-Jason
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6624
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Notifications to a text file

Fri Jan 08, 2010 12:30 pm

Dude can be configured to send SMS directly. Setup e-mail notification and ask your operator for the way to receive SMS from e-mail.
 
boom132
just joined
Topic Author
Posts: 3
Joined: Thu Dec 24, 2009 1:08 am

Re: Notifications to a text file

Fri Jan 08, 2010 6:12 pm

I appreciate the response... but if my SMTP server goes down, then I have no way to get SMS messages.

There is an applicationo that will send SMS directly via USB/Serial modem. However, it needs too monitor a folder for text messages. If a message appears, the application will parse the message, format it, dial the TAP number via the modem and I'll be alerted of the problem within minutes.

So, what I need Dude to do, or someone to assist me... how do I make a notification that will create a text file with the parameters and save it to a folder outside of the dude installation directory?

-Jason
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Notifications to a text file

Mon Jan 11, 2010 2:39 pm

Hi, boom132
You can do it using cmd file
1) create it:
just put 1 line
echo %1 >> c:\myfile.txt
in
C:\dudescript\echo.cmd

2) paste XML in your notifications

<?xml version="1.0" ?>
<dude version="3.4">
<Notification>
<sys-type>24</sys-type>
<sys-id>2443445</sys-id>
<sys-name>Echo to file</sys-name>
<typeID>7</typeID>
<textTemplate>C:\\dudescript\\echo.cmd "Service [Probe.Name] on [Device.Name] is now [Service.Status] ([Service.ProblemDescription])"</textTemplate>
</Notification>
</dude>

That's all :)

Who is online

Users browsing this forum: simintal and 6 guests