Icinga-core 1.4.0
next gen monitoring
include/icinga.h File Reference
#include "config.h"
#include "logging.h"
#include "common.h"
#include "locations.h"
#include "objects.h"
#include "macros.h"

Go to the source code of this file.

Data Structures

struct  timed_event_struct
struct  notify_list_struct
struct  check_result_struct
struct  sched_info_struct
struct  passive_check_result_struct
struct  circular_buffer_struct
struct  dbuf_struct
struct  check_stats_struct

Defines

#define __attribute__(x)
#define NSCORE
#define MAX_PLUGIN_OUTPUT_LENGTH   8192
#define MAX_CMD_ARGS   4096
#define DEFAULT_USE_DAEMON_LOG   1
#define DEFAULT_LOG_LEVEL   1
#define DEFAULT_USE_SYSLOG   1
#define DEFAULT_USE_SYSLOG_LOCAL_FACILITY   0
#define DEFAULT_SYSLOG_LOCAL_FACILITY   5
#define DEFAULT_SYSLOG_LEVEL   2
#define DEFAULT_NOTIFICATION_LOGGING   1
#define DEFAULT_INTER_CHECK_DELAY   5.0
#define DEFAULT_INTERLEAVE_FACTOR   1
#define DEFAULT_SLEEP_TIME   0.5
#define DEFAULT_INTERVAL_LENGTH   60
#define DEFAULT_RETRY_INTERVAL   30
#define DEFAULT_COMMAND_CHECK_INTERVAL   -1
#define DEFAULT_CHECK_REAPER_INTERVAL   10
#define DEFAULT_MAX_REAPER_TIME   30
#define DEFAULT_MAX_CHECK_RESULT_AGE   3600
#define DEFAULT_MAX_PARALLEL_SERVICE_CHECKS   0
#define DEFAULT_RETENTION_UPDATE_INTERVAL   60
#define DEFAULT_RETENTION_SCHEDULING_HORIZON   900
#define DEFAULT_STATUS_UPDATE_INTERVAL   60
#define DEFAULT_FRESHNESS_CHECK_INTERVAL   60
#define DEFAULT_AUTO_RESCHEDULING_INTERVAL   30
#define DEFAULT_AUTO_RESCHEDULING_WINDOW   180
#define DEFAULT_ORPHAN_CHECK_INTERVAL   60
#define DEFAULT_NOTIFICATION_TIMEOUT   30
#define DEFAULT_EVENT_HANDLER_TIMEOUT   30
#define DEFAULT_HOST_CHECK_TIMEOUT   30
#define DEFAULT_SERVICE_CHECK_TIMEOUT   60
#define DEFAULT_OCSP_TIMEOUT   15
#define DEFAULT_OCHP_TIMEOUT   15
#define DEFAULT_PERFDATA_TIMEOUT   5
#define DEFAULT_TIME_CHANGE_THRESHOLD   900
#define DEFAULT_LOG_HOST_RETRIES   0
#define DEFAULT_LOG_SERVICE_RETRIES   0
#define DEFAULT_LOG_EVENT_HANDLERS   1
#define DEFAULT_LOG_INITIAL_STATES   0
#define DEFAULT_LOG_CURRENT_STATES   1
#define DEFAULT_LOG_EXTERNAL_COMMANDS   1
#define DEFAULT_LOG_EXTERNAL_COMMANDS_USER   0
#define DEFAULT_LOG_PASSIVE_CHECKS   1
#define DEFAULT_LOG_LONG_PLUGIN_OUTPUT   0
#define DEFAULT_DEBUG_LEVEL   0
#define DEFAULT_DEBUG_VERBOSITY   1
#define DEFAULT_MAX_DEBUG_FILE_SIZE   1000000
#define DEFAULT_AGGRESSIVE_HOST_CHECKING   0
#define DEFAULT_CHECK_EXTERNAL_COMMANDS   1
#define DEFAULT_CHECK_ORPHANED_SERVICES   1
#define DEFAULT_CHECK_ORPHANED_HOSTS   1
#define DEFAULT_ENABLE_FLAP_DETECTION   0
#define DEFAULT_PROCESS_PERFORMANCE_DATA   0
#define DEFAULT_CHECK_SERVICE_FRESHNESS   1
#define DEFAULT_CHECK_HOST_FRESHNESS   0
#define DEFAULT_AUTO_RESCHEDULE_CHECKS   0
#define DEFAULT_TRANSLATE_PASSIVE_HOST_CHECKS   0
#define DEFAULT_PASSIVE_HOST_CHECKS_SOFT   0
#define DEFAULT_LOW_SERVICE_FLAP_THRESHOLD   20.0
#define DEFAULT_HIGH_SERVICE_FLAP_THRESHOLD   30.0
#define DEFAULT_LOW_HOST_FLAP_THRESHOLD   20.0
#define DEFAULT_HIGH_HOST_FLAP_THRESHOLD   30.0
#define DEFAULT_HOST_CHECK_SPREAD   30
#define DEFAULT_SERVICE_CHECK_SPREAD   30
#define DEFAULT_CACHED_HOST_CHECK_HORIZON   15
#define DEFAULT_CACHED_SERVICE_CHECK_HORIZON   15
#define DEFAULT_ENABLE_PREDICTIVE_HOST_DEPENDENCY_CHECKS   1
#define DEFAULT_ENABLE_PREDICTIVE_SERVICE_DEPENDENCY_CHECKS   1
#define DEFAULT_USE_LARGE_INSTALLATION_TWEAKS   0
#define DEFAULT_ENABLE_EMBEDDED_PERL   0
#define DEFAULT_USE_EMBEDDED_PERL_IMPLICITLY   1
#define DEFAULT_STALKING_EVENT_HANDLERS_FOR_HOSTS   0
#define DEFAULT_STALKING_EVENT_HANDLERS_FOR_SERVICES   0
#define DEFAULT_ADDITIONAL_FRESHNESS_LATENCY   15
#define DEFAULT_ALLOW_EMPTY_HOSTGROUP_ASSIGNMENT   0
#define HOST_UP   0
#define HOST_DOWN   1
#define HOST_UNREACHABLE   2
#define INITIAL_STATES   1
#define CURRENT_STATES   2
#define DEPENDENCIES_OK   0
#define DEPENDENCIES_FAILED   1
#define PROPAGATE_TO_PARENT_HOSTS   1
#define PROPAGATE_TO_CHILD_HOSTS   2
#define STATE_OK   0
#define STATE_WARNING   1
#define STATE_CRITICAL   2
#define STATE_UNKNOWN   3
#define HOST_FLAPPING   0
#define SERVICE_FLAPPING   1
#define HOST_NOTIFICATION   0
#define SERVICE_NOTIFICATION   1
#define NOTIFICATION_NORMAL   0
#define NOTIFICATION_ACKNOWLEDGEMENT   1
#define NOTIFICATION_FLAPPINGSTART   2
#define NOTIFICATION_FLAPPINGSTOP   3
#define NOTIFICATION_FLAPPINGDISABLED   4
#define NOTIFICATION_DOWNTIMESTART   5
#define NOTIFICATION_DOWNTIMEEND   6
#define NOTIFICATION_DOWNTIMECANCELLED   7
#define NOTIFICATION_CUSTOM   99
#define HOST_EVENTHANDLER   0
#define SERVICE_EVENTHANDLER   1
#define GLOBAL_HOST_EVENTHANDLER   2
#define GLOBAL_SERVICE_EVENTHANDLER   3
#define HOST_STATECHANGE   0
#define SERVICE_STATECHANGE   1
#define SERVICE_CHECK   0
#define HOST_CHECK   1
#define EVENT_SERVICE_CHECK   0
#define EVENT_COMMAND_CHECK   1
#define EVENT_LOG_ROTATION   2
#define EVENT_PROGRAM_SHUTDOWN   3
#define EVENT_PROGRAM_RESTART   4
#define EVENT_CHECK_REAPER   5
#define EVENT_ORPHAN_CHECK   6
#define EVENT_RETENTION_SAVE   7
#define EVENT_STATUS_SAVE   8
#define EVENT_SCHEDULED_DOWNTIME   9
#define EVENT_SFRESHNESS_CHECK   10
#define EVENT_EXPIRE_DOWNTIME   11
#define EVENT_HOST_CHECK   12
#define EVENT_HFRESHNESS_CHECK   13
#define EVENT_RESCHEDULE_CHECKS   14
#define EVENT_EXPIRE_COMMENT   15
#define EVENT_SLEEP   98
#define EVENT_USER_FUNCTION   99
#define ICD_NONE   0
#define ICD_DUMB   1
#define ICD_SMART   2
#define ICD_USER   3
#define ILF_USER   0
#define ILF_SMART   1
#define ACTIVE_DOWNTIME   0
#define PENDING_DOWNTIME   1
#define CHECK_STATS_BUCKETS   15
#define DEFAULT_EXTERNAL_COMMAND_BUFFER_SLOTS   4096
#define TOTAL_WORKER_THREADS   1
#define COMMAND_WORKER_THREAD   0

