Icinga-core 1.4.0
next gen monitoring
include/logging.h File Reference
#include "objects.h"

Go to the source code of this file.

Defines

#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 DEBUGL_ALL   -1
#define DEBUGL_NONE   0
#define DEBUGL_FUNCTIONS   1
#define DEBUGL_CONFIG   2
#define DEBUGL_PROCESS   4
#define DEBUGL_STATUSDATA   4
#define DEBUGL_RETENTIONDATA   4
#define DEBUGL_EVENTS   8
#define DEBUGL_CHECKS   16
#define DEBUGL_IPC   16
#define DEBUGL_FLAPPING   16
#define DEBUGL_EVENTHANDLERS   16
#define DEBUGL_PERFDATA   16
#define DEBUGL_NOTIFICATIONS   32
#define DEBUGL_EVENTBROKER   64
#define DEBUGL_EXTERNALCOMMANDS   128
#define DEBUGL_COMMANDS   256
#define DEBUGL_DOWNTIME   512
#define DEBUGL_COMMENTS   1024
#define DEBUGL_MACROS   2048
#define DEBUGV_BASIC   0
#define DEBUGV_MORE   1
#define DEBUGV_MOST   2

Functions

void logit (int, int, const char *,...) __attribute__((__format__(__printf__
void int log_debug_info (int, int, const char *,...) __attribute__((__format__(__printf__
void int int write_to_all_logs (char *, unsigned long)
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 *)
int open_debug_log (void)
int close_debug_log (void)

Define Documentation

#define DEBUGL_ALL   -1

Definition at line 65 of file logging.h.

#define DEBUGL_CHECKS   16

Definition at line 73 of file logging.h.

#define DEBUGL_COMMANDS   256

Definition at line 81 of file logging.h.

#define DEBUGL_COMMENTS   1024

Definition at line 83 of file logging.h.

#define DEBUGL_CONFIG   2

Definition at line 68 of file logging.h.

#define DEBUGL_DOWNTIME   512

Definition at line 82 of file logging.h.

#define DEBUGL_EVENTBROKER   64

Definition at line 79 of file logging.h.

#define DEBUGL_EVENTHANDLERS   16

Definition at line 76 of file logging.h.

#define DEBUGL_EVENTS   8

Definition at line 72 of file logging.h.

#define DEBUGL_EXTERNALCOMMANDS   128

Definition at line 80 of file logging.h.

#define DEBUGL_FLAPPING   16

Definition at line 75 of file logging.h.

#define DEBUGL_FUNCTIONS   1

Definition at line 67 of file logging.h.

#define DEBUGL_IPC   16

Definition at line 74 of file logging.h.

#define DEBUGL_MACROS   2048

Definition at line 84 of file logging.h.

#define DEBUGL_NONE   0

Definition at line 66 of file logging.h.

#define DEBUGL_NOTIFICATIONS   32

Definition at line 78 of file logging.h.

#define DEBUGL_PERFDATA   16

Definition at line 77 of file logging.h.

#define DEBUGL_PROCESS   4

Definition at line 69 of file logging.h.

#define DEBUGL_RETENTIONDATA   4

Definition at line 71 of file logging.h.

#define DEBUGL_STATUSDATA   4

Definition at line 70 of file logging.h.

#define DEBUGV_BASIC   0

Definition at line 86 of file logging.h.

#define DEBUGV_MORE   1

Definition at line 87 of file logging.h.

#define DEBUGV_MOST   2

Definition at line 88 of file logging.h.

#define NSLOG_CONFIG_ERROR   16

Definition at line 39 of file logging.h.

#define NSLOG_CONFIG_WARNING   32

Definition at line 40 of file logging.h.

#define NSLOG_EVENT_HANDLER   128

Definition at line 43 of file logging.h.

#define NSLOG_EXTERNAL_COMMAND   512

Definition at line 45 of file logging.h.

#define NSLOG_HOST_DOWN   2048

Definition at line 48 of file logging.h.

#define NSLOG_HOST_NOTIFICATION   524288

Definition at line 60 of file logging.h.

#define NSLOG_HOST_UNREACHABLE   4096

Definition at line 49 of file logging.h.

#define NSLOG_HOST_UP   1024

Definition at line 47 of file logging.h.

#define NSLOG_INFO_MESSAGE   262144

Definition at line 58 of file logging.h.

#define NSLOG_PASSIVE_CHECK   131072

Definition at line 56 of file logging.h.

#define NSLOG_PROCESS_INFO   64

Definition at line 42 of file logging.h.

#define NSLOG_RUNTIME_ERROR   1

Definition at line 33 of file logging.h.

#define NSLOG_RUNTIME_WARNING   2

Definition at line 34 of file logging.h.

#define NSLOG_SERVICE_CRITICAL   65536

Definition at line 54 of file logging.h.

#define NSLOG_SERVICE_NOTIFICATION   1048576

Definition at line 61 of file logging.h.

#define NSLOG_SERVICE_OK   8192

Definition at line 51 of file logging.h.

#define NSLOG_SERVICE_UNKNOWN   16384

Definition at line 52 of file logging.h.

#define NSLOG_SERVICE_WARNING   32768

Definition at line 53 of file logging.h.

#define NSLOG_VERIFICATION_ERROR   4

Definition at line 36 of file logging.h.

#define NSLOG_VERIFICATION_WARNING   8

Definition at line 37 of file logging.h.


Function Documentation

int close_debug_log ( void  )

Definition at line 550 of file logging.c.

void int log_debug_info ( int  ,
int  ,
const char *  ,
  ... 
)
int log_host_event ( host )

Definition at line 337 of file logging.c.

int log_host_states ( int  ,
time_t *   
)

Definition at line 376 of file logging.c.

int log_service_event ( service )

Definition at line 285 of file logging.c.

int log_service_states ( int  ,
time_t *   
)

Definition at line 409 of file logging.c.

void logit ( int  ,
int  ,
const char *  ,
  ... 
)
int open_debug_log ( void  )

Definition at line 532 of file logging.c.

int rotate_log_file ( time_t  )

Definition at line 450 of file logging.c.

int write_log_file_info ( time_t *  )

Definition at line 519 of file logging.c.

void int int write_to_all_logs ( char *  ,
unsigned  long 
)

Definition at line 155 of file logging.c.

int write_to_log ( char *  ,
unsigned  long,
time_t *   
)

Definition at line 179 of file logging.c.

int write_to_syslog ( char *  ,
unsigned  long 
)

Definition at line 229 of file logging.c.

 All Data Structures Files Functions Variables Typedefs Defines