base/checks.c File Reference

#include "../include/config.h"
#include "../include/comments.h"
#include "../include/common.h"
#include "../include/statusdata.h"
#include "../include/downtime.h"
#include "../include/macros.h"
#include "../include/icinga.h"
#include "../include/broker.h"
#include "../include/perfdata.h"
#include "../include/epn_icinga.h"
#include "../include/neberrors.h"

Functions

static void extract_check_result (FILE *fp, dbuf *checkresult_dbuf)
static int parse_command_line (char *cmd, char *argv[MAX_CMD_ARGS])
static int run_check (char *processed_command, dbuf *checkresult_dbuf)
int reap_check_results (void)
int run_scheduled_service_check (service *svc, int check_options, double latency)
int run_async_service_check (service *svc, int check_options, double latency, int scheduled_check, int reschedule_check, int *time_is_valid, time_t *preferred_time)
int handle_async_service_check_result (service *temp_service, check_result *queued_check_result)
void schedule_service_check (service *svc, time_t check_time, int options)
int check_service_check_viability (service *svc, int check_options, int *time_is_valid, time_t *new_time)
int check_service_dependencies (service *svc, int dependency_type)
void check_for_orphaned_services (void)
void check_service_result_freshness (void)
int is_service_result_fresh (service *temp_service, time_t current_time, int log_this)
int perform_on_demand_host_check (host *hst, int *check_return_code, int check_options, int use_cached_result, unsigned long check_timestamp_horizon)
int perform_scheduled_host_check (host *hst, int check_options, double latency)
void schedule_host_check (host *hst, time_t check_time, int options)
int check_host_dependencies (host *hst, int dependency_type)
void check_for_orphaned_hosts (void)
void check_host_result_freshness (void)
int is_host_result_fresh (host *temp_host, time_t current_time, int log_this)
int perform_on_demand_host_check_3x (host *hst, int *check_result_code, int check_options, int use_cached_result, unsigned long check_timestamp_horizon)
int run_sync_host_check_3x (host *hst, int *check_result_code, int check_options, int use_cached_result, unsigned long check_timestamp_horizon)
int execute_sync_host_check_3x (host *hst)
int run_scheduled_host_check_3x (host *hst, int check_options, double latency)
int run_async_host_check_3x (host *hst, int check_options, double latency, int scheduled_check, int reschedule_check, int *time_is_valid, time_t *preferred_time)
int handle_async_host_check_result_3x (host *temp_host, check_result *queued_check_result)
int process_host_check_result_3x (host *hst, int new_state, char *old_plugin_output, int check_options, int reschedule_check, int use_cached_result, unsigned long check_timestamp_horizon)
int check_host_check_viability_3x (host *hst, int check_options, int *time_is_valid, time_t *new_time)
int adjust_host_check_attempt_3x (host *hst, int is_active)
int determine_host_reachability (host *hst)

Variables

int sigshutdown
int sigrestart
char * temp_file
char * temp_path
char * check_result_path
int interval_length
int command_check_interval
int log_initial_states
int log_passive_checks
int service_check_timeout
int host_check_timeout
int check_reaper_interval
int max_check_reaper_time
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 currently_running_service_checks
int currently_running_host_checks
int accept_passive_service_checks
int execute_service_checks
int accept_passive_host_checks
int execute_host_checks
int obsess_over_services
int obsess_over_hosts
int translate_passive_host_checks
int passive_host_checks_are_soft
int check_service_freshness
int check_host_freshness
int additional_freshness_latency
int max_host_check_spread
int max_service_check_spread
int use_large_installation_tweaks
int free_child_process_memory
int child_processes_fork_twice
int stalking_event_handlers_for_hosts
int stalking_event_handlers_for_services
time_t program_start
time_t event_start
timed_eventevent_list_low
timed_eventevent_list_low_tail
hosthost_list
serviceservice_list
servicedependencyservicedependency_list
hostdependencyhostdependency_list
unsigned long next_event_id
unsigned long next_problem_id
check_result check_result_info
check_resultcheck_result_list
pthread_t worker_threads [TOTAL_WORKER_THREADS]
unsigned long max_debug_file_size
int use_embedded_perl

Function Documentation

int adjust_host_check_attempt_3x ( host hst,
int  is_active 
)

void check_for_orphaned_hosts ( void   ) 

