How to monitor a PHP Systemd daemon process using Monit

Issue #857 closed
Former user created an issue

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)

  1. Henning Bopp

    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.

  2. Log in to comment