|Subject:||Re: [monit] depands on group_a is dependent on an .monitrc file|
|Date:||Mon, 8 Mar 2010 08:26:33 +0200|
|User-agent:||Thunderbird 184.108.40.206 (X11/20090817)|
Thanks for the quick reply Martin, |
Regretfully this was the answer i was trying to avoid, since in my case process_A can be replaced with process_C or process_D, in according to the client's configuration changes, but i can manage with it by replacing the two config files together.
This can be considered as a Feature request for the next version, if this is the place to propose it.
Martin Pala wrote:
Hi, the dependency can be defined only by service name - not service group. Correct statement for process_B will be: "depends on "process_A" Regards, Martin On Mar 7, 2010, at 4:03 PM, opeled wrote: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 -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
|[Prev in Thread]||Current Thread||[Next in Thread]|