Typedefs

typedef struct timed_event_struct timed_event
typedef struct notify_list_struct notification
typedef struct check_result_struct check_result
typedef struct sched_info_struct sched_info
typedef struct
passive_check_result_struct 
passive_check_result
typedef struct
circular_buffer_struct 
circular_buffer
typedef struct dbuf_struct dbuf
typedef struct check_stats_struct check_stats

Functions

int read_main_config_file (char *)
int read_resource_file (char *)
int read_all_object_data (char *)
int pre_flight_check (void)
int pre_flight_object_check (int *, int *)
int pre_flight_circular_check (int *, int *)
void init_timing_loop (void)
void setup_sighandler (void)
void reset_sighandler (void)
int daemon_init (void)
int drop_privileges (char *, char *)
void display_scheduling_info (void)
int schedule_new_event (int, int, time_t, int, unsigned long, void *, int, void *, void *, int)
void reschedule_event (timed_event *, timed_event **, timed_event **)
void add_event (timed_event *, timed_event **, timed_event **)
void remove_event (timed_event *, timed_event **, timed_event **)
int event_execution_loop (void)
int handle_timed_event (timed_event *)
void adjust_check_scheduling (void)
void compensate_for_system_time_change (unsigned long, unsigned long)
void adjust_timestamp_for_time_change (time_t, time_t, unsigned long, time_t *)
void resort_event_list (timed_event **, timed_event **)
int move_check_result_to_queue (char *)
int process_check_result_queue (char *)
int process_check_result_file (char *)
int add_check_result_to_list (check_result *)
check_resultread_check_result (void)
int delete_check_result_file (char *)
int free_check_result_list (void)
int init_check_result (check_result *)
int free_check_result (check_result *)
int parse_check_output (char *, char **, char **, char **, int, int)
int open_command_file (void)
int close_command_file (void)
int check_service_dependencies (service *, int)
int check_host_dependencies (host *, int)
void check_for_orphaned_services (void)
void check_for_orphaned_hosts (void)
void check_service_result_freshness (void)
int is_service_result_fresh (service *, time_t, int)
void check_host_result_freshness (void)
int is_host_result_fresh (host *, time_t, int)
int my_system (char *, int, int *, double *, char **, int)
int my_system_r (icinga_macros *mac, char *, int, int *, double *, char **, int)
void check_for_service_flapping (service *, int, int)
void check_for_host_flapping (host *, int, int, int)
void set_service_flap (service *, double, double, double, int)
void clear_service_flap (service *, double, double, double)
void set_host_flap (host *, double, double, double, int)
void clear_host_flap (host *, double, double, double)
void enable_flap_detection_routines (void)
void disable_flap_detection_routines (void)
void enable_host_flap_detection (host *)
void disable_host_flap_detection (host *)
void enable_service_flap_detection (service *)
void disable_service_flap_detection (service *)
void handle_host_flap_detection_disabled (host *)
void handle_service_flap_detection_disabled (service *)
int perform_on_demand_host_check (host *, int *, int, int, unsigned long)
int perform_scheduled_host_check (host *, int, double)
int check_host_check_viability_3x (host *, int, int *, time_t *)
int adjust_host_check_attempt_3x (host *, int)
int determine_host_reachability (host *)
int process_host_check_result_3x (host *, int, char *, int, int, int, unsigned long)
int perform_on_demand_host_check_3x (host *, int *, int, int, unsigned long)
int run_sync_host_check_3x (host *, int *, int, int, unsigned long)
int execute_sync_host_check_3x (host *)
int run_scheduled_host_check_3x (host *, int, double)
int run_async_host_check_3x (host *, int, double, int, int, int *, time_t *)
int handle_async_host_check_result_3x (host *, check_result *)
int check_service_check_viability (service *, int, int *, time_t *)
int run_scheduled_service_check (service *, int, double)
int run_async_service_check (service *, int, double, int, int, int *, time_t *)
int handle_async_service_check_result (service *, check_result *)
int handle_host_state (host *)
int reap_check_results (void)
int init_check_stats (void)
int update_check_stats (int, time_t)
int generate_check_stats (void)
int obsessive_compulsive_service_check_processor (service *)
int obsessive_compulsive_host_check_processor (host *)
int handle_service_event (service *)
int run_service_event_handler (icinga_macros *mac, service *)
int run_global_service_event_handler (icinga_macros *mac, service *)
int handle_host_event (host *)
int run_host_event_handler (icinga_macros *mac, host *)
int run_global_host_event_handler (icinga_macros *mac, host *)
int check_service_notification_viability (service *, int, int)
int is_valid_escalation_for_service_notification (service *, serviceescalation *, int)
int should_service_notification_be_escalated (service *)
int service_notification (service *, int, char *, char *, int)
int check_contact_service_notification_viability (contact *, service *, int, int)
int notify_contact_of_service (icinga_macros *mac, contact *, service *, int, char *, char *, int, int)
int check_host_notification_viability (host *, int, int)
int is_valid_escalation_for_host_notification (host *, hostescalation *, int)
int should_host_notification_be_escalated (host *)
int host_notification (host *, int, char *, char *, int)
int check_contact_host_notification_viability (contact *, host *, int, int)
int notify_contact_of_host (icinga_macros *mac, contact *, host *, int, char *, char *, int, int)
int create_notification_list_from_host (icinga_macros *mac, host *, int, int *)
int create_notification_list_from_service (icinga_macros *mac, service *, int, int *)
int add_notification (icinga_macros *mac, contact *)
notificationfind_notification (contact *)
time_t get_next_host_notification_time (host *, time_t)
time_t get_next_service_notification_time (service *, time_t)
void cleanup (void)
void free_memory (icinga_macros *mac)
int reset_variables (void)
void free_notification_list (void)
void sighandler (int)
void service_check_sighandler (int)
void host_check_sighandler (int)
void my_system_sighandler (int)
void file_lock_sighandler (int)
char * get_next_string_from_buf (char *buf, int *start_index, int bufsize)
int compare_strings (char *, char *)
char * escape_newlines (char *)
int contains_illegal_object_chars (char *)
int my_rename (char *, char *)
int my_fcopy (char *, char *)
int my_fdcopy (char *, char *, int)
int get_raw_command_line_r (icinga_macros *mac, command *, char *, char **, int)
int get_raw_command_line (command *, char *, char **, int)
int check_time_against_period (time_t, timeperiod *)
int is_daterange_single_day (daterange *)
time_t calculate_time_from_weekday_of_month (int, int, int, int)
time_t calculate_time_from_day_of_month (int, int, int)
void get_next_valid_time (time_t, time_t *, timeperiod *)
void _get_next_valid_time_per_timeperiod (time_t, time_t *, time_t, timeperiod *)
void get_earliest_time (time_t, time_t *, time_t, timeperiod *, int)
void get_min_invalid_time_per_timeperiod (time_t, time_t *, time_t, timeperiod *)
time_t get_next_log_rotation_time (void)
int init_embedded_perl (char **)
int deinit_embedded_perl (void)
int file_uses_embedded_perl (char *)
int dbuf_init (dbuf *, int)
int dbuf_free (dbuf *)
int dbuf_strcat (dbuf *, char *)
int set_environment_var (char *, char *, int)
int check_for_external_commands (void)
int process_external_command1 (char *)
int process_external_command2 (int, time_t, char *)
int process_external_commands_from_file (char *, int)
int process_host_command (int, time_t, char *)
int process_hostgroup_command (int, time_t, char *)
int process_service_command (int, time_t, char *)
int process_servicegroup_command (int, time_t, char *)
int process_contact_command (int, time_t, char *)
int process_contactgroup_command (int, time_t, char *)
int cmd_add_comment (int, time_t, char *)
int cmd_delete_comment (int, char *)
int cmd_delete_all_comments (int, char *)
int cmd_delay_notification (int, char *)
int cmd_schedule_service_check (int, char *, int)
int cmd_schedule_check (int, char *)
int cmd_schedule_host_service_checks (int, char *, int)
int cmd_signal_process (int, char *)
int cmd_process_service_check_result (int, time_t, char *)
int cmd_process_host_check_result (int, time_t, char *)
int cmd_acknowledge_problem (int, char *)
int cmd_remove_acknowledgement (int, char *)
int cmd_schedule_downtime (int, time_t, char *)
int cmd_delete_downtime (int, char *)
int cmd_change_object_int_var (int, char *)
int cmd_change_object_char_var (int, char *)
int cmd_change_object_custom_var (int, char *)
int cmd_process_external_commands_from_file (int, char *)
int cmd_delete_downtime_by_start_time_comment (int, char *)
int cmd_delete_downtime_by_host_name (int, char *)
int cmd_delete_downtime_by_hostgroup_name (int, char *)
int process_passive_service_check (time_t, char *, char *, int, char *)
int process_passive_host_check (time_t, char *, int, char *)
void disable_service_checks (service *)
void enable_service_checks (service *)
void schedule_service_check (service *, time_t, int)
void schedule_host_check (host *, time_t, int)
void enable_all_notifications (void)
void disable_all_notifications (void)
void enable_service_notifications (service *)
void disable_service_notifications (service *)
void enable_host_notifications (host *)
void disable_host_notifications (host *)
void enable_and_propagate_notifications (host *, int, int, int, int)
void disable_and_propagate_notifications (host *, int, int, int, int)
void schedule_and_propagate_downtime (host *, time_t, char *, char *, time_t, time_t, int, unsigned long, unsigned long)
void acknowledge_host_problem (host *, char *, char *, int, int, int)
void acknowledge_service_problem (service *, char *, char *, int, int, int)
void remove_host_acknowledgement (host *)
void remove_service_acknowledgement (service *)
void start_executing_service_checks (void)
void stop_executing_service_checks (void)
void start_accepting_passive_service_checks (void)
void stop_accepting_passive_service_checks (void)
void enable_passive_service_checks (service *)
void disable_passive_service_checks (service *)
void start_using_event_handlers (void)
void stop_using_event_handlers (void)
void enable_service_event_handler (service *)
void disable_service_event_handler (service *)
void enable_host_event_handler (host *)
void disable_host_event_handler (host *)
void enable_host_checks (host *)
void disable_host_checks (host *)
void start_obsessing_over_service_checks (void)
void stop_obsessing_over_service_checks (void)
void start_obsessing_over_host_checks (void)
void stop_obsessing_over_host_checks (void)
void enable_service_freshness_checks (void)
void disable_service_freshness_checks (void)
void enable_host_freshness_checks (void)
void disable_host_freshness_checks (void)
void process_passive_checks (void)
void enable_all_failure_prediction (void)
void disable_all_failure_prediction (void)
void enable_performance_data (void)
void disable_performance_data (void)
void start_executing_host_checks (void)
void stop_executing_host_checks (void)
void start_accepting_passive_host_checks (void)
void stop_accepting_passive_host_checks (void)
void enable_passive_host_checks (host *)
void disable_passive_host_checks (host *)
void start_obsessing_over_service (service *)
void stop_obsessing_over_service (service *)
void start_obsessing_over_host (host *)
void stop_obsessing_over_host (host *)
void set_host_notification_number (host *, int)
void set_service_notification_number (service *, int)
void enable_contact_host_notifications (contact *)
void disable_contact_host_notifications (contact *)
void enable_contact_service_notifications (contact *)
void disable_contact_service_notifications (contact *)
void display_schedule (void)
int init_check_result_worker_thread (void)
int shutdown_check_result_worker_thread (void)
void * check_result_worker_thread (void *)
void cleanup_check_result_worker_thread (void *)
int init_command_file_worker_thread (void)
int shutdown_command_file_worker_thread (void)
void * command_file_worker_thread (void *)
void cleanup_command_file_worker_thread (void *)
int submit_external_command (char *, int *)
int submit_raw_external_command (char *, time_t *, int *)
char * get_program_version (void)
char * get_program_modification_date (void)
int has_shell_metachars (const char *)

