Community discussions

MikroTik App
 
tdrepeater
just joined
Topic Author
Posts: 1
Joined: Wed Mar 30, 2011 7:36 pm

Problem with notifications

Wed Mar 30, 2011 8:10 pm

I followed the instructions from the forum and from the manual, but i can not handle notifications. My very first intention is to start any exe file when host is up or down. I chose notepad for test, but thing does not work the way i thought, so i ask for help.

I'm running Dude 3.6 under Win7 Ultimate 32bit, pinging couple of hosts in local network. Notification is set as follows:

Image Image

I put test.bat into c:\windows, where is notepad.exe. Into test.bat is line c:\windows\notepad.exe

Image Image

When monitoring host changes state (up->down, or down->up), notepad does not start.

Where i'm wrong?
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Problem with notifications

Thu Mar 31, 2011 9:24 am

Where i'm wrong?
1) Do not put c:\windows\test.bat in quotes ("")
quotes.png
2) The service does not change it state directly from up to down (this will not be true if you change probe down count to 1).
down.png
First it change state from up to unstable, so you will not receive notification. The settings should be
state.png
You do not have the required permissions to view the files attached to this post.
 
zindy
just joined
Posts: 11
Joined: Mon Feb 15, 2010 1:37 pm

Re: Problem with notifications

Sun Apr 03, 2011 12:23 am

Hello,

another solution is to check more rules. I use {acked,unknown,unstable,up}->down and {unknown,down}->up

with this you will always know of device, which is down and when it comes from down to up (it happens directly) and from unknown to up (it happens when you are using dependencies for example)

If you want to debug your network, you can check up->unstable and unstable->up. This will notify you, when some device in your network drops some pings, but still answers some of them.

Vaclav