t-tap/test-stubs.c File Reference

#include "macros.h"

Functions

int pthread_mutex_trylock (pthread_mutex_t *mutex)
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 check_for_expired_downtime (void)
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)
int check_time_against_period (time_t time_t1, timeperiod *timeperiod)
time_t get_next_log_rotation_time (void)
int handle_scheduled_downtime_by_id (unsigned long long1)
int log_host_event (host *hst)
int log_service_event (service *svc)
int rotate_log_file (time_t time_t1)
void logit (int int1, int int2, const char *fmt,...)
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)
int grab_host_macros (icinga_macros *mac, host *hst)
int grab_service_macros (icinga_macros *mac, service *svc)
void broker_log_data (int a, int b, int c, char *d, unsigned long e, time_t f, struct timeval *g)
int clear_volatile_macros_r (icinga_macros *mac)
int clear_service_macros_r (icinga_macros *mac)
int clear_host_macros_r (icinga_macros *mac)
int process_macros (char *a, char **b, int c)
int process_macros_r (icinga_macros *mac, char *a, char **b, int c)
void strip (char *s)
int update_host_status (host *hst, int aggregated_dump)
int update_service_status (service *svc, int aggregated_dump)
int update_all_status_data (void)
int process_check_result_queue (char *dirname)
servicefind_service (char *host_name, char *svc_desc)
int delete_check_result_file (char *fname)
int free_check_result (check_result *info)
hostfind_host (char *name)
check_resultread_check_result (void)
int broker_service_check (int type, int flags, int attr, service *svc, int check_type, struct timeval start_time, struct timeval end_time, char *cmd, double latency, double exectime, int timeout, int early_timeout, int retcode, char *cmdline, struct timeval *timestamp)
int get_raw_command_line (command *a, char *b, char **c, int d)
int get_raw_command_line_r (icinga_macros *mac, command *a, char *b, char **c, int d)
int dbuf_init (dbuf *db, int chunk_size)
int update_check_stats (int check_type, time_t check_time)
int set_all_macro_environment_vars (icinga_macros *mac, int set)
int close_command_file (void)
void reset_sighandler (void)
void service_check_sighandler (int sig)
int broker_host_check (int type, int flags, int attr, host *hst, int check_type, int state, int state_type, struct timeval start_time, struct timeval end_time, char *cmd, double latency, double exectime, int timeout, int early_timeout, int retcode, char *cmdline, char *output, char *long_output, char *perfdata, struct timeval *timestamp)
char * escape_newlines (char *rawbuf)
int dbuf_strcat (dbuf *db, char *buf)
int dbuf_free (dbuf *db)
int move_check_result_to_queue (char *checkresult_file)
void free_memory (icinga_macros *mac)
int parse_check_output (char *buf, char **short_output, char **long_output, char **perf_data, int escape_newlines_please, int newlines_are_escaped)
int handle_service_event (service *svc)
int delete_service_acknowledgement_comments (service *svc)
void check_for_service_flapping (service *svc, int update, int allow_flapstart_notification)
void check_for_host_flapping (host *hst, int update, int actual_check, int allow_flapstart_notification)
int service_notification (service *svc, int type, char *not_author, char *not_data, int options)
int obsessive_compulsive_service_check_processor (service *svc)
int host_notification (host *hst, int type, char *not_author, char *not_data, int options)
servicedependencyget_first_servicedependency_by_dependent_service (char *host_name, char *svc_description, void **ptr)
servicedependencyget_next_servicedependency_by_dependent_service (char *host_name, char *svc_description, void **ptr)
int add_object_to_objectlist (objectlist **list, void *object_ptr)
int check_pending_flex_service_downtime (service *svc)
int compare_strings (char *val1a, char *val2a)
int update_service_performance_data (service *svc)
int free_objectlist (objectlist **temp_list)
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)
int process_passive_service_check (time_t check_time, char *host_name, char *svc_description, int return_code, char *output)
void process_passive_checks (void)
hostdependencyget_first_hostdependency_by_dependent_host (char *host_name, void **ptr)
hostdependencyget_next_hostdependency_by_dependent_host (char *host_name, void **ptr)
int my_system_r (icinga_macros *mac, char *cmd, int timeout, int *early_timeout, double *exectime, char **output, int max_output_length)
void host_check_sighandler (int sig)
int handle_host_state (host *hst)
int has_shell_metachars (const char *s)
int handle_host_event (host *hst)

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
hosthost_list
serviceservice_list
int log_service_event_flag = 0
char * log_file = "var/icinga.log"
char * temp_file = ""
char * log_archive_path = "var"
hosthost_list = NULL
serviceservice_list = NULL
int use_syslog = 0
int log_service_retries
int log_initial_states
unsigned long logging_options = NSLOG_PROCESS_INFO
unsigned long syslog_options
int verify_config
int test_scheduling
time_t last_log_rotation
int log_rotation_method
int daemon_mode = TRUE
char * debug_file = ""
int debug_level
int debug_verbosity
unsigned long max_debug_file_size
int use_daemon_log
int use_syslog_local_facility
int syslog_local_facility
int log_current_states
int log_long_plugin_output
char * check_result_path = NULL
int max_check_reaper_time = DEFAULT_MAX_REAPER_TIME
check_result check_result_info
char * temp_path
unsigned long max_debug_file_size = DEFAULT_MAX_DEBUG_FILE_SIZE
int host_check_timeout = DEFAULT_HOST_CHECK_TIMEOUT
unsigned long next_event_id = 0L
unsigned long next_problem_id = 0L
int free_child_process_memory = -1
int accept_passive_service_checks = TRUE
int log_passive_checks = TRUE
int use_aggressive_host_checking = FALSE
unsigned long cached_host_check_horizon = DEFAULT_CACHED_HOST_CHECK_HORIZON
int obsess_over_services = FALSE
int enable_predictive_service_dependency_checks = DEFAULT_ENABLE_PREDICTIVE_SERVICE_DEPENDENCY_CHECKS
unsigned long cached_service_check_horizon = DEFAULT_CACHED_SERVICE_CHECK_HORIZON
timed_eventevent_list_low = NULL
timed_eventevent_list_low_tail = NULL
int soft_state_dependencies = FALSE
int additional_freshness_latency = DEFAULT_ADDITIONAL_FRESHNESS_LATENCY
int currently_running_host_checks = 0
int accept_passive_host_checks = TRUE
int passive_host_checks_are_soft = DEFAULT_PASSIVE_HOST_CHECKS_SOFT
int translate_passive_host_checks = DEFAULT_TRANSLATE_PASSIVE_HOST_CHECKS
int enable_predictive_host_dependency_checks = DEFAULT_ENABLE_PREDICTIVE_HOST_DEPENDENCY_CHECKS
int stalking_event_handlers_for_hosts
int stalking_event_handlers_for_services
char alert_message
char * host_name
char * host_filter
char * hostgroup_name
char * service_desc
char * servicegroup_name
char * service_filter
int host_alert
int show_all_hosts
int show_all_hostgroups
int show_all_servicegroups
int display_type
int overview_columns
int max_grid_width
int group_style_type
int navbar_search

