objects.h File Reference

#include "config.h"
#include "common.h"

Go to the source code of this file.

Data Structures

struct  timerange_struct
struct  timeperiod_struct
struct  contactgroupmember_struct
struct  contactgroup_struct
struct  contactgroupsmember_struct
struct  hostsmember_struct
struct  host_struct
struct  hostgroupmember_struct
struct  hostgroup_struct
struct  servicegroupmember_struct
struct  servicegroup_struct
struct  commandsmember_struct
struct  contact_struct
struct  service_struct
struct  command_struct
struct  serviceescalation_struct
struct  servicedependency_struct
struct  hostescalation_struct
struct  hostdependency_struct
struct  hostextinfo_struct
struct  serviceextinfo_struct
struct  host_cursor_struct

Defines

#define CURRENT_OBJECT_STRUCTURE_VERSION   2
#define MAX_HOSTNAME_LENGTH   64
#define MAX_SERVICEDESC_LENGTH   64
#define MAX_PLUGINOUTPUT_LENGTH   332
#define MAX_STATE_HISTORY_ENTRIES   21
#define MAX_CONTACT_ADDRESSES   6
#define SERVICE_HASHSLOTS   1024
#define HOST_HASHSLOTS   1024
#define COMMAND_HASHSLOTS   256
#define TIMEPERIOD_HASHSLOTS   64
#define CONTACT_HASHSLOTS   128
#define CONTACTGROUP_HASHSLOTS   64
#define HOSTGROUP_HASHSLOTS   128
#define SERVICEGROUP_HASHSLOTS   128
#define HOSTEXTINFO_HASHSLOTS   1024
#define SERVICEEXTINFO_HASHSLOTS   1024
#define HOSTDEPENDENCY_HASHSLOTS   1024
#define SERVICEDEPENDENCY_HASHSLOTS   1024
#define HOSTESCALATION_HASHSLOTS   1024
#define SERVICEESCALATION_HASHSLOTS   1024
#define dbg_print(args)

Typedefs

typedef struct timerange_struct timerange
typedef struct timeperiod_struct timeperiod
typedef struct
contactgroupmember_struct 
contactgroupmember
typedef struct contactgroup_struct contactgroup
typedef struct
contactgroupsmember_struct 
contactgroupsmember
typedef struct hostsmember_struct hostsmember
typedef struct host_struct host
typedef struct
hostgroupmember_struct 
hostgroupmember
typedef struct hostgroup_struct hostgroup
typedef struct
servicegroupmember_struct 
servicegroupmember
typedef struct servicegroup_struct servicegroup
typedef struct
commandsmember_struct 
commandsmember
typedef struct contact_struct contact
typedef struct service_struct service
typedef struct command_struct command
typedef struct
serviceescalation_struct 
serviceescalation
typedef struct
servicedependency_struct 
servicedependency
typedef struct
hostescalation_struct 
hostescalation
typedef struct
hostdependency_struct 
hostdependency
typedef struct hostextinfo_struct hostextinfo
typedef struct
serviceextinfo_struct 
serviceextinfo
typedef struct host_cursor_struct host_cursor

Functions

