cgi/notifications.c File Reference

#include "../include/config.h"
#include "../include/common.h"
#include "../include/getcgi.h"
#include "../include/cgiutils.h"
#include "../include/cgiauth.h"

Defines

#define FIND_HOST   1
#define FIND_CONTACT   2
#define FIND_SERVICE   3
#define MAX_QUERYNAME_LENGTH   256
#define SERVICE_NOTIFICATION   0
#define HOST_NOTIFICATION   1
#define SERVICE_NOTIFICATION_STRING   "] SERVICE NOTIFICATION:"
#define HOST_NOTIFICATION_STRING   "] HOST NOTIFICATION:"

Functions

void display_notifications (void)
int process_cgivars (void)
int main (void)

Variables

char main_config_file [MAX_FILENAME_LENGTH]
char url_html_path [MAX_FILENAME_LENGTH]
char url_images_path [MAX_FILENAME_LENGTH]
char url_docs_path [MAX_FILENAME_LENGTH]
char url_stylesheets_path [MAX_FILENAME_LENGTH]
char url_js_path [MAX_FILENAME_LENGTH]
int log_rotation_method
authdata current_authdata
char log_file_to_use [MAX_FILENAME_LENGTH]
int log_archive = 0
int query_type = FIND_HOST
int find_all = TRUE
char * query_contact_name = ""
char * query_host_name = ""
char * query_svc_description = ""
int notification_options = NOTIFICATION_ALL
int use_lifo = TRUE
int display_type = DISPLAY_HOSTS
int show_all_hosts = TRUE
int show_all_hostgroups = TRUE
int show_all_servicegroups = TRUE
char * host_name = NULL
char * host_filter = NULL
char * hostgroup_name = NULL
char * servicegroup_name = NULL
char * service_desc = NULL
char * service_filter = NULL
int embedded
int display_header
int daemon_check
int content_type
char * csv_delimiter
char * csv_data_enclosure
int CGI_ID = NOTIFICATIONS_CGI_ID

Define Documentation

#define FIND_CONTACT   2

#define FIND_HOST   1

#define FIND_SERVICE   3

#define HOST_NOTIFICATION   1

#define HOST_NOTIFICATION_STRING   "] HOST NOTIFICATION:"

#define MAX_QUERYNAME_LENGTH   256

#define SERVICE_NOTIFICATION   0

#define SERVICE_NOTIFICATION_STRING   "] SERVICE NOTIFICATION:"


Function Documentation

void display_notifications ( void   ) 

int main ( void   ) 

int process_cgivars ( void   ) 


Variable Documentation

int CGI_ID = NOTIFICATIONS_CGI_ID

int content_type

char* csv_data_enclosure

char* csv_delimiter

authdata current_authdata

int daemon_check

int display_header

int display_type = DISPLAY_HOSTS

int embedded

int find_all = TRUE

char* host_filter = NULL

char* host_name = NULL

char* hostgroup_name = NULL

int log_archive = 0

char log_file_to_use[MAX_FILENAME_LENGTH]

int log_rotation_method

char main_config_file[MAX_FILENAME_LENGTH]

int notification_options = NOTIFICATION_ALL

char* query_contact_name = ""

char* query_host_name = ""

char* query_svc_description = ""

int query_type = FIND_HOST

char* service_desc = NULL

char* service_filter = NULL

char* servicegroup_name = NULL

int show_all_hostgroups = TRUE

int show_all_hosts = TRUE

int show_all_servicegroups = TRUE

char url_docs_path[MAX_FILENAME_LENGTH]

char url_html_path[MAX_FILENAME_LENGTH]

char url_images_path[MAX_FILENAME_LENGTH]

char url_js_path[MAX_FILENAME_LENGTH]

char url_stylesheets_path[MAX_FILENAME_LENGTH]

int use_lifo = TRUE


Generated on Wed Mar 30 17:22:22 2011 for icinga-core by  doxygen 1.4.7