Define Documentation

#define __attribute__ (   x)

Definition at line 27 of file icinga.h.

#define ACTIVE_DOWNTIME   0

Definition at line 277 of file icinga.h.

#define CHECK_STATS_BUCKETS   15

Definition at line 391 of file icinga.h.

#define COMMAND_WORKER_THREAD   0

Definition at line 411 of file icinga.h.

#define CURRENT_STATES   2

Definition at line 159 of file icinga.h.

#define DEFAULT_ADDITIONAL_FRESHNESS_LATENCY   15

Definition at line 143 of file icinga.h.

#define DEFAULT_AGGRESSIVE_HOST_CHECKING   0

Definition at line 110 of file icinga.h.

#define DEFAULT_ALLOW_EMPTY_HOSTGROUP_ASSIGNMENT   0

Definition at line 145 of file icinga.h.

#define DEFAULT_AUTO_RESCHEDULE_CHECKS   0

Definition at line 118 of file icinga.h.

#define DEFAULT_AUTO_RESCHEDULING_INTERVAL   30

Definition at line 83 of file icinga.h.

#define DEFAULT_AUTO_RESCHEDULING_WINDOW   180

Definition at line 84 of file icinga.h.

#define DEFAULT_CACHED_HOST_CHECK_HORIZON   15

Definition at line 130 of file icinga.h.

#define DEFAULT_CACHED_SERVICE_CHECK_HORIZON   15

Definition at line 131 of file icinga.h.

#define DEFAULT_CHECK_EXTERNAL_COMMANDS   1

Definition at line 111 of file icinga.h.