int read_object_config_data (char *, int, int)
contactadd_contact (char *, char *, char *, char *, char **, char *, char *, int, int, int, int, int, int, int, int, int)
commandsmemberadd_service_notification_command_to_contact (contact *, char *)
commandsmemberadd_host_notification_command_to_contact (contact *, char *)
hostadd_host (char *, char *, char *, char *, int, int, int, int, int, int, int, char *, int, char *, int, int, char *, int, int, double, double, int, int, int, int, int, char *, int, int, int, int, int)
hostsmemberadd_parent_host_to_host (host *, char *)
contactgroupsmemberadd_contactgroup_to_host (host *, char *)
timeperiodadd_timeperiod (char *, char *)
timerangeadd_timerange_to_timeperiod (timeperiod *, int, unsigned long, unsigned long)
hostgroupadd_hostgroup (char *, char *)
hostgroupmemberadd_host_to_hostgroup (hostgroup *, char *)
servicegroupadd_servicegroup (char *, char *, double)
servicegroupmemberadd_service_to_servicegroup (servicegroup *, char *, char *)
contactgroupadd_contactgroup (char *, char *)
contactgroupmemberadd_contact_to_contactgroup (contactgroup *, char *)
commandadd_command (char *, char *)
serviceadd_service (char *, char *, char *, int, int, int, int, int, int, char *, int, int, int, int, int, int, int, char *, int, char *, int, int, double, double, int, int, int, int, int, int, char *, int, int, int, int, int)
contactgroupsmemberadd_contactgroup_to_service (service *, char *)
serviceescalationadd_serviceescalation (char *, char *, int, int, int, char *, int, int, int, int)
contactgroupsmemberadd_contactgroup_to_serviceescalation (serviceescalation *, char *)
servicedependencyadd_service_dependency (char *, char *, char *, char *, int, int, int, int, int, int, int)
hostdependencyadd_host_dependency (char *, char *, int, int, int, int, int, int)
hostescalationadd_hostescalation (char *, int, int, int, char *, int, int, int)
contactgroupsmemberadd_contactgroup_to_hostescalation (hostescalation *, char *)
hostextinfoadd_hostextinfo (char *, char *, char *, char *, char *, char *, char *, char *, int, int, double, double, double, int, int)
serviceextinfoadd_serviceextinfo (char *, char *, char *, char *, char *, char *, char *)
int add_host_to_hashlist (host *)
int add_service_to_hashlist (service *)
int add_command_to_hashlist (command *)
int add_timeperiod_to_hashlist (timeperiod *)
int add_contact_to_hashlist (contact *)
int add_contactgroup_to_hashlist (contactgroup *)
int add_hostgroup_to_hashlist (hostgroup *)
int add_servicegroup_to_hashlist (servicegroup *)
int add_hostdependency_to_hashlist (hostdependency *)
int add_servicedependency_to_hashlist (servicedependency *)
int add_hostescalation_to_hashlist (hostescalation *)
int add_serviceescalation_to_hashlist (serviceescalation *)
int add_hostextinfo_to_hashlist (hostextinfo *)
int add_serviceextinfo_to_hashlist (serviceextinfo *)
timeperiodfind_timeperiod (char *)
hostfind_host (char *)
hostgroupfind_hostgroup (char *)
servicegroupfind_servicegroup (char *)
contactfind_contact (char *)
contactgroupfind_contactgroup (char *)
contactgroupmemberfind_contactgroupmember (char *, contactgroup *)
commandfind_command (char *)
servicefind_service (char *, char *)
serviceenum_services (char *, service *)
hostextinfofind_hostextinfo (char *)
serviceextinfofind_serviceextinfo (char *, char *)
void move_first_service (void)
serviceget_next_service (void)
int find_all_services_by_host (char *)
serviceget_next_service_by_host (void)
void move_first_host (void)
hostget_next_host (void)
void * get_host_cursor (void)
hostget_next_host_cursor (void *v_cursor)
void free_host_cursor (void *cursor)
void * get_next_N (void **hashchain, int hashslots, int *iterator, void *current, void *next)
hostescalationget_first_hostescalation_by_host (char *)
hostescalationget_next_hostescalation_by_host (char *, hostescalation *)
serviceescalationget_first_serviceescalation_by_service (char *, char *)
serviceescalationget_next_serviceescalation_by_service (char *, char *, serviceescalation *)
hostdependencyget_first_hostdependency_by_dependent_host (char *)
hostdependencyget_next_hostdependency_by_dependent_host (char *, hostdependency *)
servicedependencyget_first_servicedependency_by_dependent_service (char *, char *)
servicedependencyget_next_servicedependency_by_dependent_service (char *, char *, servicedependency *)
int is_host_immediate_child_of_host (host *, host *)
int is_host_primary_immediate_child_of_host (host *, host *)
int is_host_immediate_parent_of_host (host *, host *)
int is_host_member_of_hostgroup (hostgroup *, host *)
int is_host_member_of_servicegroup (servicegroup *, host *)
int is_service_member_of_servicegroup (servicegroup *, service *)
int is_contact_member_of_contactgroup (contactgroup *, contact *)
int is_contact_for_hostgroup (hostgroup *, contact *)
int is_contact_for_servicegroup (servicegroup *, contact *)
int is_contact_for_host (host *, contact *)
int is_escalated_contact_for_host (host *, contact *)
int is_contact_for_service (service *, contact *)
int is_escalated_contact_for_service (service *, contact *)
int number_of_immediate_child_hosts (host *)
int number_of_total_child_hosts (host *)
int number_of_immediate_parent_hosts (host *)
int number_of_total_parent_hosts (host *)
int free_object_data (void)
int free_extended_data (void)


