Community discussions

MikroTik App
 
diabolusss
just joined
Topic Author
Posts: 14
Joined: Tue Sep 27, 2022 10:55 am
Location: Latvia, Riga

7.8rc1 netwatch can't int lte monitor anymore  [SOLVED]

Tue Feb 14, 2023 5:06 pm

Hello!
I have configured a netwatch test block to call a script which gets lte interface stats. It was working fine on ROS 7.7 stable, but after upgrade to ROS 7.8rc1 it fails when is called by netwatch.
Similarly, it doesn't work when called by scheduler.
If i call it manually, then script completes without problems.

UPD 230315 the real cause of issue was use of "numbers=0" instead of interface name. While interface number is still zero, script started to work again only after changing "numbers=0" to interface name "lte1".
UPD 230228 Issue persists on ROS 7.8 stable. Will downgrade.
Netwatch.OnTest:
        /system script run nwatch-ltestats;

nwatch-ltestats: Don't require permissions checked +(read, test, sniff)
:log debug ("<trace> <ignore>  passes this point");

/int lte monitor numbers=0 duration=1 once do={
	:local lteuptime 	$"session-uptime";

	:log debug ("<trace> (...\
				uptime:$lteuptime;\
				...)"\
	);
}

:log debug ("<trace> <ignore> reaches this point only if called manually");

Who is online

Users browsing this forum: No registered users and 21 guests