#include "../include/config.h"
#include "../include/common.h"
#include "../include/objects.h"
#include "../include/statusdata.h"
#include "../include/comments.h"
#include "../include/macros.h"
#include "../include/icinga.h"
#include "../include/netutils.h"
#include "../include/broker.h"
#include "../include/nebmods.h"
#include "../include/nebmodules.h"
#include "../include/epn_icinga.h"
void _get_next_valid_time | ( | time_t | pref_time, | |
time_t | current_time, | |||
time_t * | valid_time, | |||
timeperiod * | tperiod | |||
) |
void _get_next_valid_time_per_timeperiod | ( | time_t | pref_time, | |
time_t * | valid_time, | |||
time_t | current_time, | |||
timeperiod * | tperiod | |||
) |
int add_check_result_to_list | ( | check_result * | new_cr | ) |
time_t calculate_time_from_day_of_month | ( | int | year, | |
int | month, | |||
int | monthday | |||
) |
time_t calculate_time_from_weekday_of_month | ( | int | year, | |
int | month, | |||
int | weekday, | |||
int | weekday_offset | |||
) |
int check_time_against_period | ( | time_t | test_time, | |
timeperiod * | tperiod | |||
) |
void cleanup | ( | void | ) |
void cleanup_command_file_worker_thread | ( | void * | arg | ) |
int close_command_file | ( | void | ) |
void* command_file_worker_thread | ( | void * | arg | ) |
int compare_strings | ( | char * | val1a, | |
char * | val2a | |||
) |
int contains_illegal_object_chars | ( | char * | name | ) |
int daemon_init | ( | void | ) |
int dbuf_free | ( | dbuf * | db | ) |
int dbuf_init | ( | dbuf * | db, | |
int | chunk_size | |||
) |
int dbuf_strcat | ( | dbuf * | db, | |
char * | buf | |||
) |
int deinit_embedded_perl | ( | void | ) |
int delete_check_result_file | ( | char * | fname | ) |
int drop_privileges | ( | char * | user, | |
char * | group | |||
) |
char* escape_newlines | ( | char * | rawbuf | ) |
int file_uses_embedded_perl | ( | char * | fname | ) |
int free_check_result | ( | check_result * | info | ) |
int free_check_result_list | ( | void | ) |
void free_memory | ( | icinga_macros * | mac | ) |
void free_notification_list | ( | void | ) |
int generate_check_stats | ( | void | ) |
void get_earliest_time | ( | time_t | pref_time, | |
time_t * | valid_time, | |||
time_t | current_time, | |||
timeperiod * | tperiod, | |||
int | level | |||
) |
void get_min_invalid_time_per_timeperiod | ( | time_t | pref_time, | |
time_t * | valid_time, | |||
time_t | current_time, | |||
timeperiod * | tperiod | |||
) |
time_t get_next_log_rotation_time | ( | void | ) |
char* get_next_string_from_buf | ( | char * | buf, | |
int * | start_index, | |||
int | bufsize | |||
) |
void get_next_valid_time | ( | time_t | pref_time, | |
time_t * | valid_time, | |||
timeperiod * | tperiod | |||
) |
char* get_program_modification_date | ( | void | ) |
char* get_program_version | ( | void | ) |
int get_raw_command_line | ( | command * | cmd_ptr, | |
char * | cmd, | |||
char ** | full_command, | |||
int | macro_options | |||
) |
int get_raw_command_line_r | ( | icinga_macros * | mac, | |
command * | cmd_ptr, | |||
char * | cmd, | |||
char ** | full_command, | |||
int | macro_options | |||
) |
int has_shell_metachars | ( | const char * | s | ) |
void host_check_sighandler | ( | int | sig | ) |
int init_check_result | ( | check_result * | info | ) |
int init_check_stats | ( | void | ) |
int init_command_file_worker_thread | ( | void | ) |
int init_embedded_perl | ( | char ** | env | ) |
int is_daterange_single_day | ( | daterange * | dr | ) |
int move_check_result_to_queue | ( | char * | checkresult_file | ) |
int my_fcopy | ( | char * | source, | |
char * | dest | |||
) |
int my_fdcopy | ( | char * | source, | |
char * | dest, | |||
int | dest_fd | |||
) |
int my_rename | ( | char * | source, | |
char * | dest | |||
) |
int my_system | ( | char * | cmd, | |
int | timeout, | |||
int * | early_timeout, | |||
double * | exectime, | |||
char ** | output, | |||
int | max_output_length | |||
) |
int my_system_r | ( | icinga_macros * | mac, | |
char * | cmd, | |||
int | timeout, | |||
int * | early_timeout, | |||
double * | exectime, | |||
char ** | output, | |||
int | max_output_length | |||
) |
void my_system_sighandler | ( | int | sig | ) |
int open_command_file | ( | void | ) |
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_file | ( | char * | fname | ) |
int process_check_result_queue | ( | char * | dirname | ) |
check_result* read_check_result | ( | void | ) |
void reset_sighandler | ( | void | ) |
int reset_variables | ( | void | ) |
void service_check_sighandler | ( | int | sig | ) |
int set_environment_var | ( | char * | name, | |
char * | value, | |||
int | set | |||
) |
void setup_sighandler | ( | void | ) |
int shutdown_command_file_worker_thread | ( | void | ) |
void sighandler | ( | int | sig | ) |
int submit_external_command | ( | char * | cmd, | |
int * | buffer_items | |||
) |
int submit_raw_external_command | ( | char * | cmd, | |
time_t * | ts, | |||
int * | buffer_items | |||
) |
int update_check_stats | ( | int | check_type, | |
time_t | check_time | |||
) |
char* auth_file |
unsigned long cached_host_check_horizon |
unsigned long cached_service_check_horizon |
int caught_signal |
char* check_result_path |
char* check_result_path |
check_stats check_statistics[MAX_CHECK_STATS_TYPES] |
char* command_file |
int command_file_fd |
FILE* command_file_fp |
char* config_file |
int daemon_mode |
int date_format |
char* debug_file |
int debug_level |
int debug_verbosity |
int errno |
unsigned long event_broker_options |
double high_host_flap_threshold |
double high_service_flap_threshold |
char* illegal_object_chars |
char* illegal_output_chars |
int interval_length |
time_t last_command_check |
time_t last_command_status_update |
time_t last_log_rotation |
char* lock_file |
char* log_archive_path |
char* log_file |
int log_host_retries |
unsigned long logging_options |
double low_host_flap_threshold |
double low_service_flap_threshold |
char* macro_user[MAX_USER_MACROS] |
char* macro_x_names[MACRO_X_COUNT] |
unsigned long max_check_result_file_age |
unsigned long max_debug_file_size |
unsigned long modified_host_process_attributes |
unsigned long modified_service_process_attributes |
PerlInterpreter* my_perl = NULL [static] |
char* nagios_group |
int nagios_pid |
char* nagios_user |
unsigned long next_comment_id |
unsigned long next_downtime_id |
unsigned long next_event_id |
unsigned long next_notification_id |
char* ochp_command |
int ochp_timeout |
char* ocsp_command |
int ocsp_timeout |
char* p1_file |
time_t program_start |
unsigned long retained_contact_host_attribute_mask |
unsigned long retained_contact_service_attribute_mask |
unsigned long retained_host_attribute_mask |
unsigned long retained_process_host_attribute_mask |
unsigned long retained_process_service_attribute_mask |
unsigned long retained_service_attribute_mask |
int sig_id |
int sigrestart |
char* sigs[35] |
int sigshutdown |
double sleep_time |
unsigned long syslog_options |
char* temp_file |
char* temp_path |
int test_scheduling |
int use_daemon_log |
int use_embedded_perl = TRUE |
int use_syslog |
int verify_config |
pthread_t worker_threads[TOTAL_WORKER_THREADS] |