Icinga-core 1.4.0
next gen monitoring
cgi/outages.c File Reference
#include "../include/config.h"
#include "../include/common.h"
#include "../include/objects.h"
#include "../include/comments.h"
#include "../include/statusdata.h"
#include "../include/cgiutils.h"
#include "../include/getcgi.h"
#include "../include/cgiauth.h"

Go to the source code of this file.

Data Structures

struct  hostoutage_struct
struct  hostoutagesort_struct

Typedefs

typedef struct hostoutage_struct hostoutage
typedef struct
hostoutagesort_struct 
hostoutagesort

Functions

int process_cgivars (void)
void display_network_outages (void)
void find_hosts_causing_outages (void)
void calculate_outage_effects (void)
void calculate_outage_effect_of_host (host *, int *, int *)
int is_route_to_host_blocked (host *)
int number_of_host_services (host *)
void add_hostoutage (host *)
void sort_hostoutages (void)
void free_hostoutage_list (void)
void free_hostoutagesort_list (void)
int main (void)

Variables

time_t program_start
hosthost_list
serviceservice_list
hoststatus * hoststatus_list
servicestatus * servicestatus_list
char main_config_file [MAX_FILENAME_LENGTH]
char url_html_path [MAX_FILENAME_LENGTH]
char url_stylesheets_path [MAX_FILENAME_LENGTH]
char url_js_path [MAX_FILENAME_LENGTH]
char url_images_path [MAX_FILENAME_LENGTH]
char url_logo_images_path [MAX_FILENAME_LENGTH]
char log_file [MAX_FILENAME_LENGTH]
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
authdata current_authdata
hostoutagehostoutage_list = NULL
hostoutagesorthostoutagesort_list = NULL
int service_severity_divisor = 4
int embedded
int refresh
int display_header
int daemon_check
int content_type
char * csv_delimiter
char * csv_data_enclosure
int CGI_ID = OUTAGES_CGI_ID

Typedef Documentation

typedef struct hostoutage_struct hostoutage

Function Documentation

void add_hostoutage ( host hst)

Definition at line 495 of file outages.c.

void calculate_outage_effect_of_host ( host hst,
int *  affected_hosts,
int *  affected_services 
)

Definition at line 567 of file outages.c.

void calculate_outage_effects ( void  )

Definition at line 551 of file outages.c.

void display_network_outages ( void  )

Definition at line 276 of file outages.c.

void find_hosts_causing_outages ( void  )

Definition at line 466 of file outages.c.

void free_hostoutage_list ( void  )

Definition at line 517 of file outages.c.

void free_hostoutagesort_list ( void  )

Definition at line 534 of file outages.c.

int is_route_to_host_blocked ( host hst)

Definition at line 597 of file outages.c.

int main ( void  )

Definition at line 116 of file outages.c.

int number_of_host_services ( host hst)

Definition at line 623 of file outages.c.

int process_cgivars ( void  )
void sort_hostoutages ( void  )

Definition at line 638 of file outages.c.


Variable Documentation

int CGI_ID = OUTAGES_CGI_ID

ID to identify the cgi for functions in cgiutils.c

Definition at line 114 of file outages.c.

Definition at line 165 of file cgiutils.c.

Definition at line 66 of file cgiutils.c.

Definition at line 65 of file cgiutils.c.

Definition at line 98 of file outages.c.

Definition at line 169 of file cgiutils.c.

Definition at line 167 of file cgiutils.c.

int display_type = DISPLAY_HOSTS

determine the view (host/service)

Definition at line 49 of file outages.c.

int embedded

Definition at line 166 of file cgiutils.c.

char* host_filter = NULL

Definition at line 55 of file outages.c.

Definition at line 52 of file objects.c.

char* host_name = NULL

requested host name

the requested host name

Definition at line 54 of file outages.c.

char* hostgroup_name = NULL

requested hostgroup name

Definition at line 56 of file outages.c.

Definition at line 100 of file outages.c.

Definition at line 101 of file outages.c.

hoststatus* hoststatus_list
char log_file[MAX_FILENAME_LENGTH]

Definition at line 63 of file icinga.c.

char main_config_file[MAX_FILENAME_LENGTH]

Definition at line 50 of file icingastats.c.

time_t program_start

Definition at line 199 of file icinga.c.

int refresh

Definition at line 168 of file cgiutils.c.

char* service_desc = NULL

requested service name

the requested service name

Definition at line 58 of file outages.c.

char* service_filter = NULL

Definition at line 59 of file outages.c.

Definition at line 53 of file objects.c.

Definition at line 103 of file outages.c.

char* servicegroup_name = NULL

requested servicegroup name

Definition at line 57 of file outages.c.

servicestatus* servicestatus_list
int show_all_hostgroups = TRUE

Definition at line 51 of file outages.c.

int show_all_hosts = TRUE

if historical data is requested for all hosts

Definition at line 50 of file outages.c.

Definition at line 52 of file outages.c.

char url_html_path[MAX_FILENAME_LENGTH]

Definition at line 38 of file cgiutils.c.

char url_images_path[MAX_FILENAME_LENGTH]

Definition at line 41 of file cgiutils.c.

char url_js_path[MAX_FILENAME_LENGTH]

Definition at line 44 of file cgiutils.c.

char url_logo_images_path[MAX_FILENAME_LENGTH]

Definition at line 42 of file cgiutils.c.

char url_stylesheets_path[MAX_FILENAME_LENGTH]

Definition at line 43 of file cgiutils.c.

 All Data Structures Files Functions Variables Typedefs Defines