#define DEFAULT_CHECK_HOST_FRESHNESS   0

Definition at line 117 of file icinga.h.

#define DEFAULT_CHECK_ORPHANED_HOSTS   1

Definition at line 113 of file icinga.h.

#define DEFAULT_CHECK_ORPHANED_SERVICES   1

Definition at line 112 of file icinga.h.

#define DEFAULT_CHECK_REAPER_INTERVAL   10

Definition at line 75 of file icinga.h.

#define DEFAULT_CHECK_SERVICE_FRESHNESS   1

Definition at line 116 of file icinga.h.

#define DEFAULT_COMMAND_CHECK_INTERVAL   -1

Definition at line 74 of file icinga.h.

#define DEFAULT_DEBUG_LEVEL   0

Definition at line 106 of file icinga.h.

#define DEFAULT_DEBUG_VERBOSITY   1

Definition at line 107 of file icinga.h.

#define DEFAULT_ENABLE_EMBEDDED_PERL   0

Definition at line 137 of file icinga.h.

#define DEFAULT_ENABLE_FLAP_DETECTION   0

Definition at line 114 of file icinga.h.

#define DEFAULT_ENABLE_PREDICTIVE_HOST_DEPENDENCY_CHECKS   1

Definition at line 132 of file icinga.h.

#define DEFAULT_ENABLE_PREDICTIVE_SERVICE_DEPENDENCY_CHECKS   1

Definition at line 133 of file icinga.h.

#define DEFAULT_EVENT_HANDLER_TIMEOUT   30

Definition at line 88 of file icinga.h.

#define DEFAULT_EXTERNAL_COMMAND_BUFFER_SLOTS   4096

Definition at line 406 of file icinga.h.

#define DEFAULT_FRESHNESS_CHECK_INTERVAL   60

Definition at line 82 of file icinga.h.

#define DEFAULT_HIGH_HOST_FLAP_THRESHOLD   30.0

Definition at line 125 of file icinga.h.

#define DEFAULT_HIGH_SERVICE_FLAP_THRESHOLD   30.0

Definition at line 123 of file icinga.h.

#define DEFAULT_HOST_CHECK_SPREAD   30

Definition at line 127 of file icinga.h.

#define DEFAULT_HOST_CHECK_TIMEOUT   30

Definition at line 89 of file icinga.h.

#define DEFAULT_INTER_CHECK_DELAY   5.0

Definition at line 69 of file icinga.h.

#define DEFAULT_INTERLEAVE_FACTOR   1

Definition at line 70 of file icinga.h.

#define DEFAULT_INTERVAL_LENGTH   60

Definition at line 72 of file icinga.h.

#define DEFAULT_LOG_CURRENT_STATES   1

Definition at line 100 of file icinga.h.

#define DEFAULT_LOG_EVENT_HANDLERS   1

Definition at line 98 of file icinga.h.

#define DEFAULT_LOG_EXTERNAL_COMMANDS   1

Definition at line 101 of file icinga.h.

#define DEFAULT_LOG_EXTERNAL_COMMANDS_USER   0

Definition at line 102 of file icinga.h.

#define DEFAULT_LOG_HOST_RETRIES   0

Definition at line 96 of file icinga.h.

#define DEFAULT_LOG_INITIAL_STATES   0

Definition at line 99 of file icinga.h.

#define DEFAULT_LOG_LEVEL   1

Definition at line 60 of file icinga.h.

#define DEFAULT_LOG_LONG_PLUGIN_OUTPUT   0

Definition at line 104 of file icinga.h.

#define DEFAULT_LOG_PASSIVE_CHECKS   1

Definition at line 103 of file icinga.h.

#define DEFAULT_LOG_SERVICE_RETRIES   0

Definition at line 97 of file icinga.h.

#define DEFAULT_LOW_HOST_FLAP_THRESHOLD   20.0

Definition at line 124 of file icinga.h.

#define DEFAULT_LOW_SERVICE_FLAP_THRESHOLD   20.0

Definition at line 122 of file icinga.h.

#define DEFAULT_MAX_CHECK_RESULT_AGE   3600

Definition at line 77 of file icinga.h.

#define DEFAULT_MAX_DEBUG_FILE_SIZE   1000000

Definition at line 108 of file icinga.h.

#define DEFAULT_MAX_PARALLEL_SERVICE_CHECKS   0

Definition at line 78 of file icinga.h.

#define DEFAULT_MAX_REAPER_TIME   30

Definition at line 76 of file icinga.h.

#define DEFAULT_NOTIFICATION_LOGGING   1

Definition at line 67 of file icinga.h.

#define DEFAULT_NOTIFICATION_TIMEOUT   30

Definition at line 87 of file icinga.h.

#define DEFAULT_OCHP_TIMEOUT   15

Definition at line 92 of file icinga.h.

#define DEFAULT_OCSP_TIMEOUT   15

Definition at line 91 of file icinga.h.

#define DEFAULT_ORPHAN_CHECK_INTERVAL   60

Definition at line 85 of file icinga.h.

#define DEFAULT_PASSIVE_HOST_CHECKS_SOFT   0

Definition at line 120 of file icinga.h.

#define DEFAULT_PERFDATA_TIMEOUT   5

Definition at line 93 of file icinga.h.

#define DEFAULT_PROCESS_PERFORMANCE_DATA   0

Definition at line 115 of file icinga.h.

#define DEFAULT_RETENTION_SCHEDULING_HORIZON   900

Definition at line 80 of file icinga.h.

#define DEFAULT_RETENTION_UPDATE_INTERVAL   60

Definition at line 79 of file icinga.h.

#define DEFAULT_RETRY_INTERVAL   30

Definition at line 73 of file icinga.h.

#define DEFAULT_SERVICE_CHECK_SPREAD   30

Definition at line 128 of file icinga.h.

#define DEFAULT_SERVICE_CHECK_TIMEOUT   60

Definition at line 90 of file icinga.h.

#define DEFAULT_SLEEP_TIME   0.5

Definition at line 71 of file icinga.h.

#define DEFAULT_STALKING_EVENT_HANDLERS_FOR_HOSTS   0

Definition at line 140 of file icinga.h.

#define DEFAULT_STALKING_EVENT_HANDLERS_FOR_SERVICES   0

Definition at line 141 of file icinga.h.

#define DEFAULT_STATUS_UPDATE_INTERVAL   60

Definition at line 81 of file icinga.h.

#define DEFAULT_SYSLOG_LEVEL   2

Definition at line 65 of file icinga.h.

#define DEFAULT_SYSLOG_LOCAL_FACILITY   5

Definition at line 63 of file icinga.h.

#define DEFAULT_TIME_CHANGE_THRESHOLD   900

Definition at line 94 of file icinga.h.

#define DEFAULT_TRANSLATE_PASSIVE_HOST_CHECKS   0

Definition at line 119 of file icinga.h.

#define DEFAULT_USE_DAEMON_LOG   1

Definition at line 59 of file icinga.h.

#define DEFAULT_USE_EMBEDDED_PERL_IMPLICITLY   1

Definition at line 138 of file icinga.h.

#define DEFAULT_USE_LARGE_INSTALLATION_TWEAKS   0

Definition at line 135 of file icinga.h.

#define DEFAULT_USE_SYSLOG   1

Definition at line 61 of file icinga.h.

#define DEFAULT_USE_SYSLOG_LOCAL_FACILITY   0

Definition at line 62 of file icinga.h.

#define DEPENDENCIES_FAILED   1

Definition at line 166 of file icinga.h.

