[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [monit] depands on group_a is dependent on an .monitrc file
From: |
Martin Pala |
Subject: |
Re: [monit] depands on group_a is dependent on an .monitrc file |
Date: |
Sun, 7 Mar 2010 21:09:59 +0100 |
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