Icinga-core 1.4.0
next gen monitoring
xdata/xodtemplate.h File Reference

Go to the source code of this file.

Data Structures

struct  xodtemplate_customvariablesmember_struct
struct  xodtemplate_daterange_struct
struct  xodtemplate_timeperiod_struct
struct  xodtemplate_command_struct
struct  xodtemplate_contact_struct
struct  xodtemplate_contactgroup_struct
struct  xodtemplate_host_struct
struct  xodtemplate_hostgroup_struct
struct  xodtemplate_service_struct
struct  xodtemplate_servicegroup_struct
struct  xodtemplate_escalation_condition_struct
struct  xodtemplate_servicedependency_struct
struct  xodtemplate_serviceescalation_struct
struct  xodtemplate_hostdependency_struct
struct  xodtemplate_hostescalation_struct
struct  xodtemplate_hostextinfo_struct
struct  xodtemplate_serviceextinfo_struct
struct  xodtemplate_module_struct
struct  xodtemplate_contactlist_struct
struct  xodtemplate_hostlist_struct
struct  xodtemplate_servicelist_struct
struct  xodtemplate_memberlist_struct
struct  xodtemplate_service_cursor_struct

Defines

#define XODTEMPLATE_NULL   "null"
#define MAX_XODTEMPLATE_INPUT_BUFFER   1024
#define MAX_XODTEMPLATE_CONTACT_ADDRESSES   6
#define XODTEMPLATE_NONE   0
#define XODTEMPLATE_TIMEPERIOD   1
#define XODTEMPLATE_COMMAND   2
#define XODTEMPLATE_CONTACT   3
#define XODTEMPLATE_CONTACTGROUP   4
#define XODTEMPLATE_HOST   5
#define XODTEMPLATE_HOSTGROUP   6
#define XODTEMPLATE_SERVICE   7
#define XODTEMPLATE_SERVICEDEPENDENCY   8
#define XODTEMPLATE_HOSTGROUPESCALATION   9
#define XODTEMPLATE_SERVICEESCALATION   10
#define XODTEMPLATE_HOSTESCALATION   11
#define XODTEMPLATE_HOSTDEPENDENCY   12
#define XODTEMPLATE_HOSTEXTINFO   13
#define XODTEMPLATE_SERVICEEXTINFO   14
#define XODTEMPLATE_SERVICEGROUP   15
#define XODTEMPLATE_MODULE   16
#define NUM_XOBJECT_SKIPLISTS   16
#define X_HOST_SKIPLIST   1
#define X_SERVICE_SKIPLIST   2
#define X_COMMAND_SKIPLIST   3
#define X_TIMEPERIOD_SKIPLIST   4
#define X_CONTACT_SKIPLIST   5
#define X_CONTACTGROUP_SKIPLIST   6
#define X_HOSTGROUP_SKIPLIST   7
#define X_SERVICEGROUP_SKIPLIST   8
#define X_HOSTDEPENDENCY_SKIPLIST   9
#define X_SERVICEDEPENDENCY_SKIPLIST   10
#define X_HOSTESCALATION_SKIPLIST   11
#define X_SERVICEESCALATION_SKIPLIST   12
#define X_HOSTEXTINFO_SKIPLIST   13
#define X_SERVICEEXTINFO_SKIPLIST   14
#define X_MODULE_SKIPLIST   15

Typedefs

typedef struct
xodtemplate_customvariablesmember_struct 
xodtemplate_customvariablesmember
typedef struct
xodtemplate_daterange_struct 
xodtemplate_daterange
typedef struct
xodtemplate_timeperiod_struct 
xodtemplate_timeperiod
typedef struct
xodtemplate_command_struct 
xodtemplate_command
typedef struct
xodtemplate_contact_struct 
xodtemplate_contact
typedef struct
xodtemplate_contactgroup_struct 
xodtemplate_contactgroup
typedef struct
xodtemplate_host_struct 
xodtemplate_host
typedef struct
xodtemplate_hostgroup_struct 
xodtemplate_hostgroup
typedef struct
xodtemplate_service_struct 
xodtemplate_service
typedef struct
xodtemplate_servicegroup_struct 
xodtemplate_servicegroup
typedef struct
xodtemplate_escalation_condition_struct 
xodtemplate_escalation_condition
typedef struct
xodtemplate_servicedependency_struct 
xodtemplate_servicedependency
typedef struct
xodtemplate_serviceescalation_struct 
xodtemplate_serviceescalation
typedef struct
xodtemplate_hostdependency_struct 
xodtemplate_hostdependency
typedef struct
xodtemplate_hostescalation_struct 
xodtemplate_hostescalation
typedef struct
xodtemplate_hostextinfo_struct 
xodtemplate_hostextinfo
typedef struct
xodtemplate_serviceextinfo_struct 
xodtemplate_serviceextinfo
typedef struct
xodtemplate_module_struct 
xodtemplate_module
typedef struct
xodtemplate_contactlist_struct 
xodtemplate_contactlist
typedef struct
xodtemplate_hostlist_struct 
xodtemplate_hostlist
typedef struct
xodtemplate_servicelist_struct 
xodtemplate_servicelist
typedef struct
xodtemplate_memberlist_struct 
xodtemplate_memberlist
typedef struct
xodtemplate_service_cursor_struct 
xodtemplate_service_cursor

