nagios.h File Reference

#include "config.h"
#include "common.h"
#include "locations.h"
#include "objects.h"

Go to the source code of this file.

Data Structures

struct  timed_event_struct
struct  notify_list_struct
struct  service_message_struct
struct  sched_info_struct
struct  passive_check_result_struct
struct  circular_buffer_struct
struct  mmapfile_struct

Defines

#define MAX_COMMAND_ARGUMENTS   32
#define MAX_USER_MACROS   256
#define MAX_STATE_LENGTH   32
#define MAX_STATETYPE_LENGTH   24
#define MAX_CHECKTYPE_LENGTH   8
#define MAX_NOTIFICATIONTYPE_LENGTH   32
#define MAX_NOTIFICATIONNUMBER_LENGTH   8
#define MAX_ATTEMPT_LENGTH   8
#define MAX_TOTALS_LENGTH   8
#define MAX_EXECUTIONTIME_LENGTH   10
#define MAX_LATENCY_LENGTH   10
#define MAX_DURATION_LENGTH   17
#define MAX_DOWNTIME_LENGTH   3
#define MAX_STATEID_LENGTH   2
#define MAX_PERCENTCHANGE_LENGTH   8
#define MACRO_ENV_VAR_PREFIX   "NAGIOS_"
#define MACRO_X_COUNT   99
#define MACRO_HOSTNAME   0
#define MACRO_HOSTALIAS   1
#define MACRO_HOSTADDRESS   2
#define MACRO_SERVICEDESC   3
#define MACRO_SERVICESTATE   4
#define MACRO_SERVICESTATEID   5
#define MACRO_SERVICEATTEMPT   6
#define MACRO_LONGDATETIME   7
#define MACRO_SHORTDATETIME   8
#define MACRO_DATE   9
#define MACRO_TIME   10
#define MACRO_TIMET   11
#define MACRO_LASTHOSTCHECK   12
#define MACRO_LASTSERVICECHECK   13
#define MACRO_LASTHOSTSTATECHANGE   14
#define MACRO_LASTSERVICESTATECHANGE   15
#define MACRO_HOSTOUTPUT   16
#define MACRO_SERVICEOUTPUT   17
#define MACRO_HOSTPERFDATA   18
#define MACRO_SERVICEPERFDATA   19
#define MACRO_CONTACTNAME   20
#define MACRO_CONTACTALIAS   21
#define MACRO_CONTACTEMAIL   22
#define MACRO_CONTACTPAGER   23
#define MACRO_ADMINEMAIL   24
#define MACRO_ADMINPAGER   25
#define MACRO_HOSTSTATE   26
#define MACRO_HOSTSTATEID   27
#define MACRO_HOSTATTEMPT   28
#define MACRO_NOTIFICATIONTYPE   29
#define MACRO_NOTIFICATIONNUMBER   30
#define MACRO_HOSTEXECUTIONTIME   31
#define MACRO_SERVICEEXECUTIONTIME   32
#define MACRO_HOSTLATENCY   33
#define MACRO_SERVICELATENCY   34
#define MACRO_HOSTDURATION   35
#define MACRO_SERVICEDURATION   36
#define MACRO_HOSTDURATIONSEC   37
#define MACRO_SERVICEDURATIONSEC   38
#define MACRO_HOSTDOWNTIME   39
#define MACRO_SERVICEDOWNTIME   40
#define MACRO_HOSTSTATETYPE   41
#define MACRO_SERVICESTATETYPE   42
#define MACRO_HOSTPERCENTCHANGE   43
#define MACRO_SERVICEPERCENTCHANGE   44
#define MACRO_HOSTGROUPNAME   45
#define MACRO_HOSTGROUPALIAS   46
#define MACRO_SERVICEGROUPNAME   47
#define MACRO_SERVICEGROUPALIAS   48
#define MACRO_HOSTACKAUTHOR   49
#define MACRO_HOSTACKCOMMENT   50
#define MACRO_SERVICEACKAUTHOR   51
#define MACRO_SERVICEACKCOMMENT   52
#define MACRO_LASTSERVICEOK   53
#define MACRO_LASTSERVICEWARNING   54
#define MACRO_LASTSERVICEUNKNOWN   55
#define MACRO_LASTSERVICECRITICAL   56
#define MACRO_LASTHOSTUP   57
#define MACRO_LASTHOSTDOWN   58
#define MACRO_LASTHOSTUNREACHABLE   59
#define MACRO_SERVICECHECKCOMMAND   60
#define MACRO_HOSTCHECKCOMMAND   61
#define MACRO_MAINCONFIGFILE   62
#define MACRO_STATUSDATAFILE   63
#define MACRO_COMMENTDATAFILE   64
#define MACRO_DOWNTIMEDATAFILE   65
#define MACRO_RETENTIONDATAFILE   66
#define MACRO_OBJECTCACHEFILE   67
#define MACRO_TEMPFILE   68
#define MACRO_LOGFILE   69
#define MACRO_RESOURCEFILE   70
#define MACRO_COMMANDFILE   71
#define MACRO_HOSTPERFDATAFILE   72
#define MACRO_SERVICEPERFDATAFILE   73
#define MACRO_HOSTACTIONURL   74
#define MACRO_HOSTNOTESURL   75
#define MACRO_HOSTNOTES   76
#define MACRO_SERVICEACTIONURL   77
#define MACRO_SERVICENOTESURL   78
#define MACRO_SERVICENOTES   79
#define MACRO_TOTALHOSTSUP   80
#define MACRO_TOTALHOSTSDOWN   81
#define MACRO_TOTALHOSTSUNREACHABLE   82
#define MACRO_TOTALHOSTSDOWNUNHANDLED   83
#define MACRO_TOTALHOSTSUNREACHABLEUNHANDLED   84
#define MACRO_TOTALHOSTPROBLEMS   85
#define MACRO_TOTALHOSTPROBLEMSUNHANDLED   86
#define MACRO_TOTALSERVICESOK   87
#define MACRO_TOTALSERVICESWARNING   88
#define MACRO_TOTALSERVICESCRITICAL   89
#define MACRO_TOTALSERVICESUNKNOWN   90
#define MACRO_TOTALSERVICESWARNINGUNHANDLED   91
#define MACRO_TOTALSERVICESCRITICALUNHANDLED   92
#define MACRO_TOTALSERVICESUNKNOWNUNHANDLED   93
#define MACRO_TOTALSERVICEPROBLEMS   94
#define MACRO_TOTALSERVICEPROBLEMSUNHANDLED   95
#define MACRO_PROCESSSTARTTIME   96
#define MACRO_HOSTCHECKTYPE   97
#define MACRO_SERVICECHECKTYPE   98
#define DEFAULT_LOG_LEVEL   1
#define DEFAULT_USE_SYSLOG   1
#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_SERVICE_REAPER_INTERVAL   10
#define DEFAULT_MAX_REAPER_TIME   30
#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_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_EXTERNAL_COMMANDS   1
#define DEFAULT_LOG_PASSIVE_CHECKS   1
#define DEFAULT_AGGRESSIVE_HOST_CHECKING   0
#define DEFAULT_CHECK_EXTERNAL_COMMANDS   0
#define DEFAULT_CHECK_ORPHANED_SERVICES   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_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 NSLOG_RUNTIME_ERROR   1
#define NSLOG_RUNTIME_WARNING   2
#define NSLOG_VERIFICATION_ERROR   4
#define NSLOG_VERIFICATION_WARNING   8
#define NSLOG_CONFIG_ERROR   16
#define NSLOG_CONFIG_WARNING   32
#define NSLOG_PROCESS_INFO   64
#define NSLOG_EVENT_HANDLER   128
#define NSLOG_EXTERNAL_COMMAND   512
#define NSLOG_HOST_UP   1024
#define NSLOG_HOST_DOWN   2048
#define NSLOG_HOST_UNREACHABLE   4096
#define NSLOG_SERVICE_OK   8192
#define NSLOG_SERVICE_UNKNOWN   16384
#define NSLOG_SERVICE_WARNING   32768
#define NSLOG_SERVICE_CRITICAL   65536
#define NSLOG_PASSIVE_CHECK   131072
#define NSLOG_INFO_MESSAGE   262144
#define NSLOG_HOST_NOTIFICATION   524288
#define NSLOG_SERVICE_NOTIFICATION   1048576
#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 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 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_SERVICE_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 CHECK_OPTION_NONE   0
#define CHECK_OPTION_FORCE_EXECUTION   1
#define ACTIVE_DOWNTIME   0
#define PENDING_DOWNTIME   1
#define STRIP_ILLEGAL_MACRO_CHARS   1
#define ESCAPE_MACRO_CHARS   2
#define URL_ENCODE_MACRO_CHARS   4
#define DEFAULT_EXTERNAL_COMMAND_BUFFER_SLOTS   4096
#define DEFAULT_CHECK_RESULT_BUFFER_SLOTS   4096
#define TOTAL_WORKER_THREADS   2
#define COMMAND_WORKER_THREAD   0
#define SERVICE_WORKER_THREAD   1

