Community discussions

MikroTik App
 
Def
just joined
Topic Author
Posts: 23
Joined: Wed Sep 10, 2008 11:04 pm

Netwatch BUG

Tue Sep 15, 2009 11:38 pm

Hi

I noticed strange behavior of RB433 when I use following configuration:
/tool netwatch
add disabled=no down-script=down1 host=192.168.1.1 interval=1m timeout=1s up-script=up1
add disabled=no down-script=down2 host=192.168.1.2 interval=1m timeout=1s up-script=up2
add disabled=no down-script=down3 host=192.168.1.3 interval=1m timeout=1s up-script=up3
add disabled=no down-script=down4 host=192.168.1.4 interval=1m timeout=1s up-script=up4
add disabled=no down-script=down5 host=192.168.1.5 interval=1m timeout=1s up-script=up5
add disabled=no down-script=down6 host=192.168.1.6 interval=1m timeout=1s up-script=up6
up1 script:
:global name ("Identify_1");
:global completename ("IP: 192.168.1.1 - ".$name);
:global time1 ([/sys cl get time] . " " . [/sys cl get date]);
:global time2 ([:pick [/system clock get date] 4 6] . " " . [:pick [/system clock get date] 0 3] . " " . [:pick [/system clock get date] 7 11] . " ,  " . [/sys cl get time]);

:delay 65;
/tool e-mail send to="email@domain.com" subject=($name . " is online  ( " . $time2 . " )" ) body=("Connection established on " . $completename ." at " .  $time1);
down1 script:
:global name ("Identify_1");
:global completename ("IP: 192.168.1.1 - ".$name);
:global time1 ([/sys cl get time] . " " . [/sys cl get date]);
:global time2 ([:pick [/system clock get date] 4 6] . " " . [:pick [/system clock get date] 0 3] . " " . [:pick [/system clock get date] 7 11] . " ,  " . [/sys cl get time]);

:delay 65;
/tool e-mail send to="email@domain.com" subject=($name . " is offline ( " . $time2 . " )" ) body=("Connection lost on " . $completename ." at " .  $time1);
Now if I turn off just one of hosts, the host's status becomes "down" and RB sends email the host is offline. But if I turn off all hosts at the same time, ROS freezes. CPU load fires up to 100% and I can't change anything in configuration. Even reboot doesn't help - CPU load is again 100%. I have to restore previous configuration to make RB works properly again. Is something wrong in my configuration or is it just a bug?

Thanks in advance
 
Def
just joined
Topic Author
Posts: 23
Joined: Wed Sep 10, 2008 11:04 pm

Re: Netwatch BUG

Sun Sep 27, 2009 8:09 pm

Fixed since 3.30 / 4rc1

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot], RaresC95 and 41 guests