Functions

int xodtemplate_read_config_data (char *, int, int, int)
int xodtemplate_grab_config_info (char *)
int xodtemplate_process_config_file (char *, int)
int xodtemplate_process_config_dir (char *, int)
int xodtemplate_begin_object_definition (char *, int, int, int)
int xodtemplate_add_object_property (char *, int)
int xodtemplate_end_object_definition (int)
int xodtemplate_parse_timeperiod_directive (xodtemplate_timeperiod *, char *, char *)
xodtemplate_daterangexodtemplate_add_exception_to_timeperiod (xodtemplate_timeperiod *, int, int, int, int, int, int, int, int, int, int, int, int, char *)
int xodtemplate_get_month_from_string (char *, int *)
int xodtemplate_get_weekday_from_string (char *, int *)
xodtemplate_customvariablesmemberxodtemplate_add_custom_variable_to_host (xodtemplate_host *, char *, char *)
xodtemplate_customvariablesmemberxodtemplate_add_custom_variable_to_service (xodtemplate_service *, char *, char *)
xodtemplate_customvariablesmemberxodtemplate_add_custom_variable_to_contact (xodtemplate_contact *, char *, char *)
xodtemplate_customvariablesmemberxodtemplate_add_custom_variable_to_object (xodtemplate_customvariablesmember **, char *, char *)
int xodtemplate_register_objects (void)
int xodtemplate_free_memory (void)
int xodtemplate_register_timeperiod (xodtemplate_timeperiod *)
int xodtemplate_get_time_ranges (char *, unsigned long *, unsigned long *)
int xodtemplate_register_command (xodtemplate_command *)
int xodtemplate_register_contactgroup (xodtemplate_contactgroup *)
int xodtemplate_register_hostgroup (xodtemplate_hostgroup *)
int xodtemplate_register_servicegroup (xodtemplate_servicegroup *)
int xodtemplate_register_servicedependency (xodtemplate_servicedependency *)
int xodtemplate_register_serviceescalation (xodtemplate_serviceescalation *)
int xodtemplate_register_contact (xodtemplate_contact *)
int xodtemplate_register_host (xodtemplate_host *)
int xodtemplate_register_service (xodtemplate_service *)
int xodtemplate_register_hostdependency (xodtemplate_hostdependency *)
int xodtemplate_register_hostescalation (xodtemplate_hostescalation *)
int xodtemplate_register_module (xodtemplate_module *)
int xodtemplate_init_xobject_skiplists (void)
int xodtemplate_free_xobject_skiplists (void)
int xodtemplate_skiplist_compare_text (const char *val1a, const char *val1b, const char *val2a, const char *val2b)
int xodtemplate_skiplist_compare_host_template (void *a, void *b)
int xodtemplate_skiplist_compare_service_template (void *a, void *b)
int xodtemplate_skiplist_compare_command_template (void *a, void *b)
int xodtemplate_skiplist_compare_timeperiod_template (void *a, void *b)
int xodtemplate_skiplist_compare_contact_template (void *a, void *b)
int xodtemplate_skiplist_compare_contactgroup_template (void *a, void *b)
int xodtemplate_skiplist_compare_hostgroup_template (void *a, void *b)
int xodtemplate_skiplist_compare_servicegroup_template (void *a, void *b)
int xodtemplate_skiplist_compare_hostdependency_template (void *a, void *b)
int xodtemplate_skiplist_compare_servicedependency_template (void *a, void *b)
int xodtemplate_skiplist_compare_hostescalation_template (void *a, void *b)
int xodtemplate_skiplist_compare_serviceescalation_template (void *a, void *b)
int xodtemplate_skiplist_compare_hostextinfo_template (void *a, void *b)
int xodtemplate_skiplist_compare_serviceextinfo_template (void *a, void *b)
int xodtemplate_skiplist_compare_module_template (void *a, void *b)
int xodtemplate_skiplist_compare_host (void *a, void *b)
int xodtemplate_skiplist_compare_service (void *a, void *b)
int xodtemplate_skiplist_compare_contact (void *a, void *b)
int xodtemplate_skiplist_compare_contactgroup (void *a, void *b)
int xodtemplate_skiplist_compare_hostgroup (void *a, void *b)
int xodtemplate_skiplist_compare_servicegroup (void *a, void *b)
int xodtemplate_skiplist_compare_command (void *a, void *b)
int xodtemplate_skiplist_compare_timeperiod (void *a, void *b)
int xodtemplate_skiplist_compare_hostdependency (void *a, void *b)
int xodtemplate_skiplist_compare_servicedependency (void *a, void *b)
int xodtemplate_skiplist_compare_hostescalation (void *a, void *b)
int xodtemplate_skiplist_compare_serviceescalation (void *a, void *b)
int xodtemplate_skiplist_compare_module (void *a, void *b)