Typedefs

typedef struct timed_event_struct timed_event
typedef struct notify_list_struct notification
typedef struct
service_message_struct 
service_message
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 mmapfile_struct mmapfile

Functions

int read_main_config_file (char *)
int read_resource_file (char *)
int read_all_object_data (char *)
int pre_flight_check (void)
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 read_svc_message (service_message *)
int write_svc_message (service_message *)
int open_command_file (void)
int close_command_file (void)
int schedule_new_event (int, int, time_t, int, unsigned long, void *, int, void *, void *)
void reschedule_event (timed_event *, timed_event **)
int deschedule_event (int, int, void *, void *)
void add_event (timed_event *, timed_event **)
void remove_event (timed_event *, timed_event **)
int event_execution_loop (void)
int handle_timed_event (timed_event *)
void run_service_check (service *)
void reap_service_checks (void)
int check_service_dependencies (service *, int)
int check_host_dependencies (host *, int)
void check_for_orphaned_services (void)
void check_service_result_freshness (void)
void check_host_result_freshness (void)
void adjust_check_scheduling (void)
int my_system (char *, int, int *, double *, char *, int)
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 **)
void check_for_service_flapping (service *, int)
void check_for_host_flapping (host *, int)
void set_service_flap (service *, double, double, double)
void clear_service_flap (service *, double, double, double)
void set_host_flap (host *, double, double, double)
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 *)
int verify_route_to_host (host *, int)
int run_scheduled_host_check (host *)
int check_host (host *, int, int)
int run_host_check (host *, int)
int handle_host_state (host *)
int obsessive_compulsive_service_check_processor (service *)
int obsessive_compulsive_host_check_processor (host *)
int handle_service_event (service *)
int run_service_event_handler (service *)
int run_global_service_event_handler (service *)
int handle_host_event (host *)
int run_host_event_handler (host *)
int run_global_host_event_handler (host *)
int check_service_notification_viability (service *, int)
int is_valid_escalation_for_service_notification (service *, serviceescalation *)
int should_service_notification_be_escalated (service *)
int service_notification (service *, int, char *, char *)
int check_contact_service_notification_viability (contact *, service *, int)
int notify_contact_of_service (contact *, service *, int, char *, char *, int)
int check_host_notification_viability (host *, int)
int is_valid_host_escalation_for_host_notification (host *, hostescalation *)
int should_host_notification_be_escalated (host *)
int host_notification (host *, int, char *, char *)
int check_contact_host_notification_viability (contact *, host *, int)
int notify_contact_of_host (contact *, host *, int, char *, char *, int)
int create_notification_list_from_host (host *, int *)
int create_notification_list_from_service (service *, int *)
int add_notification (contact *)
notificationfind_notification (char *)
time_t get_next_host_notification_time (host *, time_t)
time_t get_next_service_notification_time (service *, time_t)
int write_to_logs_and_console (char *, unsigned long, int)
int write_to_console (char *)
int write_to_all_logs (char *, unsigned long)
int write_to_all_logs_with_timestamp (char *, unsigned long, time_t *)
int write_to_log (char *, unsigned long, time_t *)
int write_to_syslog (char *, unsigned long)
int log_service_event (service *)
int log_host_event (host *)
int log_host_states (int, time_t *)
int log_service_states (int, time_t *)
int rotate_log_file (time_t)
int write_log_file_info (time_t *)
void cleanup (void)
void free_memory (void)
int reset_variables (void)
void free_notification_list (void)
int hashfunc1 (const char *name1, int hashslots)
int hashfunc2 (const char *name1, const char *name2, int hashslots)
int compare_hashdata1 (const char *, const char *)
int compare_hashdata2 (const char *, const char *, const char *, const char *)
void sighandler (int)
void service_check_sighandler (int)
void my_system_sighandler (int)
void file_lock_sighandler (int)
void strip (char *)
char * my_strtok (char *, char *)
char * my_strsep (char **, const char *)
char * get_url_encoded_string (char *)
int contains_illegal_object_chars (char *)
int my_rename (char *, char *)
void get_raw_command_line (char *, char *, int, int)
int check_time_against_period (time_t, char *)
void get_next_valid_time (time_t, time_t *, char *)
void get_datetime_string (time_t *, char *, int, int)
time_t get_next_log_rotation_time (void)
int init_embedded_perl (char **)
int deinit_embedded_perl (void)
int process_macros (char *, char *, int, int)
char * clean_macro_chars (char *, int)
int grab_service_macros (service *)
int grab_host_macros (host *)
int grab_contact_macros (contact *)
int grab_datetime_macros (void)
int grab_summary_macros (contact *)
int grab_on_demand_macro (char *)
int grab_on_demand_host_macro (host *, char *)
int grab_on_demand_service_macro (service *, char *)
int clear_argv_macros (void)
int clear_volatile_macros (void)
int clear_nonvolatile_macros (void)
void check_for_external_commands (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_service_command (int, time_t, char *)
int process_servicegroup_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_command (int, char *)
int cmd_change_check_interval (int, char *)
int cmd_change_max_attempts (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_service_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)
int init_service_result_worker_thread (void)
int shutdown_service_result_worker_thread (void)
void * service_result_worker_thread (void *)
void cleanup_service_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)
mmapfilemmap_fopen (char *)
int mmap_fclose (mmapfile *)
char * mmap_fgets (mmapfile *)
char * mmap_fgets_multiline (mmapfile *)
int init_macrox_names (void)
int add_macrox_name (int, char *)
int free_macrox_names (void)
int set_all_macro_environment_vars (int)
int set_macrox_environment_vars (int)
int set_argv_macro_environment_vars (int)
int set_macro_environment_var (char *, char *, int)


