base/events.c File Reference

#include "../include/config.h"
#include "../include/common.h"
#include "../include/downtime.h"
#include "../include/comments.h"
#include "../include/statusdata.h"
#include "../include/icinga.h"
#include "../include/broker.h"
#include "../include/sretention.h"

Functions

void init_timing_loop (void)
void display_event_data (timed_event *event, int priority)
void display_schedule (void)
void display_scheduling_info (void)
int schedule_new_event (int event_type, int high_priority, time_t run_time, int recurring, unsigned long event_interval, void *timing_func, int compensate_for_time_change, void *event_data, void *event_args, int event_options)
void reschedule_event (timed_event *event, timed_event **event_list, timed_event **event_list_tail)
void add_event (timed_event *event, timed_event **event_list, timed_event **event_list_tail)
void remove_event (timed_event *event, timed_event **event_list, timed_event **event_list_tail)
int event_execution_loop (void)
int handle_timed_event (timed_event *event)
void adjust_check_scheduling (void)
void compensate_for_system_time_change (unsigned long last_time, unsigned long current_time)
void resort_event_list (timed_event **event_list, timed_event **event_list_tail)
void adjust_timestamp_for_time_change (time_t last_time, time_t current_time, unsigned long time_difference, time_t *ts)

Variables

char * config_file
int test_scheduling
time_t program_start
time_t event_start
time_t last_command_check
int sigshutdown
int sigrestart
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
int command_check_interval
int check_reaper_interval
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 retain_state_information
int retention_update_interval
int max_parallel_service_checks
int currently_running_service_checks
int aggregate_status_updates
int status_update_interval
int log_rotation_method
int service_check_timeout
int execute_service_checks
int execute_host_checks
int child_processes_fork_twice
int time_change_threshold
timed_eventevent_list_low = NULL
timed_eventevent_list_low_tail = NULL
timed_eventevent_list_high = NULL
timed_eventevent_list_high_tail = NULL
hosthost_list
serviceservice_list
sched_info scheduling_info

Function Documentation

void add_event ( timed_event event,
timed_event **  event_list,
timed_event **  event_list_tail 
)

void adjust_check_scheduling ( void   ) 

void adjust_timestamp_for_time_change ( time_t  last_time,
time_t  current_time,
unsigned long  time_difference,
time_t *  ts 
)

void compensate_for_system_time_change ( unsigned long  last_time,
unsigned long  current_time 
)

void display_event_data ( timed_event event,
int  priority 
)

void display_schedule ( void   ) 

void display_scheduling_info ( void   ) 

int event_execution_loop ( void   ) 

int handle_timed_event ( timed_event event  ) 

void init_timing_loop ( void   ) 

void remove_event ( timed_event event,
timed_event **  event_list,
timed_event **  event_list_tail 
)

void reschedule_event ( timed_event event,
timed_event **  event_list,
timed_event **  event_list_tail 
)

void resort_event_list ( timed_event **  event_list,
timed_event **  event_list_tail 
)

int schedule_new_event ( int  event_type,
int  high_priority,
time_t  run_time,
int  recurring,
unsigned long  event_interval,
void *  timing_func,
int  compensate_for_time_change,
void *  event_data,
void *  event_args,
int  event_options 
)


Variable Documentation

int aggregate_status_updates

int auto_reschedule_checks

int auto_rescheduling_interval

int auto_rescheduling_window

int check_external_commands

int check_host_freshness

int check_orphaned_hosts

int check_orphaned_services

int check_reaper_interval

int check_service_freshness

int child_processes_fork_twice

int command_check_interval

char* config_file

int currently_running_service_checks

timed_event* event_list_high = NULL

timed_event* event_list_high_tail = NULL

timed_event* event_list_low = NULL

timed_event* event_list_low_tail = NULL

time_t event_start

int execute_host_checks

int execute_service_checks

int host_freshness_check_interval

int host_inter_check_delay_method

host* host_list

int interval_length

time_t last_command_check

int log_rotation_method

int max_host_check_spread

int max_parallel_service_checks

int max_service_check_spread

time_t program_start

int retain_state_information

int retention_update_interval

sched_info scheduling_info

int service_check_timeout

int service_freshness_check_interval

int service_inter_check_delay_method

int service_interleave_factor_method

service* service_list

int sigrestart

int sigshutdown

double sleep_time

int status_update_interval

int test_scheduling

int time_change_threshold


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