Existence tests of filesystem service is a syntax error

Issue #603 resolved
Former user created an issue

Using the following monitrc

#!

check filesystem nfs-mount with path "192.168.39.20:/mnt/test"
  if not exist then exec "/usr/bin/mount /root/test"

The documentation says, "It is supported for process, file, directory, filesystem and fifo services." However, I get an error "/etc/monit.d/nfs-mount.conf:2: syntax error 'not'" in the case of filesystem service

Using Monit 5.22.0 (downloaded from the mmonit/monit page) on CentOS 7.3.1611

Comments (2)

  1. Prince Jain

    @Tildeslash I am doing filesystem existence test on RPi Compute module. I am still getting this error, how can I upgrade monit to solve this?

  2. Log in to comment