Read from config

Issue #606 new
Former user created an issue

Hi, I search a way to read from config file (not monit) and use the values in my check. example:

/etc/example.ini

path = /opt/app

/etc/monit.d/monit-app.conf

check process app with pidfile /run/app.pid
        start program = "{$example.path}/start.sh"
        stop program = "{$example.path}/stop.sh'"

I want to read the example app path from /etc/example.ini and use it in start/stop

Comments (0)

  1. Log in to comment