Icinga-core 1.4.0
next gen monitoring
base/logging.c File Reference
#include "../include/config.h"
#include "../include/common.h"
#include "../include/statusdata.h"
#include "../include/macros.h"
#include "../include/icinga.h"
#include "../include/broker.h"

Go to the source code of this file.

Functions

void logit (int data_type, int display, const char *fmt,...)
int write_to_all_logs (char *buffer, unsigned long data_type)
int write_to_log (char *buffer, unsigned long data_type, time_t *timestamp)
int write_to_syslog (char *buffer, unsigned long data_type)
int log_service_event (service *svc)
int log_host_event (host *hst)
int log_host_states (int type, time_t *timestamp)
int log_service_states (int type, time_t *timestamp)
int rotate_log_file (time_t rotation_time)
int write_log_file_info (time_t *timestamp)
int open_debug_log (void)
int close_debug_log (void)
int log_debug_info (int level, int verbosity, const char *fmt,...)

Variables

char * log_file
char * temp_file
char * log_archive_path
hosthost_list
serviceservice_list
int use_daemon_log
int use_syslog
int use_syslog_local_facility
int syslog_local_facility
int log_service_retries
int log_initial_states
int log_current_states
int log_long_plugin_output
unsigned long logging_options
unsigned long syslog_options
int verify_config
int test_scheduling
time_t last_log_rotation
int log_rotation_method
int daemon_mode
char * debug_file
int debug_level
int debug_verbosity
unsigned long max_debug_file_size
FILE * debug_file_fp = NULL
int dummy

Function Documentation

int close_debug_log ( void  )

Definition at line 550 of file logging.c.

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

Definition at line 562 of file logging.c.

int log_host_event ( host hst)

Definition at line 337 of file logging.c.

int log_host_states ( int  type,
time_t *  timestamp 
)

Definition at line 376 of file logging.c.

int log_service_event ( service svc)

Definition at line 285 of file logging.c.

int log_service_states ( int  type,
time_t *  timestamp 
)

Definition at line 409 of file logging.c.

void logit ( int  data_type,
int  display,
const char *  fmt,
  ... 
)

Definition at line 142 of file logging.c.

int open_debug_log ( void  )

Definition at line 532 of file logging.c.

int rotate_log_file ( time_t  rotation_time)

Definition at line 450 of file logging.c.

int write_log_file_info ( time_t *  timestamp)

Definition at line 519 of file logging.c.

int write_to_all_logs ( char *  buffer,
unsigned long  data_type 
)

Definition at line 155 of file logging.c.

int write_to_log ( char *  buffer,
unsigned long  data_type,
time_t *  timestamp 
)

Definition at line 179 of file logging.c.

int write_to_syslog ( char *  buffer,
unsigned long  data_type 
)

Definition at line 229 of file logging.c.


Variable Documentation

Definition at line 192 of file icinga.c.

char* debug_file

Definition at line 280 of file icinga.c.

FILE* debug_file_fp = NULL

Definition at line 65 of file logging.c.

Definition at line 281 of file icinga.c.

Definition at line 282 of file icinga.c.

int dummy

Definition at line 67 of file logging.c.

Definition at line 52 of file objects.c.

Definition at line 144 of file icinga.c.

Definition at line 69 of file icinga.c.

Definition at line 100 of file icinga.c.

char* log_file

Definition at line 63 of file icinga.c.

Definition at line 99 of file icinga.c.

Definition at line 104 of file icinga.c.

readlogs.c

Definition at line 174 of file icinga.c.

Definition at line 96 of file icinga.c.

unsigned long logging_options

Definition at line 106 of file icinga.c.

unsigned long max_debug_file_size

Definition at line 283 of file icinga.c.

Definition at line 53 of file objects.c.

Definition at line 94 of file icinga.c.

unsigned long syslog_options

Definition at line 107 of file icinga.c.

char* temp_file

Definition at line 65 of file icinga.c.

Definition at line 187 of file icinga.c.

Definition at line 91 of file icinga.c.

Definition at line 92 of file icinga.c.

Definition at line 93 of file icinga.c.

Definition at line 184 of file icinga.c.

 All Data Structures Files Functions Variables Typedefs Defines