Define Documentation

#define MAX_XODTEMPLATE_CONTACT_ADDRESSES   6

Definition at line 38 of file xodtemplate.h.

#define MAX_XODTEMPLATE_INPUT_BUFFER   1024

Definition at line 36 of file xodtemplate.h.

#define NUM_XOBJECT_SKIPLISTS   16

Definition at line 62 of file xodtemplate.h.

#define X_COMMAND_SKIPLIST   3

Definition at line 66 of file xodtemplate.h.

#define X_CONTACT_SKIPLIST   5

Definition at line 68 of file xodtemplate.h.

#define X_CONTACTGROUP_SKIPLIST   6

Definition at line 69 of file xodtemplate.h.

#define X_HOST_SKIPLIST   1

Definition at line 64 of file xodtemplate.h.

#define X_HOSTDEPENDENCY_SKIPLIST   9

Definition at line 72 of file xodtemplate.h.

#define X_HOSTESCALATION_SKIPLIST   11

Definition at line 74 of file xodtemplate.h.

#define X_HOSTEXTINFO_SKIPLIST   13

Definition at line 76 of file xodtemplate.h.

#define X_HOSTGROUP_SKIPLIST   7

Definition at line 70 of file xodtemplate.h.

#define X_MODULE_SKIPLIST   15

Definition at line 78 of file xodtemplate.h.

#define X_SERVICE_SKIPLIST   2

Definition at line 65 of file xodtemplate.h.

#define X_SERVICEDEPENDENCY_SKIPLIST   10

Definition at line 73 of file xodtemplate.h.

#define X_SERVICEESCALATION_SKIPLIST   12

Definition at line 75 of file xodtemplate.h.

#define X_SERVICEEXTINFO_SKIPLIST   14

Definition at line 77 of file xodtemplate.h.

#define X_SERVICEGROUP_SKIPLIST   8

Definition at line 71 of file xodtemplate.h.

#define X_TIMEPERIOD_SKIPLIST   4

Definition at line 67 of file xodtemplate.h.

#define XODTEMPLATE_COMMAND   2

Definition at line 42 of file xodtemplate.h.

#define XODTEMPLATE_CONTACT   3

Definition at line 43 of file xodtemplate.h.

#define XODTEMPLATE_CONTACTGROUP   4

Definition at line 44 of file xodtemplate.h.

#define XODTEMPLATE_HOST   5

Definition at line 45 of file xodtemplate.h.

#define XODTEMPLATE_HOSTDEPENDENCY   12

Definition at line 52 of file xodtemplate.h.

#define XODTEMPLATE_HOSTESCALATION   11

Definition at line 51 of file xodtemplate.h.

#define XODTEMPLATE_HOSTEXTINFO   13

Definition at line 53 of file xodtemplate.h.

#define XODTEMPLATE_HOSTGROUP   6

Definition at line 46 of file xodtemplate.h.

#define XODTEMPLATE_HOSTGROUPESCALATION   9

Definition at line 49 of file xodtemplate.h.

#define XODTEMPLATE_MODULE   16

Definition at line 56 of file xodtemplate.h.

#define XODTEMPLATE_NONE   0

Definition at line 40 of file xodtemplate.h.

#define XODTEMPLATE_NULL   "null"

Definition at line 34 of file xodtemplate.h.

#define XODTEMPLATE_SERVICE   7

Definition at line 47 of file xodtemplate.h.

#define XODTEMPLATE_SERVICEDEPENDENCY   8

Definition at line 48 of file xodtemplate.h.

#define XODTEMPLATE_SERVICEESCALATION   10

Definition at line 50 of file xodtemplate.h.

