Icinga-core 1.4.0
next gen monitoring
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"

Go to the source code of this file.

Functions

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 dummy

Function Documentation

int adjust_host_check_attempt_3x ( host hst,
int  is_active 
)

Definition at line 4103 of file checks.c.

void check_for_orphaned_hosts ( void  )

Definition at line 2493 of file checks.c.

void check_for_orphaned_services ( void  )

Definition at line 2100 of file checks.c.

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

Definition at line 4038 of file checks.c.

int check_host_dependencies ( host hst,
int  dependency_type 
)

Definition at line 2438 of file checks.c.

void check_host_result_freshness ( void  )

Definition at line 2545 of file checks.c.

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

Definition at line 1976 of file checks.c.

int check_service_dependencies ( service svc,
int  dependency_type 
)

Definition at line 2043 of file checks.c.

void check_service_result_freshness ( void  )

Definition at line 2148 of file checks.c.

int determine_host_reachability ( host hst)

Definition at line 4133 of file checks.c.

int execute_sync_host_check_3x ( host hst)

Definition at line 2810 of file checks.c.

int handle_async_host_check_result_3x ( host temp_host,
check_result queued_check_result 
)

Definition at line 3385 of file checks.c.

int handle_async_service_check_result ( service temp_service,
check_result queued_check_result 
)

Definition at line 1040 of file checks.c.

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

Definition at line 2602 of file checks.c.

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

Definition at line 2211 of file checks.c.

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

Definition at line 2280 of file checks.c.

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 
)

Definition at line 2666 of file checks.c.

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

Definition at line 2292 of file checks.c.

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 
)

Definition at line 3596 of file checks.c.

int reap_check_results ( void  )

Definition at line 290 of file checks.c.

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 
)

Definition at line 3048 of file checks.c.

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 
)

Definition at line 487 of file checks.c.

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

Definition at line 2969 of file checks.c.

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

Definition at line 403 of file checks.c.

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

Definition at line 2687 of file checks.c.

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

Definition at line 2304 of file checks.c.

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

Definition at line 1841 of file checks.c.


Variable Documentation

Definition at line 206 of file icinga.c.

Definition at line 204 of file icinga.c.

Definition at line 140 of file icinga.c.

Definition at line 147 of file icinga.c.

Definition at line 148 of file icinga.c.

Definition at line 136 of file icinga.c.

Definition at line 126 of file icinga.c.

Definition at line 267 of file icinga.c.

Definition at line 268 of file icinga.c.

Definition at line 51 of file utils.c.

Definition at line 135 of file icinga.c.

Definition at line 234 of file icinga.c.

Definition at line 125 of file icinga.c.

Definition at line 197 of file icinga.c.

Definition at line 196 of file icinga.c.

int dummy

Definition at line 128 of file checks.c.

Definition at line 149 of file icinga.c.

Definition at line 150 of file icinga.c.

Definition at line 98 of file events.c.

Definition at line 99 of file events.c.

time_t event_start

Definition at line 200 of file icinga.c.

Definition at line 205 of file icinga.c.

Definition at line 203 of file icinga.c.

Definition at line 233 of file icinga.c.

Definition at line 111 of file icinga.c.

Definition at line 52 of file objects.c.

Definition at line 62 of file objects.c.

Definition at line 118 of file icinga.c.

Definition at line 99 of file icinga.c.

Definition at line 103 of file icinga.c.

Definition at line 127 of file icinga.c.

unsigned long max_debug_file_size

Definition at line 283 of file icinga.c.

Definition at line 122 of file icinga.c.

Definition at line 123 of file icinga.c.

unsigned long next_event_id

Definition at line 170 of file icinga.c.

unsigned long next_problem_id

Definition at line 171 of file icinga.c.

Definition at line 209 of file icinga.c.

Definition at line 208 of file icinga.c.

Definition at line 213 of file icinga.c.

time_t program_start

Definition at line 199 of file icinga.c.

Definition at line 109 of file icinga.c.

Definition at line 53 of file objects.c.

Definition at line 61 of file objects.c.

Definition at line 177 of file icinga.c.

Definition at line 176 of file icinga.c.

Definition at line 152 of file icinga.c.

Definition at line 240 of file icinga.c.

Definition at line 241 of file icinga.c.

char* temp_file

Definition at line 65 of file icinga.c.

char* temp_path

Definition at line 66 of file icinga.c.

Definition at line 212 of file icinga.c.

Definition at line 146 of file icinga.c.

Definition at line 231 of file icinga.c.

pthread_t worker_threads[TOTAL_WORKER_THREADS]

Definition at line 275 of file icinga.c.

 All Data Structures Files Functions Variables Typedefs Defines