Results 1 to 6 of 6

Thread: active_checks_enabled 0

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Location
    Russia, Ekaterinburg
    Posts
    22

    active_checks_enabled 0

    Hi.
    I need temporarily remove the host from monitoring.
    I add command "active_checks_enabled 0" in host config file.
    define host {
    ...
    active_checks_enabled 0
    ...
    }
    After restart Shinken-Arbiter: "Host is active=no" and host is not checked. This is what i need.


    When I want to return the host to monitor, I delete "active_checks_enabled 0" from config and restart Shinken but Host is active still no and host is not checked.
    The same problem if i change active_checks_enabled 0 to 1.

  2. #2
    Junior Member
    Join Date
    Oct 2012
    Location
    Russia, Ekaterinburg
    Posts
    22

    Re: active_checks_enabled 0

    I use:
    define scheduler {
    ...
    modules MongodbRetention
    ...
    }

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

    Re: active_checks_enabled 0

    Active check on configuration is only used on the first launch of this object, then it's the retention data. You must use a UI for this (to launch an external command) or drop your whole retention data (from now there is no partial drop).
    No direct support by personal message. Please open a thread so everyone can see the solution

  4. #4
    Junior Member
    Join Date
    Oct 2012
    Location
    Russia, Ekaterinburg
    Posts
    22

    Re: active_checks_enabled 0

    Could you explain why you select this way? Old Nagios apply all changes in the configuration.

    What other attributes(host and service) is only used on the first launch?

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

    Re: active_checks_enabled 0

    I don't think Nagios3 does like you think as far as I remember. There is a problem with the retention logic, because a daemon don't have the information about the previous configuration in fact and so can't see a "change" in it. For the first launch only, look in the shinken/objects/host.py file and the "properties" dictionnary, all properties with "retention=true" will be like that.
    No direct support by personal message. Please open a thread so everyone can see the solution

  6. #6
    Junior Member
    Join Date
    May 2020
    Posts
    1
    Active checks are applied by the help of a programming rules like by the help of if then else statement. I have been using research papers help so that we can get access to some of the checks.

Posting Permissions

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