Re: check program times out

SZÉPE Viktor <[email protected]> Fri, 01 Apr 2022 09:50:23 +0200
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
Idézem/Quoting Tino Hendricks <[email protected]>:

> Dear list,
>
> I’m trying to monitor an USB port.
>
> The script „checkUSB.sh“ returns „error“ or „exists“ (successfully  
> tested in Terminal as root).
>
> Monit runs as root but with
>
> check program checkUSB with path "/usr/local/sbin/checkUSB.sh"
>     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.



SZÉPE Viktor, webes alkalmazás üzemeltetés / Running your application
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
~~~
ügyelet 🌶️ hotline: +36-20-4242498  [email protected]  skype: szepe.viktor
Budapest, III. kerület
smime.p7s (application/pkcs7-signature, 6 KB) - not displayed