#include "../include/config.h"#include "../include/common.h"#include "../include/objects.h"#include "../include/comments.h"#include "../include/downtime.h"#include "../include/statusdata.h"#include "../include/macros.h"#include "../include/icinga.h"#include "../include/sretention.h"#include "../include/perfdata.h"#include "../include/broker.h"#include "../include/nebmods.h"#include "../include/nebmodules.h"#include "tap.h"Functions | |
| void | logit (int data_type, int display, const char *fmt,...) |
| int | my_sendall (int s, char *buf, int *len, int timeout) |
| int | write_to_log (char *buffer, unsigned long data_type, time_t *timestamp) |
| int | log_debug_info (int level, int verbosity, const char *fmt,...) |
| int | neb_free_callback_list (void) |
| void | broker_program_status (int type, int flags, int attr, struct timeval *timestamp) |
| int | neb_deinit_modules (void) |
| void | broker_program_state (int type, int flags, int attr, struct timeval *timestamp) |
| void | broker_comment_data (int type, int flags, int attr, int comment_type, int entry_type, char *host_name, char *svc_description, time_t entry_time, char *author_name, char *comment_data, int persistent, int source, int expires, time_t expire_time, unsigned long comment_id, struct timeval *timestamp) |
| int | neb_unload_all_modules (int flags, int reason) |
| int | neb_add_module (char *filename, char *args, int should_be_loaded) |
| void | broker_system_command (int type, int flags, int attr, struct timeval start_time, struct timeval end_time, double exectime, int timeout, int early_timeout, int retcode, char *cmd, char *output, struct timeval *timestamp) |
| int | schedule_new_event (int event_type, int high_priority, time_t run_time, int recurring, unsigned long event_interval, void *timing_func, int compensate_for_time_change, void *event_data, void *event_args, int event_options) |
| int | my_tcp_connect (char *host_name, int port, int *sd, int timeout) |
| int | my_recvall (int s, char *buf, int *len, int timeout) |
| int | neb_free_module_list (void) |
| void | remove_event (timed_event *event, timed_event **event_list, timed_event **event_list_tail) |
| void | check_for_service_flapping (service *svc, int update, int allow_flapstart_notification) |
| int | update_host_status (host *hst, int aggregated_dump) |
| int | update_contact_status (contact *cntct, int aggregated_dump) |
| time_t | get_next_service_notification_time (service *temp_service, time_t time_t1) |
| void | broker_retention_data (int type, int flags, int attr, struct timeval *timestamp) |
| int | host_notification (host *hst, int type, char *not_author, char *not_data, int options) |
| void | broker_downtime_data (int type, int flags, int attr, int downtime_type, char *host_name, char *svc_description, time_t entry_time, char *author_name, char *comment_data, time_t start_time, time_t end_time, int fixed, unsigned long triggered_by, unsigned long duration, unsigned long downtime_id, struct timeval *timestamp) |
| int | update_service_status (service *svc, int aggregated_dump) |
| time_t | get_next_host_notification_time (host *temp_host, time_t time_t1) |
| void | check_for_host_flapping (host *hst, int update, int actual_check, int allow_flapstart_notification) |
| int | service_notification (service *svc, int type, char *not_author, char *not_data, int options) |
| int | main (int argc, char **argv) |
Variables | |
| char * | config_file = NULL |
| char * | log_file = NULL |
| char * | command_file = NULL |
| char * | temp_file = NULL |
| char * | temp_path = NULL |
| char * | check_result_path = NULL |
| char * | lock_file = NULL |
| char * | log_archive_path = NULL |
| char * | p1_file = NULL |
| char * | auth_file = NULL |
| char * | nagios_user = NULL |
| char * | nagios_group = NULL |
| char * | macro_x [MACRO_X_COUNT] |
| char * | global_host_event_handler = NULL |
| char * | global_service_event_handler = NULL |
| command * | global_host_event_handler_ptr = NULL |
| command * | global_service_event_handler_ptr = NULL |
| char * | ocsp_command = NULL |
| char * | ochp_command = NULL |
| command * | ocsp_command_ptr = NULL |
| command * | ochp_command_ptr = NULL |
| char * | illegal_object_chars = NULL |
| char * | illegal_output_chars = NULL |
| int | use_regexp_matches = FALSE |
| int | use_true_regexp_matching = FALSE |
| int | use_syslog = DEFAULT_USE_SYSLOG |
| int | log_notifications = DEFAULT_NOTIFICATION_LOGGING |
| int | log_service_retries = DEFAULT_LOG_SERVICE_RETRIES |
| int | log_host_retries = DEFAULT_LOG_HOST_RETRIES |
| int | log_event_handlers = DEFAULT_LOG_EVENT_HANDLERS |
| int | log_initial_states = DEFAULT_LOG_INITIAL_STATES |
| int | log_external_commands = DEFAULT_LOG_EXTERNAL_COMMANDS |
| int | log_passive_checks = DEFAULT_LOG_PASSIVE_CHECKS |
| unsigned long | logging_options = 0 |
| unsigned long | syslog_options = 0 |
| int | service_check_timeout = DEFAULT_SERVICE_CHECK_TIMEOUT |
| int | host_check_timeout = DEFAULT_HOST_CHECK_TIMEOUT |
| int | event_handler_timeout = DEFAULT_EVENT_HANDLER_TIMEOUT |
| int | notification_timeout = DEFAULT_NOTIFICATION_TIMEOUT |
| int | ocsp_timeout = DEFAULT_OCSP_TIMEOUT |
| int | ochp_timeout = DEFAULT_OCHP_TIMEOUT |
| double | sleep_time = DEFAULT_SLEEP_TIME |
| int | interval_length = DEFAULT_INTERVAL_LENGTH |
| int | service_inter_check_delay_method = ICD_SMART |
| int | host_inter_check_delay_method = ICD_SMART |
| int | service_interleave_factor_method = ILF_SMART |
| int | max_host_check_spread = DEFAULT_HOST_CHECK_SPREAD |
| int | max_service_check_spread = DEFAULT_SERVICE_CHECK_SPREAD |
| int | command_check_interval = DEFAULT_COMMAND_CHECK_INTERVAL |
| int | check_reaper_interval = DEFAULT_CHECK_REAPER_INTERVAL |
| int | max_check_reaper_time = DEFAULT_MAX_REAPER_TIME |
| int | service_freshness_check_interval = DEFAULT_FRESHNESS_CHECK_INTERVAL |
| int | host_freshness_check_interval = DEFAULT_FRESHNESS_CHECK_INTERVAL |
| int | auto_rescheduling_interval = DEFAULT_AUTO_RESCHEDULING_INTERVAL |
| int | check_external_commands = DEFAULT_CHECK_EXTERNAL_COMMANDS |
| int | check_orphaned_services = DEFAULT_CHECK_ORPHANED_SERVICES |
| int | check_orphaned_hosts = DEFAULT_CHECK_ORPHANED_HOSTS |
| int | check_service_freshness = DEFAULT_CHECK_SERVICE_FRESHNESS |
| int | check_host_freshness = DEFAULT_CHECK_HOST_FRESHNESS |
| int | auto_reschedule_checks = DEFAULT_AUTO_RESCHEDULE_CHECKS |
| int | auto_rescheduling_window = DEFAULT_AUTO_RESCHEDULING_WINDOW |
| int | additional_freshness_latency = DEFAULT_ADDITIONAL_FRESHNESS_LATENCY |
| time_t | last_command_check = 0L |
| time_t | last_command_status_update = 0L |
| time_t | last_log_rotation = 0L |
| int | use_aggressive_host_checking = DEFAULT_AGGRESSIVE_HOST_CHECKING |
| unsigned long | cached_host_check_horizon = DEFAULT_CACHED_HOST_CHECK_HORIZON |
| unsigned long | cached_service_check_horizon = DEFAULT_CACHED_SERVICE_CHECK_HORIZON |
| int | enable_predictive_host_dependency_checks = DEFAULT_ENABLE_PREDICTIVE_HOST_DEPENDENCY_CHECKS |
| int | enable_predictive_service_dependency_checks = DEFAULT_ENABLE_PREDICTIVE_SERVICE_DEPENDENCY_CHECKS |
| int | soft_state_dependencies = FALSE |
| int | retain_state_information = FALSE |
| int | retention_update_interval = DEFAULT_RETENTION_UPDATE_INTERVAL |
| int | use_retained_program_state = TRUE |
| int | use_retained_scheduling_info = FALSE |
| int | retention_scheduling_horizon = DEFAULT_RETENTION_SCHEDULING_HORIZON |
| unsigned long | modified_host_process_attributes = MODATTR_NONE |
| unsigned long | modified_service_process_attributes = MODATTR_NONE |
| unsigned long | retained_host_attribute_mask = 0L |
| unsigned long | retained_service_attribute_mask = 0L |
| unsigned long | retained_contact_host_attribute_mask = 0L |
| unsigned long | retained_contact_service_attribute_mask = 0L |
| unsigned long | retained_process_host_attribute_mask = 0L |
| unsigned long | retained_process_service_attribute_mask = 0L |
| unsigned long | next_comment_id = 0L |
| unsigned long | next_downtime_id = 0L |
| unsigned long | next_event_id = 0L |
| unsigned long | next_problem_id = 0L |
| unsigned long | next_notification_id = 0L |
| int | log_rotation_method = LOG_ROTATION_NONE |
| int | sigshutdown = FALSE |
| int | sigrestart = FALSE |
| char * | sigs [35] = {"EXIT","HUP","INT","QUIT","ILL","TRAP","ABRT","BUS","FPE","KILL","USR1","SEGV","USR2","PIPE","ALRM","TERM","STKFLT","CHLD","CONT","STOP","TSTP","TTIN","TTOU","URG","XCPU","XFSZ","VTALRM","PROF","WINCH","IO","PWR","UNUSED","ZERR","DEBUG",(char *)NULL} |
| int | caught_signal = FALSE |
| int | sig_id = 0 |
| int | restarting = FALSE |
| int | verify_config = FALSE |
| int | verify_object_relationships = TRUE |
| int | verify_circular_paths = TRUE |
| int | test_scheduling = FALSE |
| int | precache_objects = FALSE |
| int | use_precached_objects = FALSE |
| int | daemon_mode = FALSE |
| int | daemon_dumps_core = TRUE |
| int | max_parallel_service_checks = DEFAULT_MAX_PARALLEL_SERVICE_CHECKS |
| int | currently_running_service_checks = 0 |
| int | currently_running_host_checks = 0 |
| time_t | program_start = 0L |
| time_t | event_start = 0L |
| int | nagios_pid = 0 |
| int | enable_notifications = TRUE |
| int | execute_service_checks = TRUE |
| int | accept_passive_service_checks = TRUE |
| int | execute_host_checks = TRUE |
| int | accept_passive_host_checks = TRUE |
| int | enable_event_handlers = TRUE |
| int | obsess_over_services = FALSE |
| int | obsess_over_hosts = FALSE |
| int | enable_failure_prediction = TRUE |
| int | translate_passive_host_checks = DEFAULT_TRANSLATE_PASSIVE_HOST_CHECKS |
| int | passive_host_checks_are_soft = DEFAULT_PASSIVE_HOST_CHECKS_SOFT |
| int | aggregate_status_updates = TRUE |
| int | status_update_interval = DEFAULT_STATUS_UPDATE_INTERVAL |
| int | time_change_threshold = DEFAULT_TIME_CHANGE_THRESHOLD |
| unsigned long | event_broker_options = BROKER_NOTHING |
| int | process_performance_data = DEFAULT_PROCESS_PERFORMANCE_DATA |
| int | enable_flap_detection = DEFAULT_ENABLE_FLAP_DETECTION |
| double | low_service_flap_threshold = DEFAULT_LOW_SERVICE_FLAP_THRESHOLD |
| double | high_service_flap_threshold = DEFAULT_HIGH_SERVICE_FLAP_THRESHOLD |
| double | low_host_flap_threshold = DEFAULT_LOW_HOST_FLAP_THRESHOLD |
| double | high_host_flap_threshold = DEFAULT_HIGH_HOST_FLAP_THRESHOLD |
| int | use_large_installation_tweaks = DEFAULT_USE_LARGE_INSTALLATION_TWEAKS |
| int | enable_environment_macros = TRUE |
| int | free_child_process_memory = -1 |
| int | child_processes_fork_twice = -1 |
| int | enable_embedded_perl = DEFAULT_ENABLE_EMBEDDED_PERL |
| int | use_embedded_perl_implicitly = DEFAULT_USE_EMBEDDED_PERL_IMPLICITLY |
| int | embedded_perl_initialized = FALSE |
| int | date_format = DATE_FORMAT_US |
| char * | use_timezone = NULL |
| int | command_file_fd |
| FILE * | command_file_fp |
| int | command_file_created = FALSE |
| int | allow_empty_hostgroup_assignment = DEFAULT_ALLOW_EMPTY_HOSTGROUP_ASSIGNMENT |
| contact * | contact_list |
| contactgroup * | contactgroup_list |
| hostgroup * | hostgroup_list |
| command * | command_list |
| timeperiod * | timeperiod_list |
| serviceescalation * | serviceescalation_list |
| host * | host_list |
| notification * | notification_list |
| check_result | check_result_info |
| check_result * | check_result_list = NULL |
| unsigned long | max_check_result_file_age = DEFAULT_MAX_CHECK_RESULT_AGE |
| dbuf | check_result_dbuf |
| circular_buffer | external_command_buffer |
| circular_buffer | check_result_buffer |
| pthread_t | worker_threads [TOTAL_WORKER_THREADS] |
| int | external_command_buffer_slots = DEFAULT_EXTERNAL_COMMAND_BUFFER_SLOTS |
| check_stats | check_statistics [MAX_CHECK_STATS_TYPES] |
| char * | debug_file |
| int | debug_level = DEFAULT_DEBUG_LEVEL |
| int | debug_verbosity = DEFAULT_DEBUG_VERBOSITY |
| unsigned long | max_debug_file_size = DEFAULT_MAX_DEBUG_FILE_SIZE |
| int | use_daemon_log = DEFAULT_USE_DAEMON_LOG |
| int | use_syslog_local_facility = DEFAULT_USE_SYSLOG_LOCAL_FACILITY |
| int | syslog_local_facility = DEFAULT_SYSLOG_LOCAL_FACILITY |
| int | log_current_states = DEFAULT_LOG_CURRENT_STATES |
| int | log_external_commands_user = DEFAULT_LOG_EXTERNAL_COMMANDS_USER |
| int | log_long_plugin_output = DEFAULT_LOG_LONG_PLUGIN_OUTPUT |
| int | service_check_timeout_state = STATE_CRITICAL |
| int | stalking_event_handlers_for_hosts = DEFAULT_STALKING_EVENT_HANDLERS_FOR_HOSTS |
| int | stalking_event_handlers_for_services = DEFAULT_STALKING_EVENT_HANDLERS_FOR_SERVICES |
| sched_info | scheduling_info |
| timed_event | event_list_low |
| timed_event | event_list_high |
| timed_event * | event_list_high_tail = NULL |
| void broker_comment_data | ( | int | type, | |
| int | flags, | |||
| int | attr, | |||
| int | comment_type, | |||
| int | entry_type, | |||
| char * | host_name, | |||
| char * | svc_description, | |||
| time_t | entry_time, | |||
| char * | author_name, | |||
| char * | comment_data, | |||
| int | persistent, | |||
| int | source, | |||
| int | expires, | |||
| time_t | expire_time, | |||
| unsigned long | comment_id, | |||
| struct timeval * | timestamp | |||
| ) |
| void broker_downtime_data | ( | int | type, | |
| int | flags, | |||
| int | attr, | |||
| int | downtime_type, | |||
| char * | host_name, | |||
| char * | svc_description, | |||
| time_t | entry_time, | |||
| char * | author_name, | |||
| char * | comment_data, | |||
| time_t | start_time, | |||
| time_t | end_time, | |||
| int | fixed, | |||
| unsigned long | triggered_by, | |||
| unsigned long | duration, | |||
| unsigned long | downtime_id, | |||
| struct timeval * | timestamp | |||
| ) |
| void broker_program_state | ( | int | type, | |
| int | flags, | |||
| int | attr, | |||
| struct timeval * | timestamp | |||
| ) |
| void broker_program_status | ( | int | type, | |
| int | flags, | |||
| int | attr, | |||
| struct timeval * | timestamp | |||
| ) |
| void broker_retention_data | ( | int | type, | |
| int | flags, | |||
| int | attr, | |||
| struct timeval * | timestamp | |||
| ) |
| void broker_system_command | ( | int | type, | |
| int | flags, | |||
| int | attr, | |||
| struct timeval | start_time, | |||
| struct timeval | end_time, | |||
| double | exectime, | |||
| int | timeout, | |||
| int | early_timeout, | |||
| int | retcode, | |||
| char * | cmd, | |||
| char * | output, | |||
| struct timeval * | timestamp | |||
| ) |
| void check_for_host_flapping | ( | host * | hst, | |
| int | update, | |||
| int | actual_check, | |||
| int | allow_flapstart_notification | |||
| ) |
| void check_for_service_flapping | ( | service * | svc, | |
| int | update, | |||
| int | allow_flapstart_notification | |||
| ) |
| time_t get_next_host_notification_time | ( | host * | temp_host, | |
| time_t | time_t1 | |||
| ) |
| time_t get_next_service_notification_time | ( | service * | temp_service, | |
| time_t | time_t1 | |||
| ) |
| int host_notification | ( | host * | hst, | |
| int | type, | |||
| char * | not_author, | |||
| char * | not_data, | |||
| int | options | |||
| ) |
| int log_debug_info | ( | int | level, | |
| int | verbosity, | |||
| const char * | fmt, | |||
| ... | ||||
| ) |
| void logit | ( | int | data_type, | |
| int | display, | |||
| const char * | fmt, | |||
| ... | ||||
| ) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
| int my_recvall | ( | int | s, | |
| char * | buf, | |||
| int * | len, | |||
| int | timeout | |||
| ) |
| int my_sendall | ( | int | s, | |
| char * | buf, | |||
| int * | len, | |||
| int | timeout | |||
| ) |
| int my_tcp_connect | ( | char * | host_name, | |
| int | port, | |||
| int * | sd, | |||
| int | timeout | |||
| ) |
| int neb_add_module | ( | char * | filename, | |
| char * | args, | |||
| int | should_be_loaded | |||
| ) |
| int neb_deinit_modules | ( | void | ) |
| int neb_free_callback_list | ( | void | ) |
| int neb_free_module_list | ( | void | ) |
| int neb_unload_all_modules | ( | int | flags, | |
| int | reason | |||
| ) |
| void remove_event | ( | timed_event * | event, | |
| timed_event ** | event_list, | |||
| timed_event ** | event_list_tail | |||
| ) |
| int schedule_new_event | ( | int | event_type, | |
| int | high_priority, | |||
| time_t | run_time, | |||
| int | recurring, | |||
| unsigned long | event_interval, | |||
| void * | timing_func, | |||
| int | compensate_for_time_change, | |||
| void * | event_data, | |||
| void * | event_args, | |||
| int | event_options | |||
| ) |
| int service_notification | ( | service * | svc, | |
| int | type, | |||
| char * | not_author, | |||
| char * | not_data, | |||
| int | options | |||
| ) |
| int update_contact_status | ( | contact * | cntct, | |
| int | aggregated_dump | |||
| ) |
| int update_host_status | ( | host * | hst, | |
| int | aggregated_dump | |||
| ) |
| int update_service_status | ( | service * | svc, | |
| int | aggregated_dump | |||
| ) |
| int write_to_log | ( | char * | buffer, | |
| unsigned long | data_type, | |||
| time_t * | timestamp | |||
| ) |
| int accept_passive_host_checks = TRUE |
| int accept_passive_service_checks = TRUE |
| int additional_freshness_latency = DEFAULT_ADDITIONAL_FRESHNESS_LATENCY |
| int aggregate_status_updates = TRUE |
| int allow_empty_hostgroup_assignment = DEFAULT_ALLOW_EMPTY_HOSTGROUP_ASSIGNMENT |
| char* auth_file = NULL |
| int auto_reschedule_checks = DEFAULT_AUTO_RESCHEDULE_CHECKS |
| int auto_rescheduling_interval = DEFAULT_AUTO_RESCHEDULING_INTERVAL |
| int auto_rescheduling_window = DEFAULT_AUTO_RESCHEDULING_WINDOW |
| unsigned long cached_host_check_horizon = DEFAULT_CACHED_HOST_CHECK_HORIZON |
| unsigned long cached_service_check_horizon = DEFAULT_CACHED_SERVICE_CHECK_HORIZON |
| int caught_signal = FALSE |
| int check_external_commands = DEFAULT_CHECK_EXTERNAL_COMMANDS |
| int check_host_freshness = DEFAULT_CHECK_HOST_FRESHNESS |
| int check_orphaned_hosts = DEFAULT_CHECK_ORPHANED_HOSTS |
| int check_orphaned_services = DEFAULT_CHECK_ORPHANED_SERVICES |
| int check_reaper_interval = DEFAULT_CHECK_REAPER_INTERVAL |
| check_result* check_result_list = NULL |
| char* check_result_path = NULL |
| int check_service_freshness = DEFAULT_CHECK_SERVICE_FRESHNESS |
| check_stats check_statistics[MAX_CHECK_STATS_TYPES] |
| int child_processes_fork_twice = -1 |
| int command_check_interval = DEFAULT_COMMAND_CHECK_INTERVAL |
| char* command_file = NULL |
| int command_file_created = FALSE |
| int command_file_fd |
| FILE* command_file_fp |
| char* config_file = NULL |
| int currently_running_host_checks = 0 |
| int currently_running_service_checks = 0 |
| int daemon_dumps_core = TRUE |
| int daemon_mode = FALSE |
| int date_format = DATE_FORMAT_US |
| char* debug_file |
| int debug_level = DEFAULT_DEBUG_LEVEL |
| int debug_verbosity = DEFAULT_DEBUG_VERBOSITY |
| int embedded_perl_initialized = FALSE |
| int enable_embedded_perl = DEFAULT_ENABLE_EMBEDDED_PERL |
| int enable_environment_macros = TRUE |
| int enable_event_handlers = TRUE |
| int enable_failure_prediction = TRUE |
| int enable_flap_detection = DEFAULT_ENABLE_FLAP_DETECTION |
| int enable_notifications = TRUE |
| int enable_predictive_host_dependency_checks = DEFAULT_ENABLE_PREDICTIVE_HOST_DEPENDENCY_CHECKS |
| int enable_predictive_service_dependency_checks = DEFAULT_ENABLE_PREDICTIVE_SERVICE_DEPENDENCY_CHECKS |
| unsigned long event_broker_options = BROKER_NOTHING |
| int event_handler_timeout = DEFAULT_EVENT_HANDLER_TIMEOUT |
| timed_event* event_list_high_tail = NULL |
| time_t event_start = 0L |
| int execute_host_checks = TRUE |
| int execute_service_checks = TRUE |
| int external_command_buffer_slots = DEFAULT_EXTERNAL_COMMAND_BUFFER_SLOTS |
| int free_child_process_memory = -1 |
| char* global_host_event_handler = NULL |
| command* global_host_event_handler_ptr = NULL |
| char* global_service_event_handler = NULL |
| double high_host_flap_threshold = DEFAULT_HIGH_HOST_FLAP_THRESHOLD |
| double high_service_flap_threshold = DEFAULT_HIGH_SERVICE_FLAP_THRESHOLD |
| int host_check_timeout = DEFAULT_HOST_CHECK_TIMEOUT |
| int host_freshness_check_interval = DEFAULT_FRESHNESS_CHECK_INTERVAL |
| int host_inter_check_delay_method = ICD_SMART |
| char* illegal_object_chars = NULL |
| char* illegal_output_chars = NULL |
| int interval_length = DEFAULT_INTERVAL_LENGTH |
| time_t last_command_check = 0L |
| time_t last_command_status_update = 0L |
| time_t last_log_rotation = 0L |
| char* lock_file = NULL |
| char* log_archive_path = NULL |
| int log_current_states = DEFAULT_LOG_CURRENT_STATES |
| int log_event_handlers = DEFAULT_LOG_EVENT_HANDLERS |
| int log_external_commands = DEFAULT_LOG_EXTERNAL_COMMANDS |
| int log_external_commands_user = DEFAULT_LOG_EXTERNAL_COMMANDS_USER |
| char* log_file = NULL |
| int log_host_retries = DEFAULT_LOG_HOST_RETRIES |
| int log_initial_states = DEFAULT_LOG_INITIAL_STATES |
| int log_long_plugin_output = DEFAULT_LOG_LONG_PLUGIN_OUTPUT |
| int log_notifications = DEFAULT_NOTIFICATION_LOGGING |
| int log_passive_checks = DEFAULT_LOG_PASSIVE_CHECKS |
| int log_rotation_method = LOG_ROTATION_NONE |
| int log_service_retries = DEFAULT_LOG_SERVICE_RETRIES |
| unsigned long logging_options = 0 |
| double low_host_flap_threshold = DEFAULT_LOW_HOST_FLAP_THRESHOLD |
| double low_service_flap_threshold = DEFAULT_LOW_SERVICE_FLAP_THRESHOLD |
| char* macro_x[MACRO_X_COUNT] |
These point to their corresponding pointer arrays in global_macros AFTER macros have been initialized.
They really only exist so that eventbroker modules that reference them won't need to be re-compiled, although modules that rely on their values after having run a certain command will require an update
| int max_check_reaper_time = DEFAULT_MAX_REAPER_TIME |
| unsigned long max_check_result_file_age = DEFAULT_MAX_CHECK_RESULT_AGE |
| unsigned long max_debug_file_size = DEFAULT_MAX_DEBUG_FILE_SIZE |
| int max_host_check_spread = DEFAULT_HOST_CHECK_SPREAD |
| int max_parallel_service_checks = DEFAULT_MAX_PARALLEL_SERVICE_CHECKS |
| int max_service_check_spread = DEFAULT_SERVICE_CHECK_SPREAD |
| unsigned long modified_host_process_attributes = MODATTR_NONE |
| unsigned long modified_service_process_attributes = MODATTR_NONE |
| char* nagios_group = NULL |
| int nagios_pid = 0 |
| char* nagios_user = NULL |
| unsigned long next_comment_id = 0L |
| unsigned long next_downtime_id = 0L |
| unsigned long next_event_id = 0L |
| unsigned long next_notification_id = 0L |
| unsigned long next_problem_id = 0L |
| int notification_timeout = DEFAULT_NOTIFICATION_TIMEOUT |
| int obsess_over_hosts = FALSE |
| int obsess_over_services = FALSE |
| char* ochp_command = NULL |
| command* ochp_command_ptr = NULL |
| int ochp_timeout = DEFAULT_OCHP_TIMEOUT |
| char* ocsp_command = NULL |
| command* ocsp_command_ptr = NULL |
| int ocsp_timeout = DEFAULT_OCSP_TIMEOUT |
| char* p1_file = NULL |
| int passive_host_checks_are_soft = DEFAULT_PASSIVE_HOST_CHECKS_SOFT |
| int precache_objects = FALSE |
| int process_performance_data = DEFAULT_PROCESS_PERFORMANCE_DATA |
| time_t program_start = 0L |
| int restarting = FALSE |
| int retain_state_information = FALSE |
| unsigned long retained_contact_host_attribute_mask = 0L |
| unsigned long retained_contact_service_attribute_mask = 0L |
| unsigned long retained_host_attribute_mask = 0L |
| unsigned long retained_process_host_attribute_mask = 0L |
| unsigned long retained_process_service_attribute_mask = 0L |
| unsigned long retained_service_attribute_mask = 0L |
| int retention_scheduling_horizon = DEFAULT_RETENTION_SCHEDULING_HORIZON |
| int retention_update_interval = DEFAULT_RETENTION_UPDATE_INTERVAL |
| int service_check_timeout = DEFAULT_SERVICE_CHECK_TIMEOUT |
| int service_check_timeout_state = STATE_CRITICAL |
| int service_freshness_check_interval = DEFAULT_FRESHNESS_CHECK_INTERVAL |
| int service_inter_check_delay_method = ICD_SMART |
| int service_interleave_factor_method = ILF_SMART |
| int sig_id = 0 |
| int sigrestart = FALSE |
| char* sigs[35] = {"EXIT","HUP","INT","QUIT","ILL","TRAP","ABRT","BUS","FPE","KILL","USR1","SEGV","USR2","PIPE","ALRM","TERM","STKFLT","CHLD","CONT","STOP","TSTP","TTIN","TTOU","URG","XCPU","XFSZ","VTALRM","PROF","WINCH","IO","PWR","UNUSED","ZERR","DEBUG",(char *)NULL} |
| int sigshutdown = FALSE |
| double sleep_time = DEFAULT_SLEEP_TIME |
| int soft_state_dependencies = FALSE |
| int stalking_event_handlers_for_hosts = DEFAULT_STALKING_EVENT_HANDLERS_FOR_HOSTS |
| int stalking_event_handlers_for_services = DEFAULT_STALKING_EVENT_HANDLERS_FOR_SERVICES |
| int status_update_interval = DEFAULT_STATUS_UPDATE_INTERVAL |
| int syslog_local_facility = DEFAULT_SYSLOG_LOCAL_FACILITY |
| unsigned long syslog_options = 0 |
| char* temp_file = NULL |
| char* temp_path = NULL |
| int test_scheduling = FALSE |
| int time_change_threshold = DEFAULT_TIME_CHANGE_THRESHOLD |
| int translate_passive_host_checks = DEFAULT_TRANSLATE_PASSIVE_HOST_CHECKS |
| int use_aggressive_host_checking = DEFAULT_AGGRESSIVE_HOST_CHECKING |
| int use_daemon_log = DEFAULT_USE_DAEMON_LOG |
| int use_embedded_perl_implicitly = DEFAULT_USE_EMBEDDED_PERL_IMPLICITLY |
| int use_large_installation_tweaks = DEFAULT_USE_LARGE_INSTALLATION_TWEAKS |
| int use_precached_objects = FALSE |
| int use_regexp_matches = FALSE |
| int use_retained_program_state = TRUE |
| int use_retained_scheduling_info = FALSE |
| int use_syslog = DEFAULT_USE_SYSLOG |
| int use_syslog_local_facility = DEFAULT_USE_SYSLOG_LOCAL_FACILITY |
| char* use_timezone = NULL |
| int use_true_regexp_matching = FALSE |
| int verify_circular_paths = TRUE |
| int verify_config = FALSE |
| int verify_object_relationships = TRUE |
| pthread_t worker_threads[TOTAL_WORKER_THREADS] |
1.4.7