I have an interesting case here.
One of the programs is monitored using:
check program A with path /etc/whateverA
There's a second one, monitored the same way, but dependent on the first one
check program B with /path/whateverB depends on A
Now, at some point I've spotted in the logs an error message like the one that follows:
Error reading pid from file '/etc/whateverA'
/etc/whateverA contains bash code and has regular output except of the exit code this leads to sort of an race.