Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: [resolved] bp_rule don't work

  1. #11

    Re: bp_rule don't work

    this should work for you :

    Code:
    define service{
        host_name        host1
        service_description   myservice2
        check_command      bp_rule!(host1,serv1) & (host1,serv2)
        retry_interval     1
        check_interval     1
        max_check_attempts   1
        initial_state      u
    }
    ;D

  2. #12

    Re: bp_rule don't work

    Mh, did you try the check_command without the bracket?
    Yeah ! It work without the Bracket !

    Code:
    define service{
        host_name        host1
        service_description   myservice
        check_command      bp_rule!host1,serv1 & host1,serv2
        contact_groups     monitoring
        retry_interval     1
        check_interval     1
        max_check_attempts   1
        initial_state      u
    }
    I thought i've already test this expression but it appear that not...

    Is it a bug or it's normal ?

    Thanx a lot for the solution !

  3. #13

    Re: [resolved] bp_rule don't work

    I don't thing that's a bug, the documented command is :
    Code:
    bp_rule!(host1,serv1 | host2,serv1) & (host1,serv2 | host2,serv2)
    but if you want to do it with only one host ; it become
    Code:
    bp_rule!(host1,serv1) & (host1,serv2)
    and that kind of syntax could be summarize as
    Code:
    bp_rule!host1,serv1 & host1,serv2
    and should be also available with
    Code:
    bp_rule!(host1,serv1 & host1,serv2)
    but it might disturbe poeple who will use it for the HA like
    Code:
    bp_rule!(host1,serv1 | host2,serv1)

  4. #14
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: [resolved] bp_rule don't work

    Hi,

    Good catch. The () is a problem because there is no "upper level" actions (like or, and, of: etc). I'll add a test case for it and add remove the () internally if need
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #15

    Re: [resolved] bp_rule don't work

    Thanks ! I'll upgrade shinken when this correction will be available.
    Thanks again for the support, for your work and your reactivity !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •