t-tap/test_events.c File Reference

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

Defines

#define NSCORE   1

Functions

int check_for_expired_comment (unsigned long temp_long)
void broker_timed_event (int int1, int int2, int int3, timed_event *timed_event1, struct timeval *timeval1)
int perform_scheduled_host_check (host *temp_host, int int1, double double1)
int check_for_expired_downtime (void)
int reap_check_results (void)
void check_host_result_freshness ()
time_t get_next_service_notification_time (service *temp_service, time_t time_t1)
int save_state_information (int int1)
void get_time_breakdown (unsigned long long1, int *int1, int *int2, int *int3, int *int4)
int check_for_external_commands (void)
void check_for_orphaned_hosts ()
void check_service_result_freshness ()
int check_time_against_period (time_t time_t1, timeperiod *timeperiod)
time_t get_next_log_rotation_time (void)
void check_for_orphaned_services ()
int run_scheduled_service_check (service *service1, int int1, double double1)
int handle_scheduled_downtime_by_id (unsigned long long1)
int rotate_log_file (time_t time_t1)
time_t get_next_host_notification_time (host *temp_host, time_t time_t1)
void get_next_valid_time (time_t time_t1, time_t *time_t2, timeperiod *temp_timeperiod)
void logit (int int1, int int2, const char *fmt,...)
int update_program_status (int aggregated_dump)
int update_service_status (service *svc, int aggregated_dump)
int update_all_status_data (void)
int log_debug_info (int level, int verbosity, const char *fmt,...)
int update_host_status (host *hst, int aggregated_dump)
void setup_events (time_t time)
void setup_events_with_host (time_t time)
int main (int argc, char **argv)

Variables

char * config_file = "etc/icinga.cfg"
int test_scheduling
time_t program_start
time_t event_start
time_t last_command_check
int sigshutdown = FALSE
int sigrestart = FALSE
double sleep_time
int interval_length = 60
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 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 = 1
int execute_host_checks
int child_processes_fork_twice
int time_change_threshold
timed_eventevent_list_low
timed_eventevent_list_low_tail
timed_eventevent_list_high
timed_eventevent_list_high_tail
hosthost_list
serviceservice_list
int c = 0
servicesvc1 = NULL
servicesvc2 = NULL
servicesvc3 = NULL
hosthost1 = NULL

Define Documentation

#define NSCORE   1


Function Documentation

void broker_timed_event ( int  int1,
int  int2,
int  int3,
timed_event timed_event1,
struct timeval *  timeval1 
)

int check_for_expired_comment ( unsigned long  temp_long  ) 

int check_for_expired_downtime ( void   ) 

int check_for_external_commands ( void   ) 

void check_for_orphaned_hosts ( void   ) 

void check_for_orphaned_services ( void   ) 

void check_host_result_freshness ( void   ) 

void check_service_result_freshness ( void   ) 

int check_time_against_period ( time_t  time_t1,
timeperiod timeperiod 
)

time_t get_next_host_notification_time ( host temp_host,
time_t  time_t1 
)

time_t get_next_log_rotation_time ( void   ) 

time_t get_next_service_notification_time ( service temp_service,
time_t  time_t1 
)

void get_next_valid_time ( time_t  time_t1,
time_t *  time_t2,
timeperiod temp_timeperiod 
)

void get_time_breakdown ( unsigned long  long1,
int *  int1,
int *  int2,
int *  int3,
int *  int4 
)

int handle_scheduled_downtime_by_id ( unsigned long  long1  ) 

int log_debug_info ( int  level,
int  verbosity,
const char *  fmt,
  ... 
)

void logit ( int  int1,
int  int2,
const char *  fmt,
  ... 
)

int main ( int  argc,
char **  argv 
)

int perform_scheduled_host_check ( host temp_host,
int  int1,
double  double1 
)

int reap_check_results ( void   ) 

int rotate_log_file ( time_t  time_t1  ) 

int run_scheduled_service_check ( service service1,
int  int1,
double  double1 
)

int save_state_information ( int  int1  ) 

void setup_events ( time_t  time  ) 

void setup_events_with_host ( time_t  time  ) 

int update_all_status_data ( void   ) 

int update_host_status ( host hst,
int  aggregated_dump 
)

int update_program_status ( int  aggregated_dump  ) 

int update_service_status ( service svc,
int  aggregated_dump 
)


Variable Documentation

int aggregate_status_updates

int auto_reschedule_checks

int auto_rescheduling_interval

int auto_rescheduling_interval

int auto_rescheduling_window

int c = 0

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 = "etc/icinga.cfg"

int currently_running_service_checks

timed_event* event_list_high

timed_event* event_list_high_tail

timed_event* event_list_low

timed_event* event_list_low_tail

time_t event_start

int execute_host_checks

int execute_service_checks = 1

host* host1 = NULL

int host_freshness_check_interval

int host_freshness_check_interval

int host_inter_check_delay_method

host* host_list

int interval_length = 60

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

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 = FALSE

int sigshutdown = FALSE

double sleep_time

int status_update_interval

service* svc1 = NULL

service * svc2 = NULL

service * svc3 = NULL

int test_scheduling

int time_change_threshold


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