Icinga-core 1.4.0
next gen monitoring
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"
#include "../include/profiler.h"

Go to the source code of this file.

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
int event_profiling_enabled
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 
)

Definition at line 972 of file events.c.

void adjust_check_scheduling ( void  )

Definition at line 1605 of file events.c.

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

Definition at line 1954 of file events.c.

void compensate_for_system_time_change ( unsigned long  last_time,
unsigned long  current_time 
)

Definition at line 1807 of file events.c.

void display_event_data ( timed_event event,
int  priority 
)

Definition at line 636 of file events.c.

void display_schedule ( void  )

Definition at line 733 of file events.c.

void display_scheduling_info ( void  )

Definition at line 775 of file events.c.

int event_execution_loop ( void  )

Definition at line 1075 of file events.c.

int handle_timed_event ( timed_event event)

Definition at line 1396 of file events.c.

void init_timing_loop ( void  )

Definition at line 115 of file events.c.

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

Definition at line 1032 of file events.c.

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

Definition at line 940 of file events.c.

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

Definition at line 1927 of file events.c.

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 
)

Definition at line 901 of file events.c.


Variable Documentation

Definition at line 215 of file icinga.c.

Definition at line 137 of file icinga.c.

Definition at line 130 of file icinga.c.

Definition at line 138 of file icinga.c.

Definition at line 132 of file icinga.c.

Definition at line 136 of file icinga.c.

Definition at line 134 of file icinga.c.

Definition at line 133 of file icinga.c.

Definition at line 126 of file icinga.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.

char* config_file

Definition at line 62 of file icinga.c.

Definition at line 196 of file icinga.c.

Definition at line 100 of file events.c.

Definition at line 101 of file events.c.

Definition at line 98 of file events.c.

Definition at line 99 of file events.c.

Definition at line 254 of file icinga.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 129 of file icinga.c.

Definition at line 120 of file icinga.c.

Definition at line 52 of file objects.c.

Definition at line 118 of file icinga.c.

Definition at line 142 of file icinga.c.

readlogs.c

Definition at line 174 of file icinga.c.

Definition at line 122 of file icinga.c.

Definition at line 195 of file icinga.c.

Definition at line 123 of file icinga.c.

time_t program_start

Definition at line 199 of file icinga.c.

Definition at line 154 of file icinga.c.

Definition at line 155 of file icinga.c.

Definition at line 106 of file events.c.

Definition at line 109 of file icinga.c.

Definition at line 128 of file icinga.c.

Definition at line 119 of file icinga.c.

Definition at line 121 of file icinga.c.

Definition at line 53 of file objects.c.

Definition at line 177 of file icinga.c.

Definition at line 176 of file icinga.c.

double sleep_time

Definition at line 117 of file icinga.c.

Definition at line 216 of file icinga.c.

Definition at line 187 of file icinga.c.

Definition at line 218 of file icinga.c.

 All Data Structures Files Functions Variables Typedefs Defines