#define DEPENDENCIES_OK   0

Definition at line 165 of file icinga.h.

#define EVENT_CHECK_REAPER   5

Definition at line 243 of file icinga.h.

#define EVENT_COMMAND_CHECK   1

Definition at line 239 of file icinga.h.

#define EVENT_EXPIRE_COMMENT   15

Definition at line 253 of file icinga.h.

#define EVENT_EXPIRE_DOWNTIME   11

Definition at line 249 of file icinga.h.

#define EVENT_HFRESHNESS_CHECK   13

Definition at line 251 of file icinga.h.

#define EVENT_HOST_CHECK   12

Definition at line 250 of file icinga.h.

#define EVENT_LOG_ROTATION   2

Definition at line 240 of file icinga.h.

#define EVENT_ORPHAN_CHECK   6

Definition at line 244 of file icinga.h.

#define EVENT_PROGRAM_RESTART   4

Definition at line 242 of file icinga.h.

#define EVENT_PROGRAM_SHUTDOWN   3

Definition at line 241 of file icinga.h.

#define EVENT_RESCHEDULE_CHECKS   14

Definition at line 252 of file icinga.h.

#define EVENT_RETENTION_SAVE   7

Definition at line 245 of file icinga.h.

#define EVENT_SCHEDULED_DOWNTIME   9

Definition at line 247 of file icinga.h.

#define EVENT_SERVICE_CHECK   0

Definition at line 238 of file icinga.h.

#define EVENT_SFRESHNESS_CHECK   10

Definition at line 248 of file icinga.h.

#define EVENT_SLEEP   98

Definition at line 254 of file icinga.h.

#define EVENT_STATUS_SAVE   8

Definition at line 246 of file icinga.h.

#define EVENT_USER_FUNCTION   99

Definition at line 255 of file icinga.h.

#define GLOBAL_HOST_EVENTHANDLER   2

Definition at line 218 of file icinga.h.

#define GLOBAL_SERVICE_EVENTHANDLER   3

Definition at line 219 of file icinga.h.

#define HOST_CHECK   1

Definition at line 232 of file icinga.h.

#define HOST_DOWN   1

Definition at line 151 of file icinga.h.

#define HOST_EVENTHANDLER   0

Definition at line 216 of file icinga.h.

#define HOST_FLAPPING   0

Definition at line 188 of file icinga.h.

#define HOST_NOTIFICATION   0

Definition at line 195 of file icinga.h.

#define HOST_STATECHANGE   0

Definition at line 225 of file icinga.h.

#define HOST_UNREACHABLE   2

Definition at line 152 of file icinga.h.

#define HOST_UP   0

Definition at line 150 of file icinga.h.

#define ICD_DUMB   1

Definition at line 262 of file icinga.h.

#define ICD_NONE   0

Definition at line 261 of file icinga.h.

#define ICD_SMART   2

Definition at line 263 of file icinga.h.

#define ICD_USER   3

Definition at line 264 of file icinga.h.

#define ILF_SMART   1

Definition at line 271 of file icinga.h.

#define ILF_USER   0

Definition at line 270 of file icinga.h.

#define INITIAL_STATES   1

Definition at line 158 of file icinga.h.

#define MAX_CMD_ARGS   4096

Definition at line 54 of file icinga.h.

#define MAX_PLUGIN_OUTPUT_LENGTH   8192

Definition at line 53 of file icinga.h.

#define NOTIFICATION_ACKNOWLEDGEMENT   1

Definition at line 203 of file icinga.h.

#define NOTIFICATION_CUSTOM   99

Definition at line 210 of file icinga.h.

#define NOTIFICATION_DOWNTIMECANCELLED   7

Definition at line 209 of file icinga.h.

#define NOTIFICATION_DOWNTIMEEND   6

Definition at line 208 of file icinga.h.

#define NOTIFICATION_DOWNTIMESTART   5

Definition at line 207 of file icinga.h.

#define NOTIFICATION_FLAPPINGDISABLED   4

Definition at line 206 of file icinga.h.

#define NOTIFICATION_FLAPPINGSTART   2

Definition at line 204 of file icinga.h.

#define NOTIFICATION_FLAPPINGSTOP   3

Definition at line 205 of file icinga.h.

#define NOTIFICATION_NORMAL   0

Definition at line 202 of file icinga.h.

#define NSCORE

Definition at line 30 of file icinga.h.

#define PENDING_DOWNTIME   1

Definition at line 278 of file icinga.h.

#define PROPAGATE_TO_CHILD_HOSTS   2

Definition at line 173 of file icinga.h.

#define PROPAGATE_TO_PARENT_HOSTS   1

Definition at line 172 of file icinga.h.

#define SERVICE_CHECK   0

Definition at line 231 of file icinga.h.

#define SERVICE_EVENTHANDLER   1

Definition at line 217 of file icinga.h.

#define SERVICE_FLAPPING   1

Definition at line 189 of file icinga.h.

#define SERVICE_NOTIFICATION   1

Definition at line 196 of file icinga.h.

#define SERVICE_STATECHANGE   1

Definition at line 226 of file icinga.h.

#define STATE_CRITICAL   2

Definition at line 181 of file icinga.h.

#define STATE_OK   0

Definition at line 179 of file icinga.h.

#define STATE_UNKNOWN   3

Definition at line 182 of file icinga.h.

#define STATE_WARNING   1

Definition at line 180 of file icinga.h.

#define TOTAL_WORKER_THREADS   1

Definition at line 409 of file icinga.h.


Typedef Documentation

typedef struct dbuf_struct dbuf
typedef struct sched_info_struct sched_info

Function Documentation

void _get_next_valid_time_per_timeperiod ( time_t  ,
time_t *  ,
time_t  ,
timeperiod  
)

Definition at line 1166 of file utils.c.

void acknowledge_host_problem ( host ,
char *  ,
char *  ,
int  ,
int  ,
int   
)

Definition at line 4081 of file commands.c.

void acknowledge_service_problem ( service ,
char *  ,
char *  ,
int  ,
int  ,
int   
)

Definition at line 4115 of file commands.c.

int add_check_result_to_list ( check_result )

Definition at line 2922 of file utils.c.

void add_event ( timed_event ,
timed_event **  ,
timed_event **   
)

Definition at line 972 of file events.c.

int add_notification ( icinga_macros mac,
contact  
)

Definition at line 2323 of file notifications.c.

void adjust_check_scheduling ( void  )

Definition at line 1605 of file events.c.

int adjust_host_check_attempt_3x ( host ,
int   
)

Definition at line 4103 of file checks.c.

void adjust_timestamp_for_time_change ( time_t  ,
time_t  ,
unsigned  long,
time_t *   
)

Definition at line 1954 of file events.c.

time_t calculate_time_from_day_of_month ( int  ,
int  ,
int   
)

Definition at line 1948 of file utils.c.

time_t calculate_time_from_weekday_of_month ( int  ,
int  ,
int  ,
int   
)

Definition at line 2018 of file utils.c.

int check_contact_host_notification_viability ( contact ,
host ,
int  ,
int   
)

Definition at line 1688 of file notifications.c.

int check_contact_service_notification_viability ( contact ,
service ,
int  ,
int   
)

Definition at line 621 of file notifications.c.

int check_for_external_commands ( void  )

Definition at line 100 of file commands.c.

void check_for_host_flapping ( host ,
int  ,
int  ,
int   
)

Definition at line 184 of file flapping.c.

void check_for_orphaned_hosts ( void  )

Definition at line 2493 of file checks.c.

void check_for_orphaned_services ( void  )