Define Documentation

#define COMMAND_HASHSLOTS   256

Definition at line 60 of file objects.h.

#define CONTACT_HASHSLOTS   128

Definition at line 62 of file objects.h.

#define CONTACTGROUP_HASHSLOTS   64

Definition at line 63 of file objects.h.

#define CURRENT_OBJECT_STRUCTURE_VERSION   2

Definition at line 40 of file objects.h.

#define dbg_print ( args   ) 

Definition at line 525 of file objects.h.

#define HOST_HASHSLOTS   1024

Definition at line 59 of file objects.h.

#define HOSTDEPENDENCY_HASHSLOTS   1024

Definition at line 69 of file objects.h.

#define HOSTESCALATION_HASHSLOTS   1024

Definition at line 71 of file objects.h.

#define HOSTEXTINFO_HASHSLOTS   1024

Definition at line 66 of file objects.h.

#define HOSTGROUP_HASHSLOTS   128

Definition at line 64 of file objects.h.

#define MAX_CONTACT_ADDRESSES   6

Definition at line 52 of file objects.h.

#define MAX_HOSTNAME_LENGTH   64

Definition at line 46 of file objects.h.

#define MAX_PLUGINOUTPUT_LENGTH   332

Definition at line 48 of file objects.h.

#define MAX_SERVICEDESC_LENGTH   64

Definition at line 47 of file objects.h.

#define MAX_STATE_HISTORY_ENTRIES   21

Definition at line 50 of file objects.h.

#define SERVICE_HASHSLOTS   1024

Definition at line 58 of file objects.h.

#define SERVICEDEPENDENCY_HASHSLOTS   1024

Definition at line 70 of file objects.h.

#define SERVICEESCALATION_HASHSLOTS   1024

Definition at line 72 of file objects.h.

#define SERVICEEXTINFO_HASHSLOTS   1024

Definition at line 67 of file objects.h.

#define SERVICEGROUP_HASHSLOTS   128

Definition at line 65 of file objects.h.

#define TIMEPERIOD_HASHSLOTS   64

Definition at line 61 of file objects.h.


Typedef Documentation

typedef struct command_struct command

typedef struct contact_struct contact

typedef struct host_struct host

typedef struct hostgroup_struct hostgroup

typedef struct service_struct service

typedef struct timeperiod_struct timeperiod

typedef struct timerange_struct timerange


Function Documentation

command* add_command ( char *  ,
char *   
)

int add_command_to_hashlist ( command  ) 

contact* add_contact ( char *  ,
char *  ,
char *  ,
char *  ,
char **  ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
)

contactgroupmember* add_contact_to_contactgroup ( contactgroup ,
char *   
)

int add_contact_to_hashlist ( contact  ) 

contactgroup* add_contactgroup ( char *  ,
char *   
)

int add_contactgroup_to_hashlist ( contactgroup  ) 

contactgroupsmember* add_contactgroup_to_host ( host ,
char *   
)

contactgroupsmember* add_contactgroup_to_hostescalation ( hostescalation ,
char *   
)

contactgroupsmember* add_contactgroup_to_service ( service ,
char *   
)

contactgroupsmember* add_contactgroup_to_serviceescalation ( serviceescalation ,
char *   
)

host* add_host ( char *  ,
char *  ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
char *  ,
int  ,
int  ,
char *  ,
int  ,
int  ,
double  ,
double  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int   
)

hostdependency* add_host_dependency ( char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
)

commandsmember* add_host_notification_command_to_contact ( contact ,
char *   
)

int add_host_to_hashlist ( host  ) 

hostgroupmember* add_host_to_hostgroup ( hostgroup ,
char *   
)

int add_hostdependency_to_hashlist ( hostdependency  ) 

hostescalation* add_hostescalation ( char *  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
int  ,
int   
)

int add_hostescalation_to_hashlist ( hostescalation  ) 

hostextinfo* add_hostextinfo ( char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
int  ,
int  ,
double  ,
double  ,
double  ,
int  ,
int   
)

int add_hostextinfo_to_hashlist ( hostextinfo  ) 

hostgroup* add_hostgroup ( char *  ,
char *   
)

int add_hostgroup_to_hashlist ( hostgroup  ) 

hostsmember* add_parent_host_to_host ( host ,
char *   
)

service* add_service ( char *  ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
char *  ,
int  ,
int  ,
double  ,
double  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int   
)

