Questions tagged [watchdog]

Watchdog and watchdog timers.

Watchdog / watchdog timer is mechanism built-in in the system on hardware or software level can reset the system if serious problems are detected.

External links that are helpful when working on watchdog:

555 questions
6
votes
5 answers

Programming in presence of watchdog timer

I am new to embedded systems programming, although I have done courses during studies, practical programming is still a bit further away. Here is the problem: I have to program a small system on NXP LPC2103 microcontroller (ARM 7 based), without an…
Bogi
  • 2,274
  • 5
  • 26
  • 34
6
votes
2 answers

AM335x watchdog does not work

I am currently working on TI AM335x board (Starter Kit) and I would like to get the OMAP watchdog working... As far as I know the platform automatically enables the watchdog during boot and I think it is confirmed by the following messages printed…
Morix Dev
  • 2,700
  • 1
  • 28
  • 49
6
votes
1 answer

Python watchdog not firing all events

I am trying to watch some text files for when they are modified using watchdog but I only seem to get events for .tmp files. I understand this is how sublime text is saving files, but shouldn't I also get an event fired for the actual file too? This…
Errol Fitzgerald
  • 2,978
  • 2
  • 26
  • 34
6
votes
1 answer

python watchdog modified and created duplicate events

Running on Ubuntu, every time i create a file i get a modified and a created event. Is this by design or am i doing something wrong? I'm using the event handler class PatternMatchingEventHandler event_handler =…
dbers
  • 636
  • 5
  • 16
5
votes
2 answers

How to programmatically check if an application has hang in VB.NET

I need to write a monitoring/watchdog program to check a series of application The monitoring program should be able to Determine whether the applications it is monitoring has hang or no response If it hangs, restart the specific application What…
Dennis
  • 3,528
  • 4
  • 28
  • 40
5
votes
2 answers

Reasons for Soft Lock up?

When we enable CONFIG_DETECT_SOFTLOCKUP to detect soft lockups, it creates a new task called khungtaskd which will run every 1s. If khungtaskd fails to get scheduled for 'n' seconds, then Kernel will declare a soft lockup. My question is what are…
Pavan Manjunath
  • 27,404
  • 12
  • 99
  • 125
5
votes
0 answers

Vagrant Virtualbox VMs getting "kernel:NMI watchdog: BUG: soft lockup - CPU#1 stuck for 23s"

I am running CentOS VMs in Virtualbox using Vagrant on a Windows PC. I've done this for 2 years without issue (initially CentOS 6 then CentOS 7), but in the last few months, I notice my VMs to start locking up frequently. And outputs these types of…
Dave
  • 244
  • 2
  • 16
5
votes
2 answers

watchdog.observers.Observer works in Windows, works in docker on Linux, does not work in docker on Windows

I have an interesting problem that is driving me nuts. I have a python program that is using watchdog.observers.Observer. This program (aka watcher) watches a folder and responds when files appear in it. I have another program (aka parser) which…
Phil O
  • 1,588
  • 4
  • 28
  • 52
5
votes
2 answers

Python Watchdog process existing files on startup

I have a simple Watchdog and Queue process to monitor files in a directory. Code taken from https://camcairns.github.io/python/2017/09/06/python_watchdog_jobs_queue.html import time from watchdog.events import PatternMatchingEventHandler from…
scottyj
  • 51
  • 3
5
votes
1 answer

Systemd watchdog running program via a script

I have this python code which I need to run using systemd and monitor if it is hung as well. The problem is, when I run the python script directly from systemd, it works fine. However when the python script is run from another shell script which is…
Teshan Shanuka J
  • 1,448
  • 2
  • 17
  • 31
5
votes
1 answer

Win32Exception: Access is denied in System.Diagnostics.ProcessManager.OpenProcess()

Firstly, I am a naive developer and have no much indepth understanding of these codes. I am getting access denied in the code block which tries to get the version number of one of the application. Scenario : There is no issue while running the code…
Avishekh Bharati
  • 1,858
  • 4
  • 27
  • 44
5
votes
1 answer

Catching exception from timer

I am trying to create a watchdog class, that will throw an exception after specified time: from threading import Timer from time import sleep class watchdog(): def _timeout(self): #raise self raise TypeError def __init__(self): …
Melon
  • 604
  • 1
  • 7
  • 30
5
votes
3 answers

syntax error near unexpected token `do' when run with sudo

From here: http://www.sat.dundee.ac.uk/psc/watchdog/watchdog-testing.html for n in $(seq 1 60); do echo $n; sleep 1; sync; done I get: :~$ sudo for n in $(seq 1 60); do echo $n; sleep 1; sync; done bash: syntax error near unexpected token `do'
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
5
votes
2 answers

What is an analog Watchdog?

I Quote from Wikipedia: A watchdog timer (WDT; sometimes called a computer operating properly or COP timer, or simply a watchdog) is an electronic timer that is used to detect and recover from computer malfunctions. While using…
user263210
  • 417
  • 1
  • 5
  • 16
5
votes
3 answers

Python (Watchdog) - Waiting for file to be created correctly

I'm new to Python and I'm trying to implement a good "file creation" detection. If I do not put a time.sleep(x) my files are elaborated in a wrong way since they are still being "created" in the folder. (buffer is not empty) How can I circumvent…
peperunas
  • 428
  • 1
  • 6
  • 17