Define Documentation

#define ACTIVE_DOWNTIME   0

Definition at line 357 of file nagios.h.

#define CHECK_OPTION_FORCE_EXECUTION   1

Definition at line 352 of file nagios.h.

#define CHECK_OPTION_NONE   0

Definition at line 351 of file nagios.h.

#define COMMAND_WORKER_THREAD   0

Definition at line 476 of file nagios.h.

#define CURRENT_STATES   2

Definition at line 256 of file nagios.h.

#define DEFAULT_AGGRESSIVE_HOST_CHECKING   0

Definition at line 194 of file nagios.h.

#define DEFAULT_AUTO_RESCHEDULE_CHECKS   0

Definition at line 201 of file nagios.h.

#define DEFAULT_AUTO_RESCHEDULING_INTERVAL   30

Definition at line 175 of file nagios.h.

#define DEFAULT_AUTO_RESCHEDULING_WINDOW   180

Definition at line 176 of file nagios.h.

#define DEFAULT_CHECK_EXTERNAL_COMMANDS   0

Definition at line 195 of file nagios.h.

#define DEFAULT_CHECK_HOST_FRESHNESS   0

Definition at line 200 of file nagios.h.

#define DEFAULT_CHECK_ORPHANED_SERVICES   1

Definition at line 196 of file nagios.h.

