Ping then put for SNMP

Thank you again for explanation. But still not working, for some reason when i declare global var in netwatch

:global test "1"

Mikrotik cant see this var at all. When i'm trying to return the value of this var in terminal, mikrotik even do not know this var and return empty value. When i declare this var directly from terminal and used :put $test - it returns "1" as should be. Also found this thread Netwatch tool + script: Are global variables truly global? where support guy said "For netwatch, scheduler, etc current user is sys*. As I mentioned it is not a bug it is designed to work so.". In continue of this in mikrotik wiki says "global - accessible from all scripts created by current user, defined by global keyword;". So maybe my script just cant see this global var because it was created from netwatch with sys* user but script was created from admin user for example ?