module/idoutils/src/idomod.c File Reference

#include "../../../include/config.h"
#include "../include/common.h"
#include "../include/io.h"
#include "../include/utils.h"
#include "../include/protoapi.h"
#include "../include/idomod.h"
#include "../../../include/nebstructs.h"
#include "../../../include/nebmodules.h"
#include "../../../include/nebcallbacks.h"
#include "../../../include/broker.h"
#include "../../../include/common.h"
#include "../../../include/icinga.h"
#include "../../../include/downtime.h"
#include "../../../include/comments.h"
#include "../../../include/macros.h"

Defines

#define DEBUG_IDO   1
#define OBJECTCONFIG_ES_ITEMS   16

Functions

int idomod_open_debug_log (void)
int idomod_close_debug_log (void)
int nebmodule_init (int flags, char *args, void *handle)
int nebmodule_deinit (int flags, int reason)
int idomod_check_icinga_object_version (void)
int idomod_init (void)
int idomod_deinit (void)
int idomod_process_module_args (char *args)
int idomod_process_config_file (char *filename)
int idomod_process_config_var (char *arg)
int idomod_write_to_logs (char *buf, int flags)
int idomod_open_sink (void)
int idomod_close_sink (void)
int idomod_hello_sink (int reconnect, int problem_disconnect)
int idomod_goodbye_sink (void)
int idomod_rotate_sink_file (void *args)
int idomod_write_to_sink (char *buf, int buffer_write, int flush_buffer)
int idomod_save_unprocessed_data (char *f)
int idomod_load_unprocessed_data (char *f)
int idomod_sink_buffer_init (idomod_sink_buffer *sbuf, unsigned long maxitems)
int idomod_sink_buffer_deinit (idomod_sink_buffer *sbuf)
int idomod_sink_buffer_push (idomod_sink_buffer *sbuf, char *buf)
char * idomod_sink_buffer_pop (idomod_sink_buffer *sbuf)
char * idomod_sink_buffer_peek (idomod_sink_buffer *sbuf)
int idomod_sink_buffer_items (idomod_sink_buffer *sbuf)
unsigned long idomod_sink_buffer_get_overflow (idomod_sink_buffer *sbuf)
int idomod_sink_buffer_set_overflow (idomod_sink_buffer *sbuf, unsigned long num)
int idomod_register_callbacks (void)
int idomod_deregister_callbacks (void)
int idomod_broker_data (int event_type, void *data)
int idomod_write_config (int config_type)
int idomod_write_object_config (int config_type)
int idomod_write_config_files (void)
int idomod_write_main_config_file (void)
int idomod_write_resource_config_files (void)
int idomod_write_resource_config_file (char *filename)
int idomod_write_runtime_variables (void)
int idomod_log_debug_info (int level, int verbosity, const char *fmt,...)

Variables

void * idomod_module_handle = NULL
char * idomod_instance_name = NULL
char * idomod_buffer_file = NULL
char * idomod_sink_name = NULL
int idomod_sink_type = IDO_SINK_UNIXSOCKET
int idomod_sink_tcp_port = IDO_DEFAULT_TCP_PORT
int idomod_sink_is_open = IDO_FALSE
int idomod_sink_previously_open = IDO_FALSE
int idomod_sink_fd = -1
time_t idomod_sink_last_reconnect_attempt = 0L
time_t idomod_sink_last_reconnect_warning = 0L
unsigned long idomod_sink_connect_attempt = 0L
unsigned long idomod_sink_reconnect_interval = 15
unsigned long idomod_sink_reconnect_warning_interval = 900
unsigned long idomod_sink_rotation_interval = 3600
char * idomod_sink_rotation_command = NULL
int idomod_sink_rotation_timeout = 60
int idomod_allow_sink_activity = IDO_TRUE
unsigned long idomod_process_options = IDOMOD_PROCESS_EVERYTHING
int idomod_config_output_options = IDOMOD_CONFIG_DUMP_ALL
unsigned long idomod_sink_buffer_slots = 5000
idomod_sink_buffer sinkbuf
char * idomod_debug_file = NULL
int idomod_debug_level = IDOMOD_DEBUGL_NONE
int idomod_debug_verbosity = IDOMOD_DEBUGV_BASIC
FILE * idomod_debug_file_fp = NULL
unsigned long idomod_max_debug_file_size = 0L
int errno
commandcommand_list
timeperiodtimeperiod_list
contactcontact_list
contactgroupcontactgroup_list
hosthost_list
hostgrouphostgroup_list
serviceservice_list
servicegroupservicegroup_list
hostescalationhostescalation_list
serviceescalationserviceescalation_list
hostdependencyhostdependency_list
servicedependencyservicedependency_list
char * config_file
sched_info scheduling_info
char * global_host_event_handler
char * global_service_event_handler
int __icinga_object_structure_version
int use_ssl