#define DEFAULT_CHECK_RESULT_BUFFER_SLOTS   4096

Definition at line 471 of file nagios.h.

#define DEFAULT_CHECK_SERVICE_FRESHNESS   1

Definition at line 199 of file nagios.h.

#define DEFAULT_COMMAND_CHECK_INTERVAL   -1

Definition at line 167 of file nagios.h.

#define DEFAULT_ENABLE_FLAP_DETECTION   0

Definition at line 197 of file nagios.h.

#define DEFAULT_EVENT_HANDLER_TIMEOUT   30

Definition at line 179 of file nagios.h.

#define DEFAULT_EXTERNAL_COMMAND_BUFFER_SLOTS   4096

Definition at line 470 of file nagios.h.

#define DEFAULT_FRESHNESS_CHECK_INTERVAL   60

Definition at line 174 of file nagios.h.

#define DEFAULT_HIGH_HOST_FLAP_THRESHOLD   30.0

Definition at line 206 of file nagios.h.

#define DEFAULT_HIGH_SERVICE_FLAP_THRESHOLD   30.0

Definition at line 204 of file nagios.h.

#define DEFAULT_HOST_CHECK_SPREAD   30

Definition at line 208 of file nagios.h.

#define DEFAULT_HOST_CHECK_TIMEOUT   30

Definition at line 180 of file nagios.h.

#define DEFAULT_INTER_CHECK_DELAY   5.0

Definition at line 162 of file nagios.h.

#define DEFAULT_INTERLEAVE_FACTOR   1

Definition at line 163 of file nagios.h.

#define DEFAULT_INTERVAL_LENGTH   60

Definition at line 165 of file nagios.h.

#define DEFAULT_LOG_EVENT_HANDLERS   1

Definition at line 189 of file nagios.h.

#define DEFAULT_LOG_EXTERNAL_COMMANDS   1

Definition at line 191 of file nagios.h.

#define DEFAULT_LOG_HOST_RETRIES   0

Definition at line 187 of file nagios.h.

#define DEFAULT_LOG_INITIAL_STATES   0

Definition at line 190 of file nagios.h.

#define DEFAULT_LOG_LEVEL   1

Definition at line 156 of file nagios.h.

#define DEFAULT_LOG_PASSIVE_CHECKS   1

Definition at line 192 of file nagios.h.

#define DEFAULT_LOG_SERVICE_RETRIES   0

Definition at line 188 of file nagios.h.

#define DEFAULT_LOW_HOST_FLAP_THRESHOLD   20.0

Definition at line 205 of file nagios.h.

#define DEFAULT_LOW_SERVICE_FLAP_THRESHOLD   20.0

Definition at line 203 of file nagios.h.

#define DEFAULT_MAX_PARALLEL_SERVICE_CHECKS   0

Definition at line 170 of file nagios.h.

#define DEFAULT_MAX_REAPER_TIME   30

Definition at line 169 of file nagios.h.

#define DEFAULT_NOTIFICATION_LOGGING   1

Definition at line 160 of file nagios.h.

#define DEFAULT_NOTIFICATION_TIMEOUT   30

Definition at line 178 of file nagios.h.

#define DEFAULT_OCHP_TIMEOUT   15

Definition at line 183 of file nagios.h.

#define DEFAULT_OCSP_TIMEOUT   15

Definition at line 182 of file nagios.h.

#define DEFAULT_PERFDATA_TIMEOUT   5

Definition at line 184 of file nagios.h.

#define DEFAULT_PROCESS_PERFORMANCE_DATA   0

Definition at line 198 of file nagios.h.

#define DEFAULT_RETENTION_SCHEDULING_HORIZON   900

Definition at line 172 of file nagios.h.

#define DEFAULT_RETENTION_UPDATE_INTERVAL   60

Definition at line 171 of file nagios.h.