servicedependency* add_service_dependency ( char *  ,
char *  ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
)

commandsmember* add_service_notification_command_to_contact ( contact ,
char *   
)

int add_service_to_hashlist ( service  ) 

servicegroupmember* add_service_to_servicegroup ( servicegroup ,
char *  ,
char *   
)

int add_servicedependency_to_hashlist ( servicedependency  ) 

serviceescalation* add_serviceescalation ( char *  ,
char *  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
int  ,
int  ,
int   
)

int add_serviceescalation_to_hashlist ( serviceescalation  ) 

serviceextinfo* add_serviceextinfo ( char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *   
)

int add_serviceextinfo_to_hashlist ( serviceextinfo  ) 

servicegroup* add_servicegroup ( char *  ,
char *  ,
double   
)

int add_servicegroup_to_hashlist ( servicegroup  ) 

timeperiod* add_timeperiod ( char *  ,
char *   
)

int add_timeperiod_to_hashlist ( timeperiod  ) 

timerange* add_timerange_to_timeperiod ( timeperiod ,
int  ,
unsigned  long,
unsigned  long 
)

service* enum_services ( char *  ,
service  
)

int find_all_services_by_host ( char *   ) 

command* find_command ( char *   ) 

contact* find_contact ( char *   ) 

contactgroup* find_contactgroup ( char *   ) 

contactgroupmember* find_contactgroupmember ( char *  ,
contactgroup  
)

host* find_host ( char *   ) 

hostextinfo* find_hostextinfo ( char *   ) 

hostgroup* find_hostgroup ( char *   ) 

service* find_service ( char *  ,
char *   
)

serviceextinfo* find_serviceextinfo ( char *  ,
char *   
)

servicegroup* find_servicegroup ( char *   ) 

timeperiod* find_timeperiod ( char *   ) 

int free_extended_data ( void   ) 

void free_host_cursor ( void *  cursor  ) 

int free_object_data ( void   ) 

hostdependency* get_first_hostdependency_by_dependent_host ( char *   ) 

hostescalation* get_first_hostescalation_by_host ( char *   ) 

servicedependency* get_first_servicedependency_by_dependent_service ( char *  ,
char *   
)

serviceescalation* get_first_serviceescalation_by_service ( char *  ,
char *   
)

void* get_host_cursor ( void   ) 

host* get_next_host ( void   ) 

host* get_next_host_cursor ( void *  v_cursor  ) 

hostdependency* get_next_hostdependency_by_dependent_host ( char *  ,
hostdependency  
)

hostescalation* get_next_hostescalation_by_host ( char *  ,
hostescalation  
)

void* get_next_N ( void **  hashchain,
int  hashslots,
int *  iterator,
void *  current,
void *  next 
)

service* get_next_service ( void   ) 

service* get_next_service_by_host ( void   ) 

servicedependency* get_next_servicedependency_by_dependent_service ( char *  ,
char *  ,
servicedependency  
)

serviceescalation* get_next_serviceescalation_by_service ( char *  ,
char *  ,
serviceescalation  
)

int is_contact_for_host ( host ,
contact  
)

int is_contact_for_hostgroup ( hostgroup ,
contact  
)

int is_contact_for_service ( service ,
contact  
)

int is_contact_for_servicegroup ( servicegroup ,
contact  
)

int is_contact_member_of_contactgroup ( contactgroup ,
contact  
)

int is_escalated_contact_for_host ( host ,
contact  
)

int is_escalated_contact_for_service ( service ,
contact  
)

int is_host_immediate_child_of_host ( host ,
host  
)

int is_host_immediate_parent_of_host ( host ,
host  
)

int is_host_member_of_hostgroup ( hostgroup ,
host  
)

int is_host_member_of_servicegroup ( servicegroup ,
host  
)

int is_host_primary_immediate_child_of_host ( host ,
host  
)

int is_service_member_of_servicegroup ( servicegroup ,
service  
)

void move_first_host ( void   ) 

void move_first_service ( void   ) 

int number_of_immediate_child_hosts ( host  ) 

int number_of_immediate_parent_hosts ( host  ) 

int number_of_total_child_hosts ( host  ) 

int number_of_total_parent_hosts ( host  ) 

int read_object_config_data ( char *  ,
int  ,
int   
)


Generated on Tue Apr 13 15:15:29 2010 for DNX by  doxygen 1.5.6