Define Documentation

#define DEBUG_IDO   1

#define OBJECTCONFIG_ES_ITEMS   16


Function Documentation

int idomod_broker_data ( int  event_type,
void *  data 
)

int idomod_check_icinga_object_version ( void   ) 

int idomod_close_debug_log ( void   ) 

int idomod_close_sink ( void   ) 

int idomod_deinit ( void   ) 

int idomod_deregister_callbacks ( void   ) 

int idomod_goodbye_sink ( void   ) 

int idomod_hello_sink ( int  reconnect,
int  problem_disconnect 
)

int idomod_init ( void   ) 

int idomod_load_unprocessed_data ( char *  f  ) 

int idomod_log_debug_info ( int  level,
int  verbosity,
const char *  fmt,
  ... 
)

int idomod_open_debug_log ( void   ) 

int idomod_open_sink ( void   ) 

int idomod_process_config_file ( char *  filename  ) 

int idomod_process_config_var ( char *  arg  ) 

int idomod_process_module_args ( char *  args  ) 

int idomod_register_callbacks ( void   ) 

int idomod_rotate_sink_file ( void *  args  ) 

int idomod_save_unprocessed_data ( char *  f  ) 

int idomod_sink_buffer_deinit ( idomod_sink_buffer sbuf  ) 

unsigned long idomod_sink_buffer_get_overflow ( idomod_sink_buffer sbuf  ) 

int idomod_sink_buffer_init ( idomod_sink_buffer sbuf,
unsigned long  maxitems 
)

int idomod_sink_buffer_items ( idomod_sink_buffer sbuf  ) 

char* idomod_sink_buffer_peek ( idomod_sink_buffer sbuf  ) 

char* idomod_sink_buffer_pop ( idomod_sink_buffer sbuf  ) 

int idomod_sink_buffer_push ( idomod_sink_buffer sbuf,
char *  buf 
)

int idomod_sink_buffer_set_overflow ( idomod_sink_buffer sbuf,
unsigned long  num 
)

int idomod_write_config ( int  config_type  ) 

int idomod_write_config_files ( void   ) 

int idomod_write_main_config_file ( void   ) 

int idomod_write_object_config ( int  config_type  ) 

int idomod_write_resource_config_file ( char *  filename  ) 

int idomod_write_resource_config_files ( void   ) 

int idomod_write_runtime_variables ( void   ) 

int idomod_write_to_logs ( char *  buf,
int  flags 
)

int idomod_write_to_sink ( char *  buf,
int  buffer_write,
int  flush_buffer 
)

int nebmodule_deinit ( int  flags,
int  reason 
)

int nebmodule_init ( int  flags,
char *  args,
void *  handle 
)


Variable Documentation

int __icinga_object_structure_version

command* command_list

char* config_file

contact* contact_list

contactgroup* contactgroup_list

int errno

char* global_host_event_handler

char* global_service_event_handler

host* host_list

hostdependency* hostdependency_list

hostescalation* hostescalation_list

hostgroup* hostgroup_list

int idomod_allow_sink_activity = IDO_TRUE

char* idomod_buffer_file = NULL

int idomod_config_output_options = IDOMOD_CONFIG_DUMP_ALL

char* idomod_debug_file = NULL

FILE* idomod_debug_file_fp = NULL

int idomod_debug_level = IDOMOD_DEBUGL_NONE

int idomod_debug_verbosity = IDOMOD_DEBUGV_BASIC

char* idomod_instance_name = NULL

unsigned long idomod_max_debug_file_size = 0L

void* idomod_module_handle = NULL

unsigned long idomod_process_options = IDOMOD_PROCESS_EVERYTHING

unsigned long idomod_sink_buffer_slots = 5000

unsigned long idomod_sink_connect_attempt = 0L

int idomod_sink_fd = -1

int idomod_sink_is_open = IDO_FALSE

time_t idomod_sink_last_reconnect_attempt = 0L

time_t idomod_sink_last_reconnect_warning = 0L

char* idomod_sink_name = NULL

int idomod_sink_previously_open = IDO_FALSE

unsigned long idomod_sink_reconnect_interval = 15

unsigned long idomod_sink_reconnect_warning_interval = 900

char* idomod_sink_rotation_command = NULL

unsigned long idomod_sink_rotation_interval = 3600

int idomod_sink_rotation_timeout = 60

int idomod_sink_tcp_port = IDO_DEFAULT_TCP_PORT

int idomod_sink_type = IDO_SINK_UNIXSOCKET

sched_info scheduling_info

service* service_list

servicedependency* servicedependency_list

serviceescalation* serviceescalation_list

servicegroup* servicegroup_list

idomod_sink_buffer sinkbuf

timeperiod* timeperiod_list

int use_ssl


Generated on Wed Mar 30 17:22:23 2011 for icinga-core by  doxygen 1.4.7