#include "config.h"#include "common.h"#include "locations.h"#include "objects.h"Go to the source code of this file.
| #define STATE_UNKNOWN 3 |
| typedef struct circular_buffer_struct circular_buffer |
| typedef struct mmapfile_struct mmapfile |
| typedef struct notify_list_struct notification |
| typedef struct passive_check_result_struct passive_check_result |
| typedef struct sched_info_struct sched_info |
| typedef struct service_message_struct service_message |
| typedef struct timed_event_struct timed_event |
| void acknowledge_host_problem | ( | host * | , | |
| char * | , | |||
| char * | , | |||
| int | , | |||
| int | , | |||
| int | ||||
| ) |
| void acknowledge_service_problem | ( | service * | , | |
| char * | , | |||
| char * | , | |||
| int | , | |||
| int | , | |||
| int | ||||
| ) |
| void add_event | ( | timed_event * | , | |
| timed_event ** | ||||
| ) |
| int add_macrox_name | ( | int | , | |
| char * | ||||
| ) |
| int add_notification | ( | contact * | ) |
| void adjust_check_scheduling | ( | void | ) |
| void adjust_timestamp_for_time_change | ( | time_t | , | |
| time_t | , | |||
| unsigned | long, | |||
| time_t * | ||||
| ) |
| void check_for_external_commands | ( | void | ) |
| void check_for_host_flapping | ( | host * | , | |
| int | ||||
| ) |
| void check_for_orphaned_services | ( | void | ) |
| void check_for_service_flapping | ( | service * | , | |
| int | ||||
| ) |
| int check_host | ( | host * | , | |
| int | , | |||
| int | ||||
| ) |
| int check_host_dependencies | ( | host * | , | |
| int | ||||
| ) |
| int check_host_notification_viability | ( | host * | , | |
| int | ||||
| ) |
| void check_host_result_freshness | ( | void | ) |
| int check_service_dependencies | ( | service * | , | |
| int | ||||
| ) |
| int check_service_notification_viability | ( | service * | , | |
| int | ||||
| ) |
| void check_service_result_freshness | ( | void | ) |
| int check_time_against_period | ( | time_t | , | |
| char * | ||||
| ) |
| char* clean_macro_chars | ( | char * | , | |
| int | ||||
| ) |
| void cleanup | ( | void | ) |
| void cleanup_command_file_worker_thread | ( | void * | ) |
| void cleanup_service_result_worker_thread | ( | void * | ) |
| int clear_argv_macros | ( | void | ) |
| void clear_host_flap | ( | host * | , | |
| double | , | |||
| double | , | |||
| double | ||||
| ) |
| int clear_nonvolatile_macros | ( | void | ) |
| void clear_service_flap | ( | service * | , | |
| double | , | |||
| double | , | |||
| double | ||||
| ) |
| int clear_volatile_macros | ( | void | ) |
| int close_command_file | ( | void | ) |
| int cmd_acknowledge_problem | ( | int | , | |
| char * | ||||
| ) |
| int cmd_add_comment | ( | int | , | |
| time_t | , | |||
| char * | ||||
| ) |
| int cmd_change_check_interval | ( | int | , | |
| char * | ||||
| ) |
| int cmd_change_command | ( | int | , | |
| char * | ||||
| ) |
| int cmd_change_max_attempts | ( | int | , | |
| char * | ||||
| ) |
| int cmd_delay_notification | ( | int | , | |
| char * | ||||
| ) |
| int cmd_delete_all_comments | ( | int | , | |
| char * | ||||
| ) |
| int cmd_delete_comment | ( | int | , | |
| char * | ||||
| ) |
| int cmd_delete_downtime | ( | int | , | |
| char * | ||||
| ) |
| int cmd_process_host_check_result | ( | int | , | |
| time_t | , | |||
| char * | ||||
| ) |
| int cmd_process_service_check_result | ( | int | , | |
| time_t | , | |||
| char * | ||||
| ) |
| int cmd_remove_acknowledgement | ( | int | , | |
| char * | ||||
| ) |
| int cmd_schedule_check | ( | int | , | |
| char * | ||||
| ) |
| int cmd_schedule_downtime | ( | int | , | |
| time_t | , | |||
| char * | ||||
| ) |
| int cmd_schedule_host_service_checks | ( | int | , | |
| char * | , | |||
| int | ||||
| ) |
| int cmd_schedule_service_check | ( | int | , | |
| char * | , | |||
| int | ||||
| ) |
| int cmd_signal_process | ( | int | , | |
| char * | ||||
| ) |
| void* command_file_worker_thread | ( | void * | ) |
| int compare_hashdata1 | ( | const char * | , | |
| const char * | ||||
| ) |
| int compare_hashdata2 | ( | const char * | , | |
| const char * | , | |||
| const char * | , | |||
| const char * | ||||
| ) |
| void compensate_for_system_time_change | ( | unsigned | long, | |
| unsigned | long | |||
| ) |
| int contains_illegal_object_chars | ( | char * | ) |
| int create_notification_list_from_host | ( | host * | , | |
| int * | ||||
| ) |
| int create_notification_list_from_service | ( | service * | , | |
| int * | ||||
| ) |
| int daemon_init | ( | void | ) |
| int deinit_embedded_perl | ( | void | ) |
| int deschedule_event | ( | int | , | |
| int | , | |||
| void * | , | |||
| void * | ||||
| ) |
| void disable_all_failure_prediction | ( | void | ) |
| void disable_all_notifications | ( | void | ) |
| void disable_and_propagate_notifications | ( | host * | , | |
| int | , | |||
| int | , | |||
| int | , | |||
| int | ||||
| ) |
| void disable_flap_detection_routines | ( | void | ) |
| void disable_host_checks | ( | host * | ) |
| void disable_host_event_handler | ( | host * | ) |
| void disable_host_flap_detection | ( | host * | ) |
| void disable_host_freshness_checks | ( | void | ) |
| void disable_host_notifications | ( | host * | ) |
| void disable_passive_host_checks | ( | host * | ) |
| void disable_passive_service_checks | ( | service * | ) |
| void disable_performance_data | ( | void | ) |
| void disable_service_checks | ( | service * | ) |
| void disable_service_event_handler | ( | service * | ) |
| void disable_service_flap_detection | ( | service * | ) |
| void disable_service_freshness_checks | ( | void | ) |
| void disable_service_notifications | ( | service * | ) |
| void display_scheduling_info | ( | void | ) |
| int drop_privileges | ( | char * | , | |
| char * | ||||
| ) |
| void enable_all_failure_prediction | ( | void | ) |
| void enable_all_notifications | ( | void | ) |
| void enable_and_propagate_notifications | ( | host * | , | |
| int | , | |||
| int | , | |||
| int | , | |||
| int | ||||
| ) |
| void enable_flap_detection_routines | ( | void | ) |
| void enable_host_checks | ( | host * | ) |
| void enable_host_event_handler | ( | host * | ) |
| void enable_host_flap_detection | ( | host * | ) |
| void enable_host_freshness_checks | ( | void | ) |
| void enable_host_notifications | ( | host * | ) |
| void enable_passive_host_checks | ( | host * | ) |
| void enable_passive_service_checks | ( | service * | ) |
| void enable_performance_data | ( | void | ) |
| void enable_service_checks | ( | service * | ) |
| void enable_service_event_handler | ( | service * | ) |
| void enable_service_flap_detection | ( | service * | ) |
| void enable_service_freshness_checks | ( | void | ) |
| void enable_service_notifications | ( | service * | ) |
| int event_execution_loop | ( | void | ) |
| void file_lock_sighandler | ( | int | ) |
| notification* find_notification | ( | char * | ) |
| int free_macrox_names | ( | void | ) |
| void free_memory | ( | void | ) |
| void free_notification_list | ( | void | ) |
| void get_datetime_string | ( | time_t * | , | |
| char * | , | |||
| int | , | |||
| int | ||||
| ) |
| time_t get_next_host_notification_time | ( | host * | , | |
| time_t | ||||
| ) |
| time_t get_next_log_rotation_time | ( | void | ) |
| time_t get_next_service_notification_time | ( | service * | , | |
| time_t | ||||
| ) |
| void get_next_valid_time | ( | time_t | , | |
| time_t * | , | |||
| char * | ||||
| ) |
| char* get_program_modification_date | ( | void | ) |
| char* get_program_version | ( | void | ) |
| void get_raw_command_line | ( | char * | , | |
| char * | , | |||
| int | , | |||
| int | ||||
| ) |
| char* get_url_encoded_string | ( | char * | ) |
| int grab_contact_macros | ( | contact * | ) |
| int grab_datetime_macros | ( | void | ) |
| int grab_host_macros | ( | host * | ) |
| int grab_on_demand_host_macro | ( | host * | , | |
| char * | ||||
| ) |
| int grab_on_demand_macro | ( | char * | ) |
| int grab_on_demand_service_macro | ( | service * | , | |
| char * | ||||
| ) |
| int grab_service_macros | ( | service * | ) |
| int grab_summary_macros | ( | contact * | ) |
| int handle_host_event | ( | host * | ) |
| int handle_host_state | ( | host * | ) |
| int handle_service_event | ( | service * | ) |
| int handle_timed_event | ( | timed_event * | ) |
| int hashfunc1 | ( | const char * | name1, | |
| int | hashslots | |||
| ) |
| int hashfunc2 | ( | const char * | name1, | |
| const char * | name2, | |||
| int | hashslots | |||
| ) |
| int host_notification | ( | host * | , | |
| int | , | |||
| char * | , | |||
| char * | ||||
| ) |
| int init_command_file_worker_thread | ( | void | ) |
| int init_embedded_perl | ( | char ** | ) |
| int init_macrox_names | ( | void | ) |
| int init_service_result_worker_thread | ( | void | ) |
| void init_timing_loop | ( | void | ) |
| int is_valid_escalation_for_service_notification | ( | service * | , | |
| serviceescalation * | ||||
| ) |
| int is_valid_host_escalation_for_host_notification | ( | host * | , | |
| hostescalation * | ||||
| ) |
| int log_host_event | ( | host * | ) |
| int log_host_states | ( | int | , | |
| time_t * | ||||
| ) |
| int log_service_event | ( | service * | ) |
| int log_service_states | ( | int | , | |
| time_t * | ||||
| ) |
| int mmap_fclose | ( | mmapfile * | ) |
| char* mmap_fgets | ( | mmapfile * | ) |
| char* mmap_fgets_multiline | ( | mmapfile * | ) |
| mmapfile* mmap_fopen | ( | char * | ) |
| int my_rename | ( | char * | , | |
| char * | ||||
| ) |
| char* my_strsep | ( | char ** | , | |
| const char * | ||||
| ) |
| char* my_strtok | ( | char * | , | |
| char * | ||||
| ) |
| int my_system | ( | char * | , | |
| int | , | |||
| int * | , | |||
| double * | , | |||
| char * | , | |||
| int | ||||
| ) |
| void my_system_sighandler | ( | int | ) |
| int obsessive_compulsive_host_check_processor | ( | host * | ) |
| int obsessive_compulsive_service_check_processor | ( | service * | ) |
| int open_command_file | ( | void | ) |
| int pre_flight_check | ( | void | ) |
| void process_external_command | ( | int | , | |
| time_t | , | |||
| char * | ||||
| ) |
| int process_host_command | ( | int | , | |
| time_t | , | |||
| char * | ||||
| ) |
| int process_hostgroup_command | ( | int | , | |
| time_t | , | |||
| char * | ||||
| ) |
| int process_macros | ( | char * | , | |
| char * | , | |||
| int | , | |||
| int | ||||
| ) |
| int process_passive_host_check | ( | time_t | , | |
| char * | , | |||
| int | , | |||
| char * | ||||
| ) |
| int process_passive_service_check | ( | time_t | , | |
| char * | , | |||
| char * | , | |||
| int | , | |||
| char * | ||||
| ) |
| void process_passive_service_checks | ( | void | ) |
| int process_service_command | ( | int | , | |
| time_t | , | |||
| char * | ||||
| ) |
| int process_servicegroup_command | ( | int | , | |
| time_t | , | |||
| char * | ||||
| ) |
| int read_all_object_data | ( | char * | ) |
| int read_main_config_file | ( | char * | ) |
| int read_resource_file | ( | char * | ) |
| int read_svc_message | ( | service_message * | ) |
| void reap_service_checks | ( | void | ) |
| void remove_event | ( | timed_event * | , | |
| timed_event ** | ||||
| ) |
| void remove_host_acknowledgement | ( | host * | ) |
| void remove_service_acknowledgement | ( | service * | ) |
| void reschedule_event | ( | timed_event * | , | |
| timed_event ** | ||||
| ) |
| void reset_sighandler | ( | void | ) |
| int reset_variables | ( | void | ) |
| void resort_event_list | ( | timed_event ** | ) |
| int rotate_log_file | ( | time_t | ) |
| int run_global_host_event_handler | ( | host * | ) |
| int run_global_service_event_handler | ( | service * | ) |
| int run_host_check | ( | host * | , | |
| int | ||||
| ) |
| int run_host_event_handler | ( | host * | ) |
| int run_scheduled_host_check | ( | host * | ) |
| void run_service_check | ( | service * | ) |
| int run_service_event_handler | ( | service * | ) |
| void schedule_and_propagate_downtime | ( | host * | , | |
| time_t | , | |||
| char * | , | |||
| char * | , | |||
| time_t | , | |||
| time_t | , | |||
| int | , | |||
| unsigned | long, | |||
| unsigned | long | |||
| ) |
| void schedule_host_check | ( | host * | , | |
| time_t | , | |||
| int | ||||
| ) |
| int schedule_new_event | ( | int | , | |
| int | , | |||
| time_t | , | |||
| int | , | |||
| unsigned | long, | |||
| void * | , | |||
| int | , | |||
| void * | , | |||
| void * | ||||
| ) |
| void schedule_service_check | ( | service * | , | |
| time_t | , | |||
| int | ||||
| ) |
| void service_check_sighandler | ( | int | ) |
| int service_notification | ( | service * | , | |
| int | , | |||
| char * | , | |||
| char * | ||||
| ) |
| void* service_result_worker_thread | ( | void * | ) |
| int set_all_macro_environment_vars | ( | int | ) |
| int set_argv_macro_environment_vars | ( | int | ) |
| void set_host_flap | ( | host * | , | |
| double | , | |||
| double | , | |||
| double | ||||
| ) |
| void set_host_notification_number | ( | host * | , | |
| int | ||||
| ) |
| int set_macro_environment_var | ( | char * | , | |
| char * | , | |||
| int | ||||
| ) |
| int set_macrox_environment_vars | ( | int | ) |
| void set_service_flap | ( | service * | , | |
| double | , | |||
| double | , | |||
| double | ||||
| ) |
| void set_service_notification_number | ( | service * | , | |
| int | ||||
| ) |
| void setup_sighandler | ( | void | ) |
| int should_host_notification_be_escalated | ( | host * | ) |
| int should_service_notification_be_escalated | ( | service * | ) |
| int shutdown_command_file_worker_thread | ( | void | ) |
| int shutdown_service_result_worker_thread | ( | void | ) |
| void sighandler | ( | int | ) |
| void start_accepting_passive_host_checks | ( | void | ) |
| void start_accepting_passive_service_checks | ( | void | ) |
| void start_executing_host_checks | ( | void | ) |
| void start_executing_service_checks | ( | void | ) |
| void start_obsessing_over_host | ( | host * | ) |
| void start_obsessing_over_host_checks | ( | void | ) |
| void start_obsessing_over_service | ( | service * | ) |
| void start_obsessing_over_service_checks | ( | void | ) |
| void start_using_event_handlers | ( | void | ) |
| void stop_accepting_passive_host_checks | ( | void | ) |
| void stop_accepting_passive_service_checks | ( | void | ) |
| void stop_executing_host_checks | ( | void | ) |
| void stop_executing_service_checks | ( | void | ) |
| void stop_obsessing_over_host | ( | host * | ) |
| void stop_obsessing_over_host_checks | ( | void | ) |
| void stop_obsessing_over_service | ( | service * | ) |
| void stop_obsessing_over_service_checks | ( | void | ) |
| void stop_using_event_handlers | ( | void | ) |
| void strip | ( | char * | ) |
| int submit_external_command | ( | char * | , | |
| int * | ||||
| ) |
| int submit_raw_external_command | ( | char * | , | |
| time_t * | , | |||
| int * | ||||
| ) |
| int verify_route_to_host | ( | host * | , | |
| int | ||||
| ) |
| int write_log_file_info | ( | time_t * | ) |
| int write_svc_message | ( | service_message * | ) |
| int write_to_all_logs | ( | char * | , | |
| unsigned | long | |||
| ) |
| int write_to_all_logs_with_timestamp | ( | char * | , | |
| unsigned | long, | |||
| time_t * | ||||
| ) |
| int write_to_console | ( | char * | ) |
| int write_to_log | ( | char * | , | |
| unsigned | long, | |||
| time_t * | ||||
| ) |
| int write_to_logs_and_console | ( | char * | , | |
| unsigned | long, | |||
| int | ||||
| ) |
| int write_to_syslog | ( | char * | , | |
| unsigned | long | |||
| ) |
1.5.6