Definition at line 2100 of file checks.c.

void check_for_service_flapping ( service ,
int  ,
int   
)

Definition at line 59 of file flapping.c.

int check_host_check_viability_3x ( host ,
int  ,
int *  ,
time_t *   
)

Definition at line 4038 of file checks.c.

int check_host_dependencies ( host ,
int   
)

Definition at line 2438 of file checks.c.

int check_host_notification_viability ( host ,
int  ,
int   
)

Definition at line 1462 of file notifications.c.

void check_host_result_freshness ( void  )

Definition at line 2545 of file checks.c.

void* check_result_worker_thread ( void *  )
int check_service_check_viability ( service ,
int  ,
int *  ,
time_t *   
)

Definition at line 1976 of file checks.c.

int check_service_dependencies ( service ,
int   
)

Definition at line 2043 of file checks.c.

int check_service_notification_viability ( service ,
int  ,
int   
)

Definition at line 348 of file notifications.c.

void check_service_result_freshness ( void  )

Definition at line 2148 of file checks.c.

int check_time_against_period ( time_t  ,
timeperiod  
)

Definition at line 836 of file utils.c.

void cleanup ( void  )

Definition at line 4341 of file utils.c.

void cleanup_check_result_worker_thread ( void *  )
void cleanup_command_file_worker_thread ( void *  )

Definition at line 3838 of file utils.c.

void clear_host_flap ( host ,
double  ,
double  ,
double   
)

Definition at line 447 of file flapping.c.

void clear_service_flap ( service ,
double  ,
double  ,
double   
)

Definition at line 366 of file flapping.c.

int close_command_file ( void  )

Definition at line 3259 of file utils.c.

int cmd_acknowledge_problem ( int  ,
char *   
)

Definition at line 2340 of file commands.c.

int cmd_add_comment ( int  ,
time_t  ,
char *   
)

Definition at line 1777 of file commands.c.

int cmd_change_object_char_var ( int  ,
char *   
)

Definition at line 3125 of file commands.c.

int cmd_change_object_custom_var ( int  ,
char *   
)

Definition at line 3474 of file commands.c.

int cmd_change_object_int_var ( int  ,
char *   
)

Definition at line 2841 of file commands.c.

int cmd_delay_notification ( int  ,
char *   
)

Definition at line 1891 of file commands.c.

int cmd_delete_all_comments ( int  ,
char *   
)

Definition at line 1856 of file commands.c.

int cmd_delete_comment ( int  ,
char *   
)

Definition at line 1837 of file commands.c.

int cmd_delete_downtime ( int  ,
char *   
)

Definition at line 2658 of file commands.c.

int cmd_delete_downtime_by_host_name ( int  ,
char *   
)

Definition at line 2678 of file commands.c.

int cmd_delete_downtime_by_hostgroup_name ( int  ,
char *   
)

Definition at line 2723 of file commands.c.

int cmd_delete_downtime_by_start_time_comment ( int  ,
char *   
)

Definition at line 2807 of file commands.c.

int cmd_process_external_commands_from_file ( int  ,
char *   
)

Definition at line 3602 of file commands.c.

int cmd_process_host_check_result ( int  ,
time_t  ,
char *   
)

Definition at line 2203 of file commands.c.

int cmd_process_service_check_result ( int  ,
time_t  ,
char *   
)

Definition at line 2050 of file commands.c.

int cmd_remove_acknowledgement ( int  ,
char *   
)

Definition at line 2417 of file commands.c.

int cmd_schedule_check ( int  ,
char *   
)

Definition at line 1939 of file commands.c.

int cmd_schedule_downtime ( int  ,
time_t  ,
char *   
)

Definition at line 2457 of file commands.c.

int cmd_schedule_host_service_checks ( int  ,
char *  ,
int   
)

Definition at line 1995 of file commands.c.

int cmd_schedule_service_check ( int  ,
char *  ,
int   
)
int cmd_signal_process ( int  ,
char *   
)

Definition at line 2030 of file commands.c.

void* command_file_worker_thread ( void *  )

Definition at line 3853 of file utils.c.

int compare_strings ( char *  ,
char *   
)

Definition at line 3376 of file utils.c.

void compensate_for_system_time_change ( unsigned  long,
unsigned  long 
)

Definition at line 1807 of file events.c.

int contains_illegal_object_chars ( char *  )

Definition at line 3315 of file utils.c.

int create_notification_list_from_host ( icinga_macros mac,
host ,
int  ,
int *   
)

Definition at line 2078 of file notifications.c.

int create_notification_list_from_service ( icinga_macros mac,
service ,
int  ,
int *   
)

Definition at line 1102 of file notifications.c.

int daemon_init ( void  )

Definition at line 2316 of file utils.c.

int dbuf_free ( dbuf )

Definition at line 3560 of file utils.c.

int dbuf_init ( dbuf ,
int   
)

Definition at line 3545 of file utils.c.

int dbuf_strcat ( dbuf ,
char *   
)

Definition at line 3576 of file utils.c.

int deinit_embedded_perl ( void  )

Definition at line 3677 of file utils.c.

int delete_check_result_file ( char *  )

Definition at line 2856 of file utils.c.

int determine_host_reachability ( host )

Definition at line 4133 of file checks.c.

void disable_all_failure_prediction ( void  )

Definition at line 4977 of file commands.c.

void disable_all_notifications ( void  )

Definition at line 3740 of file commands.c.

void disable_and_propagate_notifications ( host ,
int  ,
int  ,
int  ,
int   
)

Definition at line 3909 of file commands.c.

void disable_contact_host_notifications ( contact )

Definition at line 3978 of file commands.c.

void disable_contact_service_notifications ( contact )

Definition at line 4032 of file commands.c.

void disable_flap_detection_routines ( void  )

Definition at line 530 of file flapping.c.

void disable_host_checks ( host )

Definition at line 4665 of file commands.c.

void disable_host_event_handler ( host )

Definition at line 4639 of file commands.c.

void disable_host_flap_detection ( host )

Definition at line 605 of file flapping.c.

void disable_host_freshness_checks ( void  )

Definition at line 4925 of file commands.c.

void disable_host_notifications ( host )

Definition at line 3845 of file commands.c.

void disable_passive_host_checks ( host )

Definition at line 4480 of file commands.c.

void disable_passive_service_checks ( service )

Definition at line 4317 of file commands.c.

void disable_performance_data ( void  )

Definition at line 5029 of file commands.c.

void disable_service_checks ( service )

Definition at line 3638 of file commands.c.

void disable_service_event_handler ( service )

Definition at line 4587 of file commands.c.

void disable_service_flap_detection ( service )

Definition at line 719 of file flapping.c.

void disable_service_freshness_checks ( void  )

Definition at line 4873 of file commands.c.

void disable_service_notifications ( service )

Definition at line 3793 of file commands.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 drop_privileges ( char *  ,
char *   
)

Definition at line 2446 of file utils.c.

void enable_all_failure_prediction ( void  )

Definition at line 4951 of file commands.c.

void enable_all_notifications ( void  )

Definition at line 3713 of file commands.c.

void enable_and_propagate_notifications ( host ,
int  ,
int  ,
int  ,
int   
)

Definition at line 3871 of file commands.c.

void enable_contact_host_notifications ( contact )

Definition at line 3951 of file commands.c.

void enable_contact_service_notifications ( contact )

Definition at line 4005 of file commands.c.

void enable_flap_detection_routines ( void  )

Definition at line 492 of file flapping.c.

void enable_host_checks ( host )

Definition at line 4692 of file commands.c.

