Bug#1070073: check_libs_ng sometimes returns "No such file or directory"

2024-04-30 Thread Evgeni Golov
On Tue, Apr 30, 2024 at 07:45:41AM +0200, Evgeni Golov wrote: > On Mon, Apr 29, 2024 at 08:35:28PM +0200, Evgeni Golov wrote: > > UNKNOWN Exception: [Errno 2] No such file or directory: > > > > This is because the process might have already ended between calling > > os.listdir() and os.stat(). >

Bug#1070073: check_libs_ng sometimes returns "No such file or directory"

2024-04-29 Thread Evgeni Golov
On Mon, Apr 29, 2024 at 08:35:28PM +0200, Evgeni Golov wrote: > UNKNOWN Exception: [Errno 2] No such file or directory: > > This is because the process might have already ended between calling > os.listdir() and os.stat(). Turns out, os.path.realpath() also can raise FileNotFoundError. Updated

Bug#1070073: check_libs_ng sometimes returns "No such file or directory"

2024-04-29 Thread Evgeni Golov
Package: monitoring-plugins-contrib Version: 42.20230308+deb12u1+b1 Tags: patch Ohai, on systems with many short-lived processes (like a monitoring server, spawning many check_* commands), I regularly see check_libs_ng return UNKNOWN Exception: [Errno 2] No such file or directory: This is