#define XODTEMPLATE_SERVICEEXTINFO   14

Definition at line 54 of file xodtemplate.h.

#define XODTEMPLATE_SERVICEGROUP   15

Definition at line 55 of file xodtemplate.h.

#define XODTEMPLATE_TIMEPERIOD   1

Definition at line 41 of file xodtemplate.h.


Typedef Documentation


Function Documentation

xodtemplate_customvariablesmember* xodtemplate_add_custom_variable_to_contact ( xodtemplate_contact ,
char *  ,
char *   
)

Definition at line 3908 of file xodtemplate.c.

xodtemplate_customvariablesmember* xodtemplate_add_custom_variable_to_host ( xodtemplate_host ,
char *  ,
char *   
)

Definition at line 3892 of file xodtemplate.c.

xodtemplate_customvariablesmember* xodtemplate_add_custom_variable_to_object ( xodtemplate_customvariablesmember **  ,
char *  ,
char *   
)

Definition at line 3916 of file xodtemplate.c.

xodtemplate_customvariablesmember* xodtemplate_add_custom_variable_to_service ( xodtemplate_service ,
char *  ,
char *   
)

Definition at line 3900 of file xodtemplate.c.

xodtemplate_daterange* xodtemplate_add_exception_to_timeperiod ( xodtemplate_timeperiod ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *   
)

Definition at line 4223 of file xodtemplate.c.

int xodtemplate_add_object_property ( char *  ,
int   
)

Definition at line 1163 of file xodtemplate.c.

int xodtemplate_begin_object_definition ( char *  ,
int  ,
int  ,
int   
)

Definition at line 898 of file xodtemplate.c.

int xodtemplate_end_object_definition ( int  )

Definition at line 3879 of file xodtemplate.c.

int xodtemplate_free_memory ( void  )

Definition at line 12135 of file xodtemplate.c.

int xodtemplate_free_xobject_skiplists ( void  )

Definition at line 11558 of file xodtemplate.c.

int xodtemplate_get_month_from_string ( char *  ,
int *   
)

Definition at line 4259 of file xodtemplate.c.

int xodtemplate_get_time_ranges ( char *  ,
unsigned long *  ,
unsigned long *   
)

Definition at line 9166 of file xodtemplate.c.

int xodtemplate_get_weekday_from_string ( char *  ,
int *   
)

Definition at line 4279 of file xodtemplate.c.

int xodtemplate_grab_config_info ( char *  )

Definition at line 505 of file xodtemplate.c.

int xodtemplate_init_xobject_skiplists ( void  )

Definition at line 11513 of file xodtemplate.c.

int xodtemplate_parse_timeperiod_directive ( xodtemplate_timeperiod ,
char *  ,
char *   
)

Definition at line 3958 of file xodtemplate.c.

int xodtemplate_process_config_dir ( char *  ,
int   
)

Definition at line 578 of file xodtemplate.c.

int xodtemplate_process_config_file ( char *  ,
int   
)

Definition at line 657 of file xodtemplate.c.

int xodtemplate_read_config_data ( char *  ,
int  ,
int  ,
int   
)

Definition at line 160 of file xodtemplate.c.

int xodtemplate_register_command ( xodtemplate_command )

Definition at line 9220 of file xodtemplate.c.

int xodtemplate_register_contact ( xodtemplate_contact )

Definition at line 9489 of file xodtemplate.c.

int xodtemplate_register_contactgroup ( xodtemplate_contactgroup )

Definition at line 9242 of file xodtemplate.c.

int xodtemplate_register_host ( xodtemplate_host )

Definition at line 9546 of file xodtemplate.c.

int xodtemplate_register_hostdependency ( xodtemplate_hostdependency )

Definition at line 9699 of file xodtemplate.c.

int xodtemplate_register_hostescalation ( xodtemplate_hostescalation )

Definition at line 9736 of file xodtemplate.c.

int xodtemplate_register_hostgroup ( xodtemplate_hostgroup )

Definition at line 9278 of file xodtemplate.c.

int xodtemplate_register_module ( xodtemplate_module )

Definition at line 9826 of file xodtemplate.c.

int xodtemplate_register_objects ( void  )

Definition at line 8923 of file xodtemplate.c.

int xodtemplate_register_service ( xodtemplate_service )

Definition at line 9633 of file xodtemplate.c.

int xodtemplate_register_servicedependency ( xodtemplate_servicedependency )

Definition at line 9356 of file xodtemplate.c.

int xodtemplate_register_serviceescalation ( xodtemplate_serviceescalation )

Definition at line 9397 of file xodtemplate.c.