#define DEFAULT_RETRY_INTERVAL   30

Definition at line 166 of file nagios.h.

#define DEFAULT_SERVICE_CHECK_SPREAD   30

Definition at line 209 of file nagios.h.

#define DEFAULT_SERVICE_CHECK_TIMEOUT   60

Definition at line 181 of file nagios.h.

#define DEFAULT_SERVICE_REAPER_INTERVAL   10

Definition at line 168 of file nagios.h.

#define DEFAULT_SLEEP_TIME   0.5

Definition at line 164 of file nagios.h.

#define DEFAULT_STATUS_UPDATE_INTERVAL   60

Definition at line 173 of file nagios.h.

#define DEFAULT_SYSLOG_LEVEL   2

Definition at line 158 of file nagios.h.

#define DEFAULT_TIME_CHANGE_THRESHOLD   900

Definition at line 185 of file nagios.h.

#define DEFAULT_USE_SYSLOG   1

Definition at line 157 of file nagios.h.

#define DEPENDENCIES_FAILED   1

Definition at line 262 of file nagios.h.

#define DEPENDENCIES_OK   0

Definition at line 261 of file nagios.h.

#define ESCAPE_MACRO_CHARS   2

Definition at line 364 of file nagios.h.

#define EVENT_COMMAND_CHECK   1

Definition at line 316 of file nagios.h.

#define EVENT_EXPIRE_COMMENT   15

Definition at line 330 of file nagios.h.

#define EVENT_EXPIRE_DOWNTIME   11

Definition at line 326 of file nagios.h.

#define EVENT_HFRESHNESS_CHECK   13

Definition at line 328 of file nagios.h.

#define EVENT_HOST_CHECK   12

Definition at line 327 of file nagios.h.

#define EVENT_LOG_ROTATION   2

Definition at line 317 of file nagios.h.

#define EVENT_ORPHAN_CHECK   6

Definition at line 321 of file nagios.h.

#define EVENT_PROGRAM_RESTART   4

Definition at line 319 of file nagios.h.

#define EVENT_PROGRAM_SHUTDOWN   3

Definition at line 318 of file nagios.h.

#define EVENT_RESCHEDULE_CHECKS   14

Definition at line 329 of file nagios.h.

#define EVENT_RETENTION_SAVE   7

Definition at line 322 of file nagios.h.

#define EVENT_SCHEDULED_DOWNTIME   9

Definition at line 324 of file nagios.h.

#define EVENT_SERVICE_CHECK   0

Definition at line 315 of file nagios.h.

#define EVENT_SERVICE_REAPER   5

Definition at line 320 of file nagios.h.

#define EVENT_SFRESHNESS_CHECK   10

Definition at line 325 of file nagios.h.

#define EVENT_SLEEP   98

Definition at line 331 of file nagios.h.

#define EVENT_STATUS_SAVE   8

Definition at line 323 of file nagios.h.

#define EVENT_USER_FUNCTION   99

Definition at line 332 of file nagios.h.

#define GLOBAL_HOST_EVENTHANDLER   2

Definition at line 303 of file nagios.h.

#define GLOBAL_SERVICE_EVENTHANDLER   3

Definition at line 304 of file nagios.h.

#define HOST_DOWN   1

Definition at line 249 of file nagios.h.

#define HOST_EVENTHANDLER   0

Definition at line 301 of file nagios.h.

#define HOST_FLAPPING   0

Definition at line 281 of file nagios.h.

#define HOST_NOTIFICATION   0

Definition at line 287 of file nagios.h.

#define HOST_STATECHANGE   0

Definition at line 309 of file nagios.h.

#define HOST_UNREACHABLE   2

Definition at line 250 of file nagios.h.

#define HOST_UP   0

Definition at line 248 of file nagios.h.

#define ICD_DUMB   1

Definition at line 338 of file nagios.h.

#define ICD_NONE   0

Definition at line 337 of file nagios.h.

#define ICD_SMART   2

Definition at line 339 of file nagios.h.

#define ICD_USER   3

Definition at line 340 of file nagios.h.

#define ILF_SMART   1

Definition at line 346 of file nagios.h.

#define ILF_USER   0

Definition at line 345 of file nagios.h.

#define INITIAL_STATES   1

Definition at line 255 of file nagios.h.

#define MACRO_ADMINEMAIL   24

Definition at line 78 of file nagios.h.

#define MACRO_ADMINPAGER   25

Definition at line 79 of file nagios.h.

#define MACRO_COMMANDFILE   71

Definition at line 125 of file nagios.h.

#define MACRO_COMMENTDATAFILE   64

Definition at line 118 of file nagios.h.

#define MACRO_CONTACTALIAS   21

Definition at line 75 of file nagios.h.

#define MACRO_CONTACTEMAIL   22

Definition at line 76 of file nagios.h.

#define MACRO_CONTACTNAME   20

Definition at line 74 of file nagios.h.

#define MACRO_CONTACTPAGER   23

Definition at line 77 of file nagios.h.

