lib/sensu/daemon.rb
def load_settings(options={})
      @settings = Settings.get(options)
      validate_settings!(@settings) if options[:validate_config]
      log_notices(@settings.warnings)
      log_notices(@settings.errors, :fatal)
      print_settings!(@settings) if options[:print_config]
      unless @settings.errors.empty?
        @logger.fatal("SENSU NOT RUNNING!")
        exit 2
      end
      @settings.set_env!
    end
# Load Sensu settings. This method creates the settings instance
# variable: `@settings`. If the `validate_config` option is true,
# this method calls `validate_settings!()` to validate the latest
# compiled configuration settings and will then exit the process.
# If the `print_config` option is true, this method calls
# `print_settings!()` to output the compiled configuration
# settings and will then exit the process. If there are loading or
# validation errors, they will be logged (notices), and this
# method will exit(2) the process.
#
#
# https://github.com/sensu/sensu-settings
#
# @param options [Hash]
Load Sensu settings. This method creates the settings instance
variable: `@settings`. If the `validate_config` option is true,
this method calls `validate_settings!()` to validate the latest
compiled configuration settings and will then exit the process.
If the `print_config` option is true, this method calls
`print_settings!()` to output the compiled configuration
settings and will then exit the process. If there are loading or
validation errors, they will be logged (notices), and this
method will exit(2) the process.


Load Sensu settings . This method creates the settings instance variable : ` @settings ` . If the ` validate_config ` option is true this method calls ` validate_settings! () ` to validate the latest compiled configuration settings and will then exit the process . If the ` print_config ` option is true this method calls ` print_settings! () ` to output the compiled configuration settings and will then exit the process . If there are loading or validation errors they will be logged ( notices ) and this method will exit ( 2 ) the process .
def load_settings(options={})
      @settings = Settings.get(options)
      validate_settings!(@settings) if options[:validate_config]
      log_notices(@settings.warnings)
      log_notices(@settings.errors, :fatal)
      print_settings!(@settings) if options[:print_config]
      unless @settings.errors.empty?
        @logger.fatal("SENSU NOT RUNNING!")
        exit 2
      end
      @settings.set_env!
    end
def load_settings ( options = { } ) @settings = Settings . get ( options ) validate_settings! ( @settings ) if options [ :validate_config ] log_notices ( @settings . warnings ) log_notices ( @settings . errors , :fatal ) print_settings! ( @settings ) if options [ :print_config ] unless @settings . errors . empty? @logger . fatal ( "SENSU NOT RUNNING!" ) exit 2 end @settings . set_env! end
Load Sensu settings.
Load Sensu settings .
options
None