Search code examples
monit

Wildcards in Monit paths?


Is it possible to use wildcards in Monit file check ?

For example monitoring all the bar* files in directory /tmp/foo ?

CHECK FILE bar WITH PATH /tmp/foo/bar*
    IF ...

Solution

  • No, it is not possible. Each check must have an unique name. You should refine your goal here and study why you want this behavior.