Results 1 to 4 of 4

Thread: [RESOLVED] bp_rule with hosts only?

  1. #1
    Senior Member
    Join Date
    Aug 2011
    Posts
    201

    [RESOLVED] bp_rule with hosts only?

    Hi
    I'm trying to set any bp_rules for checking conection with remote offices.
    Each office has two different internet service provider's router.
    At old nagios i had two simple hosts named "provider1-officeX" and "provider2-officeX" (migrated to shinken and working ok at this moment)
    Now i want to setup a cluster check so only warns me when two routers are dead.. I'will mantain warnings to provider when his router falls linked to old host definition (and reduce work of managing these incidents).

    I've created a rule
    define host {
    host_name WAN-officeX
    service_description xxxxxx
    use xxxxx
    check_command bp_rule!(1 of: provider1-officeX,provider2-officeX)
    }

    But checks tells me that "provider2-officeX" and "provider1-officeX" are unknown services (sure, they are hosts).
    How can I write this rule? i'm on the correct way?

    thanks!

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

    Re: bp_rule with hosts only?

    Hi,

    in fact the "," is for separating host_name,service_description. For a Xof: rule, you should use | or & to separate your hosts like :

    Code:
    bp_rule!(1 of: provider1-officeX|provider2-officeX)



    Jean
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3
    Senior Member
    Join Date
    Aug 2011
    Posts
    201

    Re: bp_rule with hosts only?

    :-X
    I was running and not read carefully documentation... sorry :'(

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

    Re: bp_rule with hosts only?

    Not a problem, I also got some few second of wondering, so your question was valid
    No direct support by personal message. Please open a thread so everyone can see the solution

Posting Permissions

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