Function Documentation

int add_object_to_objectlist ( objectlist **  list,
void *  object_ptr 
)

int broker_host_check ( int  type,
int  flags,
int  attr,
host hst,
int  check_type,
int  state,
int  state_type,
struct timeval  start_time,
struct timeval  end_time,
char *  cmd,
double  latency,
double  exectime,
int  timeout,
int  early_timeout,
int  retcode,
char *  cmdline,
char *  output,
char *  long_output,
char *  perfdata,
struct timeval *  timestamp 
)

void broker_log_data ( int  a,
int  b,
int  c,
char *  d,
unsigned long  e,
time_t  f,
struct timeval *  g 
)

int broker_service_check ( int  type,
int  flags,
int  attr,
service svc,
int  check_type,
struct timeval  start_time,
struct timeval  end_time,
char *  cmd,
double  latency,
double  exectime,
int  timeout,
int  early_timeout,
int  retcode,
char *  cmdline,
struct timeval *  timestamp 
)

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_host_flapping ( host hst,
int  update,
int  actual_check,
int  allow_flapstart_notification 
)

void check_for_service_flapping ( service svc,
int  update,
int  allow_flapstart_notification 
)

int check_pending_flex_service_downtime ( service svc  ) 

int check_time_against_period ( time_t  time_t1,
timeperiod timeperiod 
)

