Check network results in a syntax error

Issue #272 resolved
Former user created an issue

Hi,

I'm using the default check network statement in my monitrc file, and when I run it I get a syntax error on the unique name.

check network public with interface eth0

I am running on linux.

Comments (5)

  1. Tildeslash repo owner

    Hello,

    each service in monit requires a unique descriptive name, you most probably use the same servicename ("public") for multiple services.

    If you're monitoring multiple interfaces, use different names, for example:

    check network public0 with interface eth0
    
    check network public1 with interface eth1
    
    check network myinterface with interface eth2
    
  2. kathleen neblett

    My check network has it's own name and I changed it to use IP address, but I'm still getting a syntax error on the name.

  3. Tildeslash repo owner

    Please can you send the exact error message and your configuration file to support@mmonit.com?

    Which monit version it is? ("monit -V")

  4. kathleen neblett

    We resolved the problem on our end. I installed monit using apt-get which installed monit-5.15 but I was using the monitrc file from a monit-5.14 tar.gz download. Using the monit-5.15 tar.gz file fixed the problem

  5. Log in to comment