void enable_host_event_handler ( host )

Definition at line 4613 of file commands.c.

void enable_host_flap_detection ( host )

Definition at line 568 of file flapping.c.

void enable_host_freshness_checks ( void  )

Definition at line 4899 of file commands.c.

void enable_host_notifications ( host )

Definition at line 3819 of file commands.c.

void enable_passive_host_checks ( host )

Definition at line 4453 of file commands.c.

void enable_passive_service_checks ( service )

Definition at line 4290 of file commands.c.

void enable_performance_data ( void  )

Definition at line 5003 of file commands.c.

void enable_service_checks ( service )

Definition at line 3666 of file commands.c.

void enable_service_event_handler ( service )

Definition at line 4560 of file commands.c.

void enable_service_flap_detection ( service )

Definition at line 682 of file flapping.c.

void enable_service_freshness_checks ( void  )

Definition at line 4847 of file commands.c.

void enable_service_notifications ( service )

Definition at line 3767 of file commands.c.

char* escape_newlines ( char *  )

Definition at line 3341 of file utils.c.

int event_execution_loop ( void  )

Definition at line 1075 of file events.c.

int execute_sync_host_check_3x ( host )

Definition at line 2810 of file checks.c.

void file_lock_sighandler ( int  )
int file_uses_embedded_perl ( char *  )

Definition at line 3691 of file utils.c.

notification* find_notification ( contact )

Definition at line 2303 of file notifications.c.

int free_check_result ( check_result )

Definition at line 2981 of file utils.c.

int free_check_result_list ( void  )

Definition at line 2962 of file utils.c.

void free_memory ( icinga_macros mac)

Definition at line 4361 of file utils.c.

void free_notification_list ( void  )

Definition at line 4444 of file utils.c.

int generate_check_stats ( void  )

Definition at line 4172 of file utils.c.

void get_earliest_time ( time_t  ,
time_t *  ,
time_t  ,
timeperiod ,
int   
)

Definition at line 1137 of file utils.c.

void get_min_invalid_time_per_timeperiod ( time_t  ,
time_t *  ,
time_t  ,
timeperiod  
)

Definition at line 1564 of file utils.c.

time_t get_next_host_notification_time ( host ,
time_t   
)

Definition at line 2239 of file notifications.c.

time_t get_next_log_rotation_time ( void  )

Definition at line 2098 of file utils.c.

time_t get_next_service_notification_time ( service ,
time_t   
)

Definition at line 2181 of file notifications.c.

char* get_next_string_from_buf ( char *  buf,
int *  start_index,
int  bufsize 
)

Definition at line 3286 of file utils.c.

void get_next_valid_time ( time_t  ,
time_t *  ,
timeperiod  
)

Definition at line 1912 of file utils.c.

char* get_program_modification_date ( void  )

Definition at line 4323 of file utils.c.

char* get_program_version ( void  )

Definition at line 4316 of file utils.c.

int get_raw_command_line ( command ,
char *  ,
char **  ,
int   
)

Definition at line 761 of file utils.c.

int get_raw_command_line_r ( icinga_macros mac,
command ,
char *  ,
char **  ,
int   
)

Definition at line 682 of file utils.c.

int handle_async_host_check_result_3x ( host ,
check_result  
)

Definition at line 3385 of file checks.c.

int handle_async_service_check_result ( service ,
check_result  
)

Definition at line 1040 of file checks.c.

int handle_host_event ( host )

Definition at line 467 of file sehandlers.c.

void handle_host_flap_detection_disabled ( host )

Definition at line 638 of file flapping.c.

int handle_host_state ( host )

Definition at line 712 of file sehandlers.c.

int handle_service_event ( service )

Definition at line 212 of file sehandlers.c.

void handle_service_flap_detection_disabled ( service )

Definition at line 752 of file flapping.c.

int handle_timed_event ( timed_event )

Definition at line 1396 of file events.c.

int has_shell_metachars ( const char *  )

Definition at line 4328 of file utils.c.

void host_check_sighandler ( int  )

Definition at line 2264 of file utils.c.

int host_notification ( host ,
int  ,
char *  ,
char *  ,
int   
)

Definition at line 1201 of file notifications.c.

int init_check_result ( check_result )

Definition at line 2889 of file utils.c.

int init_check_result_worker_thread ( void  )
int init_check_stats ( void  )

Definition at line 4070 of file utils.c.

int init_command_file_worker_thread ( void  )

Definition at line 3770 of file utils.c.

int init_embedded_perl ( char **  )

Definition at line 3624 of file utils.c.

void init_timing_loop ( void  )

Definition at line 115 of file events.c.

int is_daterange_single_day ( daterange )

Definition at line 1926 of file utils.c.

int is_host_result_fresh ( host ,
time_t  ,
int   
)

Definition at line 2602 of file checks.c.

int is_service_result_fresh ( service ,
time_t  ,
int   
)

Definition at line 2211 of file checks.c.

int is_valid_escalation_for_host_notification ( host ,
hostescalation ,
int   
)

Definition at line 1944 of file notifications.c.

int is_valid_escalation_for_service_notification ( service ,
serviceescalation ,
int   
)

Definition at line 876 of file notifications.c.

int move_check_result_to_queue ( char *  )

Definition at line 2537 of file utils.c.

int my_fcopy ( char *  ,
char *   
)

Definition at line 3518 of file utils.c.

int my_fdcopy ( char *  ,
char *  ,
int   
)

Definition at line 3433 of file utils.c.

int my_rename ( char *  ,
char *   
)

Definition at line 3388 of file utils.c.

int my_system ( char *  ,
int  ,
int *  ,
double *  ,
char **  ,
int   
)

Definition at line 676 of file utils.c.

int my_system_r ( icinga_macros mac,
char *  ,
int  ,
int *  ,
double *  ,
char **  ,
int   
)

Definition at line 292 of file utils.c.

void my_system_sighandler ( int  )

Definition at line 2303 of file utils.c.

int notify_contact_of_host ( icinga_macros mac,
contact ,
host ,
int  ,
char *  ,
char *  ,
int  ,
int   
)

Definition at line 1789 of file notifications.c.

int notify_contact_of_service ( icinga_macros mac,
contact ,
service ,
int  ,
char *  ,
char *  ,
int  ,
int   
)

Definition at line 723 of file notifications.c.

int obsessive_compulsive_host_check_processor ( host )

Definition at line 143 of file sehandlers.c.

int obsessive_compulsive_service_check_processor ( service )

Definition at line 74 of file sehandlers.c.

int open_command_file ( void  )

Definition at line 3194 of file utils.c.

int parse_check_output ( char *  ,
char **  ,
char **  ,
char **  ,
int  ,
int   
)

Definition at line 2997 of file utils.c.

int perform_on_demand_host_check ( host ,
int *  ,
int  ,
int  ,
unsigned  long 
)

Definition at line 2280 of file checks.c.

int perform_on_demand_host_check_3x ( host ,
int *  ,
int  ,
int  ,
unsigned  long 
)

Definition at line 2666 of file checks.c.

int perform_scheduled_host_check ( host ,
int  ,
double   
)

Definition at line 2292 of file checks.c.

int pre_flight_check ( void  )

Definition at line 1621 of file config.c.

int pre_flight_circular_check ( int *  ,
int *   
)

Definition at line 2874 of file config.c.

int pre_flight_object_check ( int *  ,
int *   
)

Definition at line 1825 of file config.c.

int process_check_result_file ( char *  )

Definition at line 2682 of file utils.c.

int process_check_result_queue ( char *  )

