Community discussions

MikroTik App
 
TUNG0407
newbie
Topic Author
Posts: 49
Joined: Tue Nov 03, 2009 7:04 am

Use fetch wil create the File

Tue Nov 14, 2023 11:51 am

Dear ALL,

I created the script to get some netwatch value and upload to my web site, but i found after the script executed, the file list will auto create the file, the file name is my URL link, anyone can help?

TungHo
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12030
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Use fetch wil create the File

Tue Nov 14, 2023 1:28 pm

From the vehicles repairer:

- Why doesn't my car start?

- Where is the car to be checked?

- I left it at home...
 
User avatar
diamuxin
Member
Member
Posts: 320
Joined: Thu Sep 09, 2021 5:46 pm
Location: Alhambra's City

Re: Use fetch wil create the File

Tue Nov 14, 2023 1:53 pm

:lol: :lol:
 
TUNG0407
newbie
Topic Author
Posts: 49
Joined: Tue Nov 03, 2009 7:04 am

Re: Use fetch wil create the File

Tue Nov 14, 2023 2:59 pm

Sorry, is it normal behavior?
If will create many file, the storage will be out of order.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12030
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Use fetch wil create the File

Tue Nov 14, 2023 4:22 pm

And what does it have to do with the topic or with the first question?

From the vehicles repairer:

- Why doesn't my car start?

- Where is the car to be checked?

- I left it at home...

- And how do you expect me to answer you if I DON'T SEE IT FIRST?
 
TUNG0407
newbie
Topic Author
Posts: 49
Joined: Tue Nov 03, 2009 7:04 am

Re: Use fetch wil create the File

Tue Nov 14, 2023 8:06 pm

Below is the code under system ->script

:global GETlosspercent [/tool netwatch get value-name=loss-percent [find host ="10.255.1.1"]];
:log info $GETlosspercent;
/tool/fetch http-method=post mode=https http-header-field="Content-Type: text/html; charset=utf-8" url="https://XXX/Collect/logging.php?DeviceI ... osspercent%"
 
TUNG0407
newbie
Topic Author
Posts: 49
Joined: Tue Nov 03, 2009 7:04 am

Re: Use fetch wil create the File

Thu Nov 16, 2023 5:46 am

@ rextended any idea?
Thanks
 
TUNG0407
newbie
Topic Author
Posts: 49
Joined: Tue Nov 03, 2009 7:04 am

Re: Use fetch wil create the File

Mon Nov 20, 2023 1:36 pm

is thre any infomration missing?
Anyone can help?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10276
Joined: Mon Jun 08, 2015 12:09 pm

Re: Use fetch wil create the File

Mon Nov 20, 2023 2:08 pm

The manual is here: https://help.mikrotik.com/docs/display/ROS/Fetch
Try to read it.

Who is online

Users browsing this forum: No registered users and 13 guests