#define MACRO_DATE   9

Definition at line 63 of file nagios.h.

#define MACRO_DOWNTIMEDATAFILE   65

Definition at line 119 of file nagios.h.

#define MACRO_ENV_VAR_PREFIX   "NAGIOS_"

Definition at line 50 of file nagios.h.

#define MACRO_HOSTACKAUTHOR   49

Definition at line 103 of file nagios.h.

#define MACRO_HOSTACKCOMMENT   50

Definition at line 104 of file nagios.h.

#define MACRO_HOSTACTIONURL   74

Definition at line 128 of file nagios.h.

#define MACRO_HOSTADDRESS   2

Definition at line 56 of file nagios.h.

#define MACRO_HOSTALIAS   1

Definition at line 55 of file nagios.h.

#define MACRO_HOSTATTEMPT   28

Definition at line 82 of file nagios.h.

#define MACRO_HOSTCHECKCOMMAND   61

Definition at line 115 of file nagios.h.

#define MACRO_HOSTCHECKTYPE   97

Definition at line 151 of file nagios.h.

#define MACRO_HOSTDOWNTIME   39

Definition at line 93 of file nagios.h.

#define MACRO_HOSTDURATION   35

Definition at line 89 of file nagios.h.

#define MACRO_HOSTDURATIONSEC   37

Definition at line 91 of file nagios.h.

#define MACRO_HOSTEXECUTIONTIME   31

Definition at line 85 of file nagios.h.

#define MACRO_HOSTGROUPALIAS   46

Definition at line 100 of file nagios.h.

#define MACRO_HOSTGROUPNAME   45

Definition at line 99 of file nagios.h.

#define MACRO_HOSTLATENCY   33

Definition at line 87 of file nagios.h.

#define MACRO_HOSTNAME   0

Definition at line 54 of file nagios.h.

#define MACRO_HOSTNOTES   76

Definition at line 130 of file nagios.h.

#define MACRO_HOSTNOTESURL   75

Definition at line 129 of file nagios.h.

#define MACRO_HOSTOUTPUT   16

Definition at line 70 of file nagios.h.

#define MACRO_HOSTPERCENTCHANGE   43

Definition at line 97 of file nagios.h.

#define MACRO_HOSTPERFDATA   18

Definition at line 72 of file nagios.h.

#define MACRO_HOSTPERFDATAFILE   72

Definition at line 126 of file nagios.h.

#define MACRO_HOSTSTATE   26

Definition at line 80 of file nagios.h.

#define MACRO_HOSTSTATEID   27

Definition at line 81 of file nagios.h.

#define MACRO_HOSTSTATETYPE   41

Definition at line 95 of file nagios.h.

#define MACRO_LASTHOSTCHECK   12

Definition at line 66 of file nagios.h.

#define MACRO_LASTHOSTDOWN   58

Definition at line 112 of file nagios.h.

#define MACRO_LASTHOSTSTATECHANGE   14

Definition at line 68 of file nagios.h.

#define MACRO_LASTHOSTUNREACHABLE   59

Definition at line 113 of file nagios.h.

#define MACRO_LASTHOSTUP   57

Definition at line 111 of file nagios.h.

#define MACRO_LASTSERVICECHECK   13

Definition at line 67 of file nagios.h.

#define MACRO_LASTSERVICECRITICAL   56

Definition at line 110 of file nagios.h.

#define MACRO_LASTSERVICEOK   53

Definition at line 107 of file nagios.h.

#define MACRO_LASTSERVICESTATECHANGE   15

Definition at line 69 of file nagios.h.

#define MACRO_LASTSERVICEUNKNOWN   55

Definition at line 109 of file nagios.h.

#define MACRO_LASTSERVICEWARNING   54

Definition at line 108 of file nagios.h.

#define MACRO_LOGFILE   69

Definition at line 123 of file nagios.h.

#define MACRO_LONGDATETIME   7

Definition at line 61 of file nagios.h.

#define MACRO_MAINCONFIGFILE   62

Definition at line 116 of file nagios.h.

#define MACRO_NOTIFICATIONNUMBER   30

Definition at line 84 of file nagios.h.

#define MACRO_NOTIFICATIONTYPE   29

Definition at line 83 of file nagios.h.

#define MACRO_OBJECTCACHEFILE   67

Definition at line 121 of file nagios.h.

#define MACRO_PROCESSSTARTTIME   96

Definition at line 150 of file nagios.h.

#define MACRO_RESOURCEFILE   70

Definition at line 124 of file nagios.h.

#define MACRO_RETENTIONDATAFILE   66

Definition at line 120 of file nagios.h.

#define MACRO_SERVICEACKAUTHOR   51

Definition at line 105 of file nagios.h.

#define MACRO_SERVICEACKCOMMENT   52

Definition at line 106 of file nagios.h.

#define MACRO_SERVICEACTIONURL   77

Definition at line 131 of file nagios.h.

#define MACRO_SERVICEATTEMPT   6

Definition at line 60 of file nagios.h.