int xodtemplate_register_servicegroup ( xodtemplate_servicegroup )

Definition at line 9313 of file xodtemplate.c.

int xodtemplate_register_timeperiod ( xodtemplate_timeperiod )

Definition at line 9052 of file xodtemplate.c.

int xodtemplate_skiplist_compare_command ( void *  a,
void *  b 
)

Definition at line 11733 of file xodtemplate.c.

int xodtemplate_skiplist_compare_command_template ( void *  a,
void *  b 
)

Definition at line 11714 of file xodtemplate.c.

int xodtemplate_skiplist_compare_contact ( void *  a,
void *  b 
)

Definition at line 11771 of file xodtemplate.c.

int xodtemplate_skiplist_compare_contact_template ( void *  a,
void *  b 
)

Definition at line 11752 of file xodtemplate.c.

int xodtemplate_skiplist_compare_contactgroup ( void *  a,
void *  b 
)

Definition at line 11809 of file xodtemplate.c.

int xodtemplate_skiplist_compare_contactgroup_template ( void *  a,
void *  b 
)

Definition at line 11790 of file xodtemplate.c.

int xodtemplate_skiplist_compare_host ( void *  a,
void *  b 
)

Definition at line 11619 of file xodtemplate.c.

int xodtemplate_skiplist_compare_host_template ( void *  a,
void *  b 
)

Definition at line 11600 of file xodtemplate.c.

int xodtemplate_skiplist_compare_hostdependency ( void *  a,
void *  b 
)

Definition at line 11923 of file xodtemplate.c.

int xodtemplate_skiplist_compare_hostdependency_template ( void *  a,
void *  b 
)

Definition at line 11904 of file xodtemplate.c.

int xodtemplate_skiplist_compare_hostescalation ( void *  a,
void *  b 
)

Definition at line 11999 of file xodtemplate.c.

int xodtemplate_skiplist_compare_hostescalation_template ( void *  a,
void *  b 
)

Definition at line 11980 of file xodtemplate.c.

int xodtemplate_skiplist_compare_hostextinfo_template ( void *  a,
void *  b 
)

Definition at line 12056 of file xodtemplate.c.

int xodtemplate_skiplist_compare_hostgroup ( void *  a,
void *  b 
)

Definition at line 11847 of file xodtemplate.c.

int xodtemplate_skiplist_compare_hostgroup_template ( void *  a,
void *  b 
)

Definition at line 11828 of file xodtemplate.c.

int xodtemplate_skiplist_compare_module ( void *  a,
void *  b 
)

Definition at line 12093 of file xodtemplate.c.

int xodtemplate_skiplist_compare_module_template ( void *  a,
void *  b 
)

Definition at line 12111 of file xodtemplate.c.

int xodtemplate_skiplist_compare_service ( void *  a,
void *  b 
)

Definition at line 11657 of file xodtemplate.c.

int xodtemplate_skiplist_compare_service_template ( void *  a,
void *  b 
)

Definition at line 11638 of file xodtemplate.c.

int xodtemplate_skiplist_compare_servicedependency ( void *  a,
void *  b 
)

Definition at line 11961 of file xodtemplate.c.

int xodtemplate_skiplist_compare_servicedependency_template ( void *  a,
void *  b 
)

Definition at line 11942 of file xodtemplate.c.

int xodtemplate_skiplist_compare_serviceescalation ( void *  a,
void *  b 
)

Definition at line 12037 of file xodtemplate.c.

int xodtemplate_skiplist_compare_serviceescalation_template ( void *  a,
void *  b 
)

Definition at line 12018 of file xodtemplate.c.

int xodtemplate_skiplist_compare_serviceextinfo_template ( void *  a,
void *  b 
)

Definition at line 12075 of file xodtemplate.c.

int xodtemplate_skiplist_compare_servicegroup ( void *  a,
void *  b 
)

Definition at line 11885 of file xodtemplate.c.

int xodtemplate_skiplist_compare_servicegroup_template ( void *  a,
void *  b 
)

Definition at line 11866 of file xodtemplate.c.

int xodtemplate_skiplist_compare_text ( const char *  val1a,
const char *  val1b,
const char *  val2a,
const char *  val2b 
)

Definition at line 11570 of file xodtemplate.c.

int xodtemplate_skiplist_compare_timeperiod ( void *  a,
void *  b 
)

Definition at line 11695 of file xodtemplate.c.

int xodtemplate_skiplist_compare_timeperiod_template ( void *  a,
void *  b 
)

Definition at line 11676 of file xodtemplate.c.

 All Data Structures Files Functions Variables Typedefs Defines