base/config.c File Reference

#include "../include/config.h"
#include "../include/common.h"
#include "../include/objects.h"
#include "../include/macros.h"
#include "../include/icinga.h"
#include "../include/broker.h"
#include "../include/nebmods.h"
#include "../include/nebmodules.h"

Defines

#define DFS_UNCHECKED   0
#define DFS_TEMP_CHECKED   1
#define DFS_OK   2
#define DFS_NEAR_LOOP   3
#define DFS_LOOPY   4
#define dfs_get_status(h)   h->circular_path_checked
#define dfs_unset_status(h)   h->circular_path_checked = 0
#define dfs_set_status(h, flag)   h->circular_path_checked = (flag)
#define dfs_host_status(h)   (h ? dfs_get_status(h) : DFS_OK)

Functions

int read_all_object_data (char *main_config_file)
int read_main_config_file (char *main_config_file)
int read_resource_file (char *resource_file)
int pre_flight_check (void)
int pre_flight_object_check (int *w, int *e)
static int dfs_host_path (host *root)
int pre_flight_circular_check (int *w, int *e)

Variables

char * log_file
char * command_file
char * temp_file
char * temp_path
char * check_result_path
char * lock_file
char * log_archive_path
char * auth_file
char * p1_file
char * nagios_user
char * nagios_group
char * macro_user [MAX_USER_MACROS]
char * global_host_event_handler
char * global_service_event_handler
commandglobal_host_event_handler_ptr
commandglobal_service_event_handler_ptr
char * ocsp_command
char * ochp_command
commandocsp_command_ptr
commandochp_command_ptr
char * illegal_object_chars
char * illegal_output_chars
int use_regexp_matches
int use_true_regexp_matching
int use_daemon_log
int use_syslog
int use_syslog_local_facility
int syslog_local_facility
int log_notifications
int log_service_retries
int log_host_retries
int log_event_handlers
int log_external_commands
int log_external_commands_user
int log_passive_checks
int log_long_plugin_output
int service_check_timeout
int service_check_timeout_state
int host_check_timeout
int event_handler_timeout
int notification_timeout
int ocsp_timeout
int ochp_timeout
int log_initial_states
int log_current_states
int daemon_mode
int daemon_dumps_core
int verify_config
int verify_object_relationships
int verify_circular_paths
int test_scheduling
int precache_objects
int use_precached_objects
double sleep_time
int interval_length
int service_inter_check_delay_method
int host_inter_check_delay_method
int service_interleave_factor_method
int max_host_check_spread
int max_service_check_spread
sched_info scheduling_info
int max_child_process_time
int max_parallel_service_checks
int command_check_interval
int check_reaper_interval
int max_check_reaper_time
int service_freshness_check_interval
int host_freshness_check_interval
int auto_rescheduling_interval
int auto_rescheduling_window
int check_external_commands
int check_orphaned_services
int check_orphaned_hosts
int check_service_freshness
int check_host_freshness
int auto_reschedule_checks
int additional_freshness_latency
int use_aggressive_host_checking
unsigned long cached_host_check_horizon
unsigned long cached_service_check_horizon
int enable_predictive_host_dependency_checks
int enable_predictive_service_dependency_checks
int soft_state_dependencies
int retain_state_information
int retention_update_interval
int use_retained_program_state
int use_retained_scheduling_info
int retention_scheduling_horizon
unsigned long retained_host_attribute_mask
unsigned long retained_service_attribute_mask
unsigned long retained_contact_host_attribute_mask
unsigned long retained_contact_service_attribute_mask
unsigned long retained_process_host_attribute_mask
unsigned long retained_process_service_attribute_mask
int log_rotation_method
int enable_notifications
int execute_service_checks
int accept_passive_service_checks
int execute_host_checks
int accept_passive_host_checks
int enable_event_handlers
int obsess_over_services
int obsess_over_hosts
int enable_failure_prediction
int translate_passive_host_checks
int passive_host_checks_are_soft
int aggregate_status_updates
int status_update_interval
int time_change_threshold
unsigned long event_broker_options
int process_performance_data
int enable_flap_detection
double low_service_flap_threshold
double high_service_flap_threshold
double low_host_flap_threshold
double high_host_flap_threshold
int use_large_installation_tweaks
int enable_environment_macros
int free_child_process_memory
int child_processes_fork_twice
int enable_embedded_perl
int use_embedded_perl_implicitly
int stalking_event_handlers_for_hosts
int stalking_event_handlers_for_services
int date_format
char * use_timezone
contactcontact_list
contactgroupcontactgroup_list
hosthost_list
hostgrouphostgroup_list
serviceservice_list
servicegroupservicegroup_list
notificationnotification_list
commandcommand_list
timeperiodtimeperiod_list
serviceescalationserviceescalation_list
servicedependencyservicedependency_list
hostdependencyhostdependency_list
hostescalationhostescalation_list
host ** host_hashlist
service ** service_hashlist
int external_command_buffer_slots
unsigned long max_check_result_file_age
char * debug_file
int debug_level
int debug_verbosity
unsigned long max_debug_file_size
int allow_empty_hostgroup_assignment

Define Documentation

