[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: check program times out

From: Tino Hendricks
Subject: Re: check program times out
Date: Fri, 1 Apr 2022 10:56:36 +0200

Am 01.04.2022 um 09:50 schrieb SZÉPE Viktor <>:

Idézem/Quoting Tino Hendricks <>:

Dear list,

I’m trying to monitor an USB port.

The script „“ returns „error“ or „exists“ (successfully tested in Terminal as root).

Monit runs as root but with

check program checkUSB with path "/usr/local/sbin/"
   if content != "exists" then alert

never returns. The process runs forever and is then killed by timeout.

Hello Tino!

Checks run under the same user as Monit.
You could debug it with
logger $(whoami)
in your script or with monit status command.

Hello Viktor,

thank you so much for your reply!

Monit runs as root, and so does the script (like in my tests). 
I can see it on my conole:

root     13052  0.0  0.0   1940   384 ?        Ss   10:54   0:00 /bin/sh /usr/local/sbin/
root     13055  0.0  0.0   1940    68 ?        S    10:54   0:00 /bin/sh /usr/local/sbin/

Any more ideas?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]