int clear_host_macros_r ( icinga_macros mac  ) 

clear host macros the thread-safe version

int clear_service_macros_r ( icinga_macros mac  ) 

clear service macros the thread-safe version

int clear_volatile_macros_r ( icinga_macros mac  ) 

clear all macros that are not "constant" (i.e. they change throughout the course of monitoring) the thread-safe version

int close_command_file ( void   ) 

int compare_strings ( char *  val1a,
char *  val2a 
)

int dbuf_free ( dbuf db  ) 

int dbuf_init ( dbuf db,
int  chunk_size 
)

int dbuf_strcat ( dbuf db,
char *  buf 
)

int delete_check_result_file ( char *  fname  ) 

int delete_service_acknowledgement_comments ( service svc  ) 

char* escape_newlines ( char *  rawbuf  ) 

host* find_host ( char *  name  ) 

service* find_service ( char *  host_name,
char *  svc_desc 
)

int free_check_result ( check_result info  ) 

void free_memory ( icinga_macros mac  ) 

int free_objectlist ( objectlist **  temp_list  ) 

hostdependency* get_first_hostdependency_by_dependent_host ( char *  host_name,
void **  ptr 
)

servicedependency* get_first_servicedependency_by_dependent_service ( char *  host_name,
char *  svc_description,
void **  ptr 
)

time_t get_next_host_notification_time ( host temp_host,
time_t  time_t1 
)

hostdependency* get_next_hostdependency_by_dependent_host ( char *  host_name,
void **  ptr 
)

time_t get_next_log_rotation_time ( void   ) 

time_t get_next_service_notification_time ( service temp_service,
time_t  time_t1 
)

servicedependency* get_next_servicedependency_by_dependent_service ( char *  host_name,
char *  svc_description,
void **  ptr 
)

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

int get_raw_command_line ( command a,
char *  b,
char **  c,
int  d 
)

int get_raw_command_line_r ( icinga_macros mac,
command a,
char *  b,
char **  c,
int  d 
)

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

int grab_host_macros ( icinga_macros mac,
host hst 
)

int grab_service_macros ( icinga_macros mac,
service svc 
)

int handle_host_event ( host hst  ) 

int handle_host_state ( host hst  ) 

int handle_scheduled_downtime_by_id ( unsigned long  long1  ) 

int handle_service_event ( service svc  ) 

int has_shell_metachars ( const char *  s  ) 

void host_check_sighandler ( int  sig  ) 

int host_notification ( host hst,
int  type,
char *  not_author,
char *  not_data,
int  options 
)

int log_host_event ( host hst  ) 

int log_service_event ( service svc  ) 

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

int move_check_result_to_queue ( char *  checkresult_file  ) 

int my_system_r ( icinga_macros mac,
char *  cmd,
int  timeout,
int *  early_timeout,
double *  exectime,
char **  output,
int  max_output_length 
)

int obsessive_compulsive_service_check_processor ( service svc  ) 

int parse_check_output ( char *  buf,
char **  short_output,
char **  long_output,
char **  perf_data,
int  escape_newlines_please,
int  newlines_are_escaped 
)

int process_check_result_queue ( char *  dirname  ) 

int process_macros ( char *  a,
char **  b,
int  c 
)

int process_macros_r ( icinga_macros mac,
char *  a,
char **  b,
int  c 
)

replace macros in notification commands with their values, the thread-safe version

void process_passive_checks ( void   ) 

int process_passive_service_check ( time_t  check_time,
char *  host_name,
char *  svc_description,
int  return_code,
char *  output 
)

int pthread_mutex_trylock ( pthread_mutex_t *  mutex  ) 