#define dfs_get_status (  )     h->circular_path_checked

#define dfs_host_status (  )     (h ? dfs_get_status(h) : DFS_OK)

#define DFS_LOOPY   4

#define DFS_NEAR_LOOP   3

#define DFS_OK   2

#define dfs_set_status ( h,
flag   )     h->circular_path_checked = (flag)

#define DFS_TEMP_CHECKED   1

#define DFS_UNCHECKED   0

#define dfs_unset_status (  )     h->circular_path_checked = 0


Function Documentation

static int dfs_host_path ( host root  )  [static]

Modified version of Depth-first Search http://en.wikipedia.org/wiki/Depth-first_search

int pre_flight_check ( void   ) 

int pre_flight_circular_check ( int *  w,
int *  e 
)

int pre_flight_object_check ( int *  w,
int *  e 
)

int read_all_object_data ( char *  main_config_file  ) 

int read_main_config_file ( char *  main_config_file  ) 

int read_resource_file ( char *  resource_file  ) 


Variable Documentation

int accept_passive_host_checks

int accept_passive_service_checks

int additional_freshness_latency

int aggregate_status_updates

int allow_empty_hostgroup_assignment

char* auth_file

int auto_reschedule_checks

int auto_rescheduling_interval

int auto_rescheduling_window

unsigned long cached_host_check_horizon

unsigned long cached_service_check_horizon

int check_external_commands

int check_host_freshness

int check_orphaned_hosts

int check_orphaned_services

int check_reaper_interval

char* check_result_path

int check_service_freshness

int child_processes_fork_twice

int command_check_interval

char* command_file

command* command_list

contact* contact_list

contactgroup* contactgroup_list

int daemon_dumps_core

int daemon_mode

int date_format

char* debug_file

int debug_level

int debug_verbosity

int enable_embedded_perl

int enable_environment_macros

int enable_event_handlers

int enable_failure_prediction

int enable_flap_detection

int enable_notifications

int enable_predictive_host_dependency_checks

int enable_predictive_service_dependency_checks

unsigned long event_broker_options

int event_handler_timeout

int execute_host_checks

int execute_service_checks

int external_command_buffer_slots

int free_child_process_memory

char* global_host_event_handler

command* global_host_event_handler_ptr

char* global_service_event_handler

command* global_service_event_handler_ptr

double high_host_flap_threshold

double high_service_flap_threshold

int host_check_timeout

int host_freshness_check_interval

host** host_hashlist

int host_inter_check_delay_method

host* host_list

hostdependency* hostdependency_list

hostescalation* hostescalation_list

hostgroup* hostgroup_list

char* illegal_object_chars

char* illegal_output_chars

int interval_length

char* lock_file

char* log_archive_path

int log_current_states

int log_event_handlers

int log_external_commands

int log_external_commands_user

char* log_file

int log_host_retries

int log_initial_states

int log_long_plugin_output

int log_notifications

int log_passive_checks

int log_rotation_method

int log_service_retries

double low_host_flap_threshold

double low_service_flap_threshold

char* macro_user[MAX_USER_MACROS]

int max_check_reaper_time

unsigned long max_check_result_file_age

int max_child_process_time

unsigned long max_debug_file_size

int max_host_check_spread

int max_parallel_service_checks

int max_service_check_spread

char* nagios_group

char* nagios_user

notification* notification_list

int notification_timeout

int obsess_over_hosts

int obsess_over_services

char* ochp_command

command* ochp_command_ptr

int ochp_timeout

char* ocsp_command

command* ocsp_command_ptr

int ocsp_timeout

char* p1_file

int passive_host_checks_are_soft

int precache_objects

int process_performance_data

int retain_state_information

unsigned long retained_contact_host_attribute_mask

unsigned long retained_contact_service_attribute_mask

unsigned long retained_host_attribute_mask

unsigned long retained_process_host_attribute_mask

unsigned long retained_process_service_attribute_mask

unsigned long retained_service_attribute_mask

int retention_scheduling_horizon

int retention_update_interval

sched_info scheduling_info

int service_check_timeout

int service_check_timeout_state

int service_freshness_check_interval

service** service_hashlist

int service_inter_check_delay_method

int service_interleave_factor_method

service* service_list

servicedependency* servicedependency_list

serviceescalation* serviceescalation_list

servicegroup* servicegroup_list

double sleep_time

int soft_state_dependencies

int stalking_event_handlers_for_hosts

int stalking_event_handlers_for_services

int status_update_interval

int syslog_local_facility

char* temp_file

char* temp_path

int test_scheduling

int time_change_threshold

timeperiod* timeperiod_list

int translate_passive_host_checks

int use_aggressive_host_checking

int use_daemon_log

int use_embedded_perl_implicitly

int use_large_installation_tweaks

int use_precached_objects

int use_regexp_matches

int use_retained_program_state

int use_retained_scheduling_info

int use_syslog

int use_syslog_local_facility

char* use_timezone

int use_true_regexp_matching

int verify_circular_paths

int verify_config

int verify_object_relationships


Generated on Wed Mar 30 17:22:22 2011 for icinga-core by  doxygen 1.4.7