Community discussions

MikroTik App
 
Josephny
Member
Member
Topic Author
Posts: 495
Joined: Tue Sep 20, 2022 12:11 am

Watchdog log entries

Fri Apr 12, 2024 12:46 pm

I have Watchdog set up as shown below.

I notice that when a Watchdown timeout occurs, the MT device reboots but (1) I don't get a supout emailed and (2) I get the following in the log upon booting up:
System rebooted because of ping watchdog timeout
How can I either get a log entry that persists a reboot, or an email telling me that at xx:xx:xx time the Watchdog timer has timed out and is going to reboot the system now?

Interestingly, when I open a New Terminal, I see these messages -- so the information on rebooting due to watchdog timeout persists the reboot (somewhere):
(1 messages not shown)
2024-04-11 12:26:58 system,critical,info ntp change time Apr/11/2024 12:26:36 => Apr/11/2024 12:26:58
2024-04-11 23:59:42 system,error,critical System rebooted because of ping watchdog timeout
2024-04-12 00:03:47 system,critical,info ntp change time Apr/12/2024 00:03:25 => Apr/12/2024 00:03:47
2024-04-12 00:16:00 system,error,critical System rebooted because of ping watchdog timeout
2024-04-12 00:19:22 system,critical,info ntp change time Apr/12/2024 00:19:00 => Apr/12/2024 00:19:22
2024-04-12 01:13:06 system,error,critical System rebooted because of ping watchdog timeout
2024-04-12 01:19:23 system,critical,info ntp change time Apr/12/2024 01:19:01 => Apr/12/2024 01:19:23
2024-04-12 05:29:56 system,error,critical login failure for user admin from 192.168.2.22 via winbox

Watchdog config:
/system watchdog
set auto-send-supout=yes ping-start-after-boot=10m ping-timeout=5m send-email-from=joseph@xxxx.com send-email-to=\
    joseph@xxxx.com watch-address=1.1.1.1
Thank you.
 
Josephny
Member
Member
Topic Author
Posts: 495
Joined: Tue Sep 20, 2022 12:11 am

Re: Watchdog log entries

Sat Apr 13, 2024 12:05 am

No solutions?
 
Josephny
Member
Member
Topic Author
Posts: 495
Joined: Tue Sep 20, 2022 12:11 am

Re: Watchdog log entries

Tue Apr 16, 2024 2:02 pm

Any way to create a log entry that persists a reboot when watchdog is about to reboot?

Or send an email with date/time?
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3573
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Watchdog log entries

Tue Apr 23, 2024 8:12 pm

Any way to create a log entry that persists a reboot when watchdog is about to reboot?

Or send an email with date/time?
I should have been clear in my other post. I think the email is only generated when a supout is generated and supout is only generated if there is a hang/etc. Docs say:
Watchdog reboot is not a system failure. Such reboot also will not generate autosupout file. Watchdog reboot is "/system reboot" automatically triggered by operating system when some service is not responding as fast as it should.

If you need an email, you can use netwatch with a script, using some interval less than watchdog pings. And since logs go to memory, only option is an external syslog server. But again if watchdog is trigger because ping fail, email or syslog may not work either.
 
User avatar
ID
just joined
Posts: 24
Joined: Tue Dec 26, 2006 10:36 pm

Re: Watchdog log entries

Tue Apr 23, 2024 8:30 pm

Maybe schedule a script that run at startup and check log or other things and mail supout file if any with information after watchdog reboot.

Who is online

Users browsing this forum: GoogleOther [Bot], Semrush [Bot] and 19 guests