Community discussions

MikroTik App
 
Jamalhoteit
just joined
Topic Author
Posts: 1
Joined: Fri Jul 15, 2022 2:26 am

Netwatch Notification Help

Fri Jul 15, 2022 2:44 am

:local CHID "xxxxxxxx";
:local BotID "xxxxxxxxxx";
:local HostStatus "message";
:local Message "$HostStatus";
/tool fetch url="xxxxxxxxxxxxxxx";

Hello now I get notifications on up and down status, But I still need to know the duration between up and down
any help plz
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Netwatch Notification Help

Fri Jul 15, 2022 3:08 am

See the date and the time of the messages....
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3279
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Netwatch Notification Help

Fri Jul 15, 2022 8:10 am

Save up time in an global variable, then when going down calculate the difference in time.

Or you can use Splunk like I do and see it graphically:
viewtopic.php?p=888800#p888800
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1070
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: Netwatch Notification Help

Fri Jul 15, 2022 4:27 pm

... or my script Notify on host up and down.

Who is online

Users browsing this forum: Bing [Bot] and 19 guests