check_result* read_check_result ( 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 reset_sighandler ( void   ) 

int rotate_log_file ( time_t  time_t1  ) 

int save_state_information ( int  int1  ) 

void service_check_sighandler ( int  sig  ) 

int service_notification ( service svc,
int  type,
char *  not_author,
char *  not_data,
int  options 
)

int set_all_macro_environment_vars ( icinga_macros mac,
int  set 
)

void strip ( char *  s  ) 

int update_all_status_data ( void   ) 

int update_check_stats ( int  check_type,
time_t  check_time 
)

int update_host_status ( host hst,
int  aggregated_dump 
)

int update_service_performance_data ( service svc  ) 

int update_service_status ( service svc,
int  aggregated_dump 
)


Variable Documentation

int accept_passive_host_checks = TRUE

int accept_passive_service_checks = TRUE

int additional_freshness_latency = DEFAULT_ADDITIONAL_FRESHNESS_LATENCY

int aggregate_status_updates

char alert_message

int auto_reschedule_checks

int auto_rescheduling_interval

int auto_rescheduling_interval

int auto_rescheduling_window

unsigned long cached_host_check_horizon = DEFAULT_CACHED_HOST_CHECK_HORIZON

unsigned long cached_service_check_horizon = DEFAULT_CACHED_SERVICE_CHECK_HORIZON

int check_external_commands

int check_host_freshness

int check_orphaned_hosts

int check_orphaned_services

int check_reaper_interval

check_result check_result_info

char* check_result_path = NULL

int check_service_freshness

int child_processes_fork_twice

int command_check_interval

char* config_file = "etc/icinga.cfg"

int currently_running_host_checks = 0

int currently_running_service_checks

int daemon_mode = TRUE

char* debug_file = ""

int debug_level

int debug_verbosity

int display_type

int enable_predictive_host_dependency_checks = DEFAULT_ENABLE_PREDICTIVE_HOST_DEPENDENCY_CHECKS

int enable_predictive_service_dependency_checks = DEFAULT_ENABLE_PREDICTIVE_SERVICE_DEPENDENCY_CHECKS

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

int free_child_process_memory = -1

int group_style_type

int host_alert

int host_check_timeout = DEFAULT_HOST_CHECK_TIMEOUT

char* host_filter

int host_freshness_check_interval

int host_freshness_check_interval

int host_inter_check_delay_method

host* host_list = NULL

host* host_list

char* host_name

char* hostgroup_name

int interval_length = 60

time_t last_command_check

time_t last_log_rotation

char* log_archive_path = "var"

int log_current_states

char* log_file = "var/icinga.log"

int log_initial_states

int log_long_plugin_output

int log_passive_checks = TRUE

int log_rotation_method

int log_rotation_method

int log_service_event_flag = 0

int log_service_retries

unsigned long logging_options = NSLOG_PROCESS_INFO

int max_check_reaper_time = DEFAULT_MAX_REAPER_TIME

unsigned long max_debug_file_size = DEFAULT_MAX_DEBUG_FILE_SIZE

unsigned long max_debug_file_size

int max_grid_width

int max_host_check_spread

int max_parallel_service_checks

int max_service_check_spread

int navbar_search

unsigned long next_event_id = 0L

unsigned long next_problem_id = 0L

int obsess_over_services = FALSE

int overview_columns

int passive_host_checks_are_soft = DEFAULT_PASSIVE_HOST_CHECKS_SOFT

time_t program_start

int retain_state_information

int retention_update_interval

int service_check_timeout

char* service_desc

char* service_filter

int service_freshness_check_interval

int service_inter_check_delay_method

int service_interleave_factor_method

service* service_list = NULL

service* service_list

char* servicegroup_name

int show_all_hostgroups

int show_all_hosts

int show_all_servicegroups

int sigrestart = FALSE

int sigshutdown = FALSE

double sleep_time

int soft_state_dependencies = FALSE

int stalking_event_handlers_for_hosts

int stalking_event_handlers_for_services

int status_update_interval

int syslog_local_facility

unsigned long syslog_options

char* temp_file = ""

char* temp_path

int test_scheduling

int test_scheduling

int time_change_threshold

int translate_passive_host_checks = DEFAULT_TRANSLATE_PASSIVE_HOST_CHECKS

int use_aggressive_host_checking = FALSE

int use_daemon_log

int use_syslog = 0

int use_syslog_local_facility

int verify_config


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