void check_for_orphaned_services ( void   ) 

int check_host_check_viability_3x ( host hst,
int  check_options,
int *  time_is_valid,
time_t *  new_time 
)

int check_host_dependencies ( host hst,
int  dependency_type 
)

void check_host_result_freshness ( void   ) 

int check_service_check_viability ( service svc,
int  check_options,
int *  time_is_valid,
time_t *  new_time 
)

int check_service_dependencies ( service svc,
int  dependency_type 
)

void check_service_result_freshness ( void   ) 

int determine_host_reachability ( host hst  ) 

int execute_sync_host_check_3x ( host hst  ) 

static void extract_check_result ( FILE *  fp,
dbuf checkresult_dbuf 
) [static]

int handle_async_host_check_result_3x ( host temp_host,
check_result queued_check_result 
)

int handle_async_service_check_result ( service temp_service,
check_result queued_check_result 
)

int is_host_result_fresh ( host temp_host,
time_t  current_time,
int  log_this 
)

int is_service_result_fresh ( service temp_service,
time_t  current_time,
int  log_this 
)

static int parse_command_line ( char *  cmd,
char *  argv[MAX_CMD_ARGS] 
) [static]

int perform_on_demand_host_check ( host hst,
int *  check_return_code,
int  check_options,
int  use_cached_result,
unsigned long  check_timestamp_horizon 
)

int perform_on_demand_host_check_3x ( host hst,
int *  check_result_code,
int  check_options,
int  use_cached_result,
unsigned long  check_timestamp_horizon 
)

int perform_scheduled_host_check ( host hst,
int  check_options,
double  latency 
)

int process_host_check_result_3x ( host hst,
int  new_state,
char *  old_plugin_output,
int  check_options,
int  reschedule_check,
int  use_cached_result,
unsigned long  check_timestamp_horizon 
)

int reap_check_results ( void   ) 

int run_async_host_check_3x ( host hst,
int  check_options,
double  latency,
int  scheduled_check,
int  reschedule_check,
int *  time_is_valid,
time_t *  preferred_time 
)

int run_async_service_check ( service svc,
int  check_options,
double  latency,
int  scheduled_check,
int  reschedule_check,
int *  time_is_valid,
time_t *  preferred_time 
)

static int run_check ( char *  processed_command,
dbuf checkresult_dbuf 
) [static]

int run_scheduled_host_check_3x ( host hst,
int  check_options,
double  latency 
)

int run_scheduled_service_check ( service svc,
int  check_options,
double  latency 
)

int run_sync_host_check_3x ( host hst,
int *  check_result_code,
int  check_options,
int  use_cached_result,
unsigned long  check_timestamp_horizon 
)

void schedule_host_check ( host hst,
time_t  check_time,
int  options 
)

void schedule_service_check ( service svc,
time_t  check_time,
int  options 
)


Variable Documentation

int accept_passive_host_checks

int accept_passive_service_checks

int additional_freshness_latency

unsigned long cached_host_check_horizon

unsigned long cached_service_check_horizon

int check_host_freshness

int check_reaper_interval

check_result check_result_info

check_result* check_result_list

char* check_result_path

int check_service_freshness

int child_processes_fork_twice

int command_check_interval

int currently_running_host_checks

int currently_running_service_checks

int enable_predictive_host_dependency_checks

int enable_predictive_service_dependency_checks

timed_event* event_list_low

timed_event* event_list_low_tail

time_t event_start

int execute_host_checks

int execute_service_checks

int free_child_process_memory

int host_check_timeout

host* host_list

hostdependency* hostdependency_list

int interval_length

int log_initial_states

int log_passive_checks

int max_check_reaper_time

unsigned long max_debug_file_size

int max_host_check_spread

int max_service_check_spread

unsigned long next_event_id

unsigned long next_problem_id

int obsess_over_hosts

int obsess_over_services

int passive_host_checks_are_soft

time_t program_start

int service_check_timeout

service* service_list

servicedependency* servicedependency_list

int sigrestart

int sigshutdown

int soft_state_dependencies

int stalking_event_handlers_for_hosts

int stalking_event_handlers_for_services

char* temp_file

char* temp_path

int translate_passive_host_checks

int use_aggressive_host_checking

int use_embedded_perl

int use_large_installation_tweaks

pthread_t worker_threads[TOTAL_WORKER_THREADS]


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