How to monitor a PHP Systemd daemon process using Monit
Issue #857
closed
I have a couple of Systemd PHP daemons which need to monitor. Is it possible to monitor Systemctl daemons using monit without using pid file. In stack exchange I saw an answe like this check program TestApp with path "systemctl --quiet is-active TestApp.service" if status != 0 then alert
But when I configured the same I'm getting error like "Program does not exist: 'systemctl'" and Program does not exist: 'TestApp.service'.
I'm on Ubuntu 16.04 with Monit version 5.16.
Comments (3)
-
-
thanks Henning working great when putting full path to systemctl
-
repo owner - changed status to closed
All good then
- Log in to comment
I think that you just have to add the full path to
systemctl
:/bin/systemctl
.I'm unsure where the origin of
Program does not exist: 'TestApp.service'
is.