Definition at line 2600 of file utils.c.

int process_contact_command ( int  ,
time_t  ,
char *   
)

Definition at line 1672 of file commands.c.

int process_contactgroup_command ( int  ,
time_t  ,
char *   
)

Definition at line 1711 of file commands.c.

int process_external_command1 ( char *  )

Definition at line 215 of file commands.c.

int process_external_command2 ( int  ,
time_t  ,
char *   
)

Definition at line 802 of file commands.c.

int process_external_commands_from_file ( char *  ,
int   
)

Definition at line 170 of file commands.c.

int process_host_check_result_3x ( host ,
int  ,
char *  ,
int  ,
int  ,
int  ,
unsigned  long 
)

Definition at line 3596 of file checks.c.

int process_host_command ( int  ,
time_t  ,
char *   
)

Definition at line 1211 of file commands.c.

int process_hostgroup_command ( int  ,
time_t  ,
char *   
)

Definition at line 1349 of file commands.c.

void process_passive_checks ( void  )

Definition at line 5186 of file commands.c.

int process_passive_host_check ( time_t  ,
char *  ,
int  ,
char *   
)

Definition at line 2240 of file commands.c.

int process_passive_service_check ( time_t  ,
char *  ,
char *  ,
int  ,
char *   
)

Definition at line 2098 of file commands.c.

int process_service_command ( int  ,
time_t  ,
char *   
)

Definition at line 1446 of file commands.c.

int process_servicegroup_command ( int  ,
time_t  ,
char *   
)

Definition at line 1545 of file commands.c.

int read_all_object_data ( char *  )

Definition at line 238 of file config.c.

check_result* read_check_result ( void  )

Definition at line 2874 of file utils.c.

int read_main_config_file ( char *  )

Definition at line 264 of file config.c.

int read_resource_file ( char *  )

Definition at line 1524 of file config.c.

int reap_check_results ( void  )

Definition at line 290 of file checks.c.

void remove_event ( timed_event ,
timed_event **  ,
timed_event **   
)

Definition at line 1032 of file events.c.

void remove_host_acknowledgement ( host )

Definition at line 4149 of file commands.c.

void remove_service_acknowledgement ( service )

Definition at line 4165 of file commands.c.

void reschedule_event ( timed_event ,
timed_event **  ,
timed_event **   
)

Definition at line 940 of file events.c.

void reset_sighandler ( void  )

Definition at line 2173 of file utils.c.

int reset_variables ( void  )

Definition at line 4463 of file utils.c.

void resort_event_list ( timed_event **  ,
timed_event **   
)

Definition at line 1927 of file events.c.

int run_async_host_check_3x ( host ,
int  ,
double  ,
int  ,
int  ,
int *  ,
time_t *   
)

Definition at line 3048 of file checks.c.

int run_async_service_check ( service ,
int  ,
double  ,
int  ,
int  ,
int *  ,
time_t *   
)

Definition at line 487 of file checks.c.

int run_global_host_event_handler ( icinga_macros mac,
host  
)

Definition at line 505 of file sehandlers.c.

int run_global_service_event_handler ( icinga_macros mac,
service  
)

Definition at line 258 of file sehandlers.c.

int run_host_event_handler ( icinga_macros mac,
host  
)

Definition at line 607 of file sehandlers.c.

int run_scheduled_host_check_3x ( host ,
int  ,
double   
)

Definition at line 2969 of file checks.c.

int run_scheduled_service_check ( service ,
int  ,
double   
)

Definition at line 403 of file checks.c.

int run_service_event_handler ( icinga_macros mac,
service  
)

Definition at line 362 of file sehandlers.c.

int run_sync_host_check_3x ( host ,
int *  ,
int  ,
int  ,
unsigned  long 
)

Definition at line 2687 of file checks.c.

void schedule_and_propagate_downtime ( host ,
time_t  ,
char *  ,
char *  ,
time_t  ,
time_t  ,
int  ,
unsigned  long,
unsigned  long 
)

Definition at line 4059 of file commands.c.

void schedule_host_check ( host ,
time_t  ,
int   
)

Definition at line 2304 of file checks.c.

int schedule_new_event ( int  ,
int  ,
time_t  ,
int  ,
unsigned  long,
void *  ,
int  ,
void *  ,
void *  ,
int   
)

Definition at line 901 of file events.c.

void schedule_service_check ( service ,
time_t  ,
int   
)

Definition at line 1841 of file checks.c.

void service_check_sighandler ( int  )

Definition at line 2224 of file utils.c.

int service_notification ( service ,
int  ,
char *  ,
char *  ,
int   
)

Definition at line 63 of file notifications.c.

int set_environment_var ( char *  ,
char *  ,
int   
)

Definition at line 775 of file utils.c.

void set_host_flap ( host ,
double  ,
double  ,
double  ,
int   
)

Definition at line 406 of file flapping.c.

void set_host_notification_number ( host ,
int   
)

Definition at line 5159 of file commands.c.

void set_service_flap ( service ,
double  ,
double  ,
double  ,
int   
)

Definition at line 325 of file flapping.c.

void set_service_notification_number ( service ,
int   
)

Definition at line 5172 of file commands.c.

void setup_sighandler ( void  )

Definition at line 2150 of file utils.c.

int should_host_notification_be_escalated ( host )

Definition at line 2054 of file notifications.c.

int should_service_notification_be_escalated ( service )

Definition at line 1079 of file notifications.c.

int shutdown_check_result_worker_thread ( void  )
int shutdown_command_file_worker_thread ( void  )

Definition at line 3806 of file utils.c.

void sighandler ( int  )

Definition at line 2187 of file utils.c.

void start_accepting_passive_host_checks ( void  )

Definition at line 4399 of file commands.c.

void start_accepting_passive_service_checks ( void  )

Definition at line 4236 of file commands.c.

void start_executing_host_checks ( void  )

Definition at line 4344 of file commands.c.

void start_executing_service_checks ( void  )

Definition at line 4181 of file commands.c.

void start_obsessing_over_host ( host )

Definition at line 5107 of file commands.c.

void start_obsessing_over_host_checks ( void  )

Definition at line 4793 of file commands.c.

void start_obsessing_over_service ( service )

Definition at line 5055 of file commands.c.

void start_obsessing_over_service_checks ( void  )

Definition at line 4739 of file commands.c.

void start_using_event_handlers ( void  )

Definition at line 4506 of file commands.c.

void stop_accepting_passive_host_checks ( void  )

Definition at line 4426 of file commands.c.

void stop_accepting_passive_service_checks ( void  )

Definition at line 4263 of file commands.c.

void stop_executing_host_checks ( void  )

Definition at line 4372 of file commands.c.

void stop_executing_service_checks ( void  )

Definition at line 4209 of file commands.c.

void stop_obsessing_over_host ( host )

Definition at line 5133 of file commands.c.

void stop_obsessing_over_host_checks ( void  )

Definition at line 4820 of file commands.c.

void stop_obsessing_over_service ( service )

Definition at line 5081 of file commands.c.

void stop_obsessing_over_service_checks ( void  )

Definition at line 4766 of file commands.c.

void stop_using_event_handlers ( void  )

Definition at line 4533 of file commands.c.

int submit_external_command ( char *  ,
int *   
)

Definition at line 3996 of file utils.c.

int submit_raw_external_command ( char *  ,
time_t *  ,
int *   
)

Definition at line 4037 of file utils.c.

int update_check_stats ( int  ,
time_t   
)

Definition at line 4089 of file utils.c.

 All Data Structures Files Functions Variables Typedefs Defines