[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit] depands on group_a is dependent on an .monitrc file
From: |
opeled |
Subject: |
[monit] depands on group_a is dependent on an .monitrc file |
Date: |
Sun, 7 Mar 2010 17:03:01 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Hey,
I tried looking this up on the man or in the mailing list archives, and
i couldn't find this.
This is what i was trying to create:
File: /etc/monit.d/service_A.monitrc:
check process A with pidfile /var/run/A.pid
start program = "/usr/local/run/pamon.d/A.sh start"
stop program = "/usr/local/run/pamon.d/A stop"
group Agroup
File: /etc/monit.d/service_B.monitrc:
check process B with pidfile /var/run/B.pid
start program = "/usr/local/run/pamon.d/B.sh start"
stop program = "/usr/local/run/pamon.d/B stop"
group Bgroup
depends on Agroup
File: /etc/monitrc
contains a line:
include /etc/monit.d/*.monitrc
i run:
monit: Error: Depend service 'Agroup' is not defined in the control file
---------------------------------------------------
I changed the strings for obvious reasons, i'm guessing that there is no
meaning to what letter the strings starts with.
Even if i change the include line to include the files in the right
order i get the same message.
Checked on version: 5.0.3, 5.1.1
Is there a way to declare the group in the main file / preset the
loading order of rc files ?
thanks in advance, best regards.
Ofer Peled
- [monit] depands on group_a is dependent on an .monitrc file,
opeled <=