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

Go to the source code of this file.

Functions

int check_escalation_condition (escalation_condition *)
int service_notification (service *svc, int type, char *not_author, char *not_data, int options)
int check_service_notification_viability (service *svc, int type, int options)
int check_contact_service_notification_viability (contact *cntct, service *svc, int type, int options)
int notify_contact_of_service (icinga_macros *mac, contact *cntct, service *svc, int type, char *not_author, char *not_data, int options, int escalated)
int is_valid_escalation_for_service_notification (service *svc, serviceescalation *se, int options)
int should_service_notification_be_escalated (service *svc)
int create_notification_list_from_service (icinga_macros *mac, service *svc, int options, int *escalated)
int host_notification (host *hst, int type, char *not_author, char *not_data, int options)
int check_host_notification_viability (host *hst, int type, int options)
int check_contact_host_notification_viability (contact *cntct, host *hst, int type, int options)
int notify_contact_of_host (icinga_macros *mac, contact *cntct, host *hst, int type, char *not_author, char *not_data, int options, int escalated)
int is_valid_escalation_for_host_notification (host *hst, hostescalation *he, int options)
int should_host_notification_be_escalated (host *hst)
int create_notification_list_from_host (icinga_macros *mac, host *hst, int options, int *escalated)
time_t get_next_service_notification_time (service *svc, time_t offset)
time_t get_next_host_notification_time (host *hst, time_t offset)
notificationfind_notification (contact *cntct)
int add_notification (icinga_macros *mac, contact *cntct)

Variables

notificationnotification_list
contactcontact_list
serviceescalationserviceescalation_list
hostescalationhostescalation_list
time_t program_start
int interval_length
int log_notifications
int enable_notifications
int notification_timeout
unsigned long next_notification_id
char * generic_summary
int dummy

Function Documentation

int add_notification ( icinga_macros mac,
contact cntct 
)

Definition at line 2323 of file notifications.c.

int check_contact_host_notification_viability ( contact cntct,
host hst,
int  type,
int  options 
)

Definition at line 1688 of file notifications.c.

int check_contact_service_notification_viability ( contact cntct,
service svc,
int  type,
int  options 
)

Definition at line 621 of file notifications.c.

int check_escalation_condition ( escalation_condition cond)

Definition at line 1004 of file notifications.c.

int check_host_notification_viability ( host hst,
int  type,
int  options 
)

Definition at line 1462 of file notifications.c.

int check_service_notification_viability ( service svc,
int  type,
int  options 
)

Definition at line 348 of file notifications.c.

int create_notification_list_from_host ( icinga_macros mac,
host hst,
int  options,
int *  escalated 
)

Definition at line 2078 of file notifications.c.

int create_notification_list_from_service ( icinga_macros mac,
service svc,
int  options,
int *  escalated 
)

Definition at line 1102 of file notifications.c.

notification* find_notification ( contact cntct)

Definition at line 2303 of file notifications.c.

time_t get_next_host_notification_time ( host hst,
time_t  offset 
)

Definition at line 2239 of file notifications.c.

time_t get_next_service_notification_time ( service svc,
time_t  offset 
)

Definition at line 2181 of file notifications.c.

int host_notification ( host hst,
int  type,
char *  not_author,
char *  not_data,
int  options 
)

Definition at line 1201 of file notifications.c.

int is_valid_escalation_for_host_notification ( host hst,
hostescalation he,
int  options 
)

Definition at line 1944 of file notifications.c.

int is_valid_escalation_for_service_notification ( service svc,
serviceescalation se,
int  options 
)

Definition at line 876 of file notifications.c.

int notify_contact_of_host ( icinga_macros mac,
contact cntct,
host hst,
int  type,
char *  not_author,
char *  not_data,
int  options,
int  escalated 
)

Definition at line 1789 of file notifications.c.

int notify_contact_of_service ( icinga_macros mac,
contact cntct,
service svc,
int  type,
char *  not_author,
char *  not_data,
int  options,
int  escalated 
)

Definition at line 723 of file notifications.c.

int service_notification ( service svc,
int  type,
char *  not_author,
char *  not_data,
int  options 
)

Definition at line 63 of file notifications.c.

int should_host_notification_be_escalated ( host hst)

Definition at line 2054 of file notifications.c.

int should_service_notification_be_escalated ( service svc)

Definition at line 1079 of file notifications.c.


Variable Documentation

Definition at line 54 of file objects.c.

int dummy

Definition at line 55 of file notifications.c.

Definition at line 202 of file icinga.c.

Definition at line 63 of file objects.c.

Definition at line 118 of file icinga.c.

Definition at line 95 of file icinga.c.

unsigned long next_notification_id

Definition at line 172 of file icinga.c.

Definition at line 265 of file icinga.c.

Definition at line 113 of file icinga.c.

time_t program_start

Definition at line 199 of file icinga.c.

Definition at line 60 of file objects.c.

 All Data Structures Files Functions Variables Typedefs Defines