#define MACRO_SERVICECHECKCOMMAND   60

Definition at line 114 of file nagios.h.

#define MACRO_SERVICECHECKTYPE   98

Definition at line 152 of file nagios.h.

#define MACRO_SERVICEDESC   3

Definition at line 57 of file nagios.h.

#define MACRO_SERVICEDOWNTIME   40

Definition at line 94 of file nagios.h.

#define MACRO_SERVICEDURATION   36

Definition at line 90 of file nagios.h.

#define MACRO_SERVICEDURATIONSEC   38

Definition at line 92 of file nagios.h.

#define MACRO_SERVICEEXECUTIONTIME   32

Definition at line 86 of file nagios.h.

#define MACRO_SERVICEGROUPALIAS   48

Definition at line 102 of file nagios.h.

#define MACRO_SERVICEGROUPNAME   47

Definition at line 101 of file nagios.h.

#define MACRO_SERVICELATENCY   34

Definition at line 88 of file nagios.h.

#define MACRO_SERVICENOTES   79

Definition at line 133 of file nagios.h.

#define MACRO_SERVICENOTESURL   78

Definition at line 132 of file nagios.h.

#define MACRO_SERVICEOUTPUT   17

Definition at line 71 of file nagios.h.

#define MACRO_SERVICEPERCENTCHANGE   44

Definition at line 98 of file nagios.h.

#define MACRO_SERVICEPERFDATA   19

Definition at line 73 of file nagios.h.

#define MACRO_SERVICEPERFDATAFILE   73

Definition at line 127 of file nagios.h.

#define MACRO_SERVICESTATE   4

Definition at line 58 of file nagios.h.

#define MACRO_SERVICESTATEID   5

Definition at line 59 of file nagios.h.

#define MACRO_SERVICESTATETYPE   42

Definition at line 96 of file nagios.h.

#define MACRO_SHORTDATETIME   8

Definition at line 62 of file nagios.h.

#define MACRO_STATUSDATAFILE   63

Definition at line 117 of file nagios.h.

#define MACRO_TEMPFILE   68

Definition at line 122 of file nagios.h.

#define MACRO_TIME   10

Definition at line 64 of file nagios.h.

#define MACRO_TIMET   11

Definition at line 65 of file nagios.h.

#define MACRO_TOTALHOSTPROBLEMS   85

Definition at line 139 of file nagios.h.

#define MACRO_TOTALHOSTPROBLEMSUNHANDLED   86

Definition at line 140 of file nagios.h.

#define MACRO_TOTALHOSTSDOWN   81

Definition at line 135 of file nagios.h.

#define MACRO_TOTALHOSTSDOWNUNHANDLED   83

Definition at line 137 of file nagios.h.

#define MACRO_TOTALHOSTSUNREACHABLE   82

Definition at line 136 of file nagios.h.

#define MACRO_TOTALHOSTSUNREACHABLEUNHANDLED   84

Definition at line 138 of file nagios.h.

#define MACRO_TOTALHOSTSUP   80

Definition at line 134 of file nagios.h.

#define MACRO_TOTALSERVICEPROBLEMS   94

Definition at line 148 of file nagios.h.

#define MACRO_TOTALSERVICEPROBLEMSUNHANDLED   95

Definition at line 149 of file nagios.h.

#define MACRO_TOTALSERVICESCRITICAL   89

Definition at line 143 of file nagios.h.

#define MACRO_TOTALSERVICESCRITICALUNHANDLED   92

Definition at line 146 of file nagios.h.

#define MACRO_TOTALSERVICESOK   87

Definition at line 141 of file nagios.h.

#define MACRO_TOTALSERVICESUNKNOWN   90

Definition at line 144 of file nagios.h.

#define MACRO_TOTALSERVICESUNKNOWNUNHANDLED   93

Definition at line 147 of file nagios.h.

#define MACRO_TOTALSERVICESWARNING   88

Definition at line 142 of file nagios.h.

#define MACRO_TOTALSERVICESWARNINGUNHANDLED   91

Definition at line 145 of file nagios.h.

#define MACRO_X_COUNT   99

Definition at line 52 of file nagios.h.

#define MAX_ATTEMPT_LENGTH   8

Definition at line 41 of file nagios.h.

#define MAX_CHECKTYPE_LENGTH   8

Definition at line 38 of file nagios.h.

#define MAX_COMMAND_ARGUMENTS   32

Definition at line 33 of file nagios.h.

#define MAX_DOWNTIME_LENGTH   3

Definition at line 46 of file nagios.h.

#define MAX_DURATION_LENGTH   17

Definition at line 45 of file nagios.h.

#define MAX_EXECUTIONTIME_LENGTH   10

Definition at line 43 of file nagios.h.

#define MAX_LATENCY_LENGTH   10

Definition at line 44 of file nagios.h.

#define MAX_NOTIFICATIONNUMBER_LENGTH   8

Definition at line 40 of file nagios.h.

#define MAX_NOTIFICATIONTYPE_LENGTH   32

Definition at line 39 of file nagios.h.

#define MAX_PERCENTCHANGE_LENGTH   8

Definition at line 48 of file nagios.h.

#define MAX_STATE_LENGTH   32

Definition at line 36 of file nagios.h.

#define MAX_STATEID_LENGTH   2

Definition at line 47 of file nagios.h.

#define MAX_STATETYPE_LENGTH   24

Definition at line 37 of file nagios.h.

#define MAX_TOTALS_LENGTH   8

Definition at line 42 of file nagios.h.

#define MAX_USER_MACROS   256

Definition at line 34 of file nagios.h.

#define NOTIFICATION_ACKNOWLEDGEMENT   1

Definition at line 294 of file nagios.h.

#define NOTIFICATION_FLAPPINGSTART   2

Definition at line 295 of file nagios.h.

#define NOTIFICATION_FLAPPINGSTOP   3

Definition at line 296 of file nagios.h.

#define NOTIFICATION_NORMAL   0

Definition at line 293 of file nagios.h.

#define NSLOG_CONFIG_ERROR   16

Definition at line 221 of file nagios.h.

#define NSLOG_CONFIG_WARNING   32

Definition at line 222 of file nagios.h.

#define NSLOG_EVENT_HANDLER   128

Definition at line 225 of file nagios.h.

#define NSLOG_EXTERNAL_COMMAND   512

Definition at line 227 of file nagios.h.

#define NSLOG_HOST_DOWN   2048

Definition at line 230 of file nagios.h.

#define NSLOG_HOST_NOTIFICATION   524288

Definition at line 242 of file nagios.h.

#define NSLOG_HOST_UNREACHABLE   4096

Definition at line 231 of file nagios.h.

#define NSLOG_HOST_UP   1024

Definition at line 229 of file nagios.h.

#define NSLOG_INFO_MESSAGE   262144

Definition at line 240 of file nagios.h.

#define NSLOG_PASSIVE_CHECK   131072

Definition at line 238 of file nagios.h.

#define NSLOG_PROCESS_INFO   64

Definition at line 224 of file nagios.h.

#define NSLOG_RUNTIME_ERROR   1

Definition at line 215 of file nagios.h.

#define NSLOG_RUNTIME_WARNING   2

Definition at line 216 of file nagios.h.

#define NSLOG_SERVICE_CRITICAL   65536

Definition at line 236 of file nagios.h.

#define NSLOG_SERVICE_NOTIFICATION   1048576

Definition at line 243 of file nagios.h.

#define NSLOG_SERVICE_OK   8192

Definition at line 233 of file nagios.h.

#define NSLOG_SERVICE_UNKNOWN   16384

Definition at line 234 of file nagios.h.

#define NSLOG_SERVICE_WARNING   32768

Definition at line 235 of file nagios.h.

#define NSLOG_VERIFICATION_ERROR   4

Definition at line 218 of file nagios.h.

#define NSLOG_VERIFICATION_WARNING   8

Definition at line 219 of file nagios.h.

#define PENDING_DOWNTIME   1

Definition at line 358 of file nagios.h.

#define PROPAGATE_TO_CHILD_HOSTS   2

Definition at line 268 of file nagios.h.

#define PROPAGATE_TO_PARENT_HOSTS   1

Definition at line 267 of file nagios.h.

#define SERVICE_EVENTHANDLER   1

Definition at line 302 of file nagios.h.

#define SERVICE_FLAPPING   1

Definition at line 282 of file nagios.h.

#define SERVICE_NOTIFICATION   1

Definition at line 288 of file nagios.h.

#define SERVICE_STATECHANGE   1

Definition at line 310 of file nagios.h.

#define SERVICE_WORKER_THREAD   1

Definition at line 477 of file nagios.h.

#define STATE_CRITICAL   2

Definition at line 275 of file nagios.h.

#define STATE_OK   0

Definition at line 273 of file nagios.h.

#define STATE_UNKNOWN   3

Definition at line 276 of file nagios.h.

Referenced by dnxPostResult().

#define STATE_WARNING   1

Definition at line 274 of file nagios.h.

#define STRIP_ILLEGAL_MACRO_CHARS   1

Definition at line 363 of file nagios.h.

#define TOTAL_WORKER_THREADS   2

Definition at line 474 of file nagios.h.

#define URL_ENCODE_MACRO_CHARS   4

Definition at line 365 of file nagios.h.


Typedef Documentation

typedef struct mmapfile_struct mmapfile

typedef struct sched_info_struct sched_info


Function Documentation

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 *   
)

int check_contact_host_notification_viability ( contact ,
host ,
int   
)

int check_contact_service_notification_viability ( contact ,
service ,
int   
)

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 notify_contact_of_host ( contact ,
host ,
int  ,
char *  ,
char *  ,
int   
)

int notify_contact_of_service ( contact ,
service ,
int  ,
char *  ,
char *  ,
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 
)


Generated on Tue Apr 13 15:15:29 2010 for DNX by  doxygen 1.5.6