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

Go to the source code of this file.

Data Structures

struct  hostoutage_struct

Defines

#define HEALTH_WARNING_PERCENTAGE   90
#define HEALTH_CRITICAL_PERCENTAGE   75

Typedefs

typedef struct hostoutage_struct hostoutage

Functions

void analyze_status_data (void)
void display_tac_overview (void)
void find_hosts_causing_outages (void)
void calculate_outage_effect_of_host (host *, int *)
int is_route_to_host_blocked (host *)
int number_of_host_services (host *)
void add_hostoutage (host *)
void free_hostoutage_list (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_stylesheets_path [MAX_FILENAME_LENGTH]
char url_js_path [MAX_FILENAME_LENGTH]
char url_media_path [MAX_FILENAME_LENGTH]
char * service_critical_sound
char * service_warning_sound
char * service_unknown_sound
char * host_down_sound
char * host_unreachable_sound
char * normal_sound
hosthost_list
hostgrouphostgroup_list
hoststatus * hoststatus_list
servicestatus * servicestatus_list
int enable_notifications
int execute_service_checks
int execute_host_checks
int accept_passive_service_checks
int accept_passive_host_checks
int enable_event_handlers
int enable_flap_detection
int nagios_process_state
int tac_show_only_hard_state
int show_tac_header
authdata current_authdata
int embedded
int refresh
int display_header
int daemon_check
int tac_header
int content_type
hostoutagehostoutage_list = NULL
int total_blocking_outages = 0
int total_nonblocking_outages = 0
int total_service_health = 0
int total_host_health = 0
int potential_service_health = 0
int potential_host_health = 0
double percent_service_health = 0.0
double percent_host_health = 0.0
int total_hosts = 0
int total_services = 0
int total_active_service_checks = 0
int total_active_host_checks = 0
int total_passive_service_checks = 0
int total_passive_host_checks = 0
double min_service_execution_time = -1.0
double max_service_execution_time = -1.0
double total_service_execution_time = 0.0
double average_service_execution_time = -1.0
double min_host_execution_time = -1.0
double max_host_execution_time = -1.0
double total_host_execution_time = 0.0
double average_host_execution_time = -1.0
double min_service_latency = -1.0
double max_service_latency = -1.0
double total_service_latency = 0.0
double average_service_latency = -1.0
double min_host_latency = -1.0
double max_host_latency = -1.0
double total_host_latency = 0.0
double average_host_latency = -1.0
int flapping_services = 0
int flapping_hosts = 0
int flap_disabled_services = 0
int flap_disabled_hosts = 0
int notification_disabled_services = 0
int notification_disabled_hosts = 0
int event_handler_disabled_services = 0
int event_handler_disabled_hosts = 0
int active_checks_disabled_services = 0
int active_checks_disabled_hosts = 0
int passive_checks_disabled_services = 0
int passive_checks_disabled_hosts = 0
int hosts_pending = 0
int hosts_pending_disabled = 0
int hosts_up_disabled = 0
int hosts_up_unacknowledged = 0
int hosts_up = 0
int hosts_down_scheduled = 0
int hosts_down_acknowledged = 0
int hosts_down_disabled = 0
int hosts_down_unacknowledged = 0
int hosts_down = 0
int hosts_unreachable_scheduled = 0
int hosts_unreachable_acknowledged = 0
int hosts_unreachable_disabled = 0
int hosts_unreachable_unacknowledged = 0
int hosts_unreachable = 0
int services_pending = 0
int services_pending_disabled = 0
int services_ok_disabled = 0
int services_ok_unacknowledged = 0
int services_ok = 0
int services_warning_host_problem = 0
int services_warning_scheduled = 0
int services_warning_acknowledged = 0
int services_warning_disabled = 0
int services_warning_unacknowledged = 0
int services_warning = 0
int services_unknown_host_problem = 0
int services_unknown_scheduled = 0
int services_unknown_acknowledged = 0
int services_unknown_disabled = 0
int services_unknown_unacknowledged = 0
int services_unknown = 0
int services_critical_host_problem = 0
int services_critical_scheduled = 0
int services_critical_acknowledged = 0
int services_critical_disabled = 0
int services_critical_unacknowledged = 0
int services_critical = 0
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 CGI_ID = TAC_CGI_ID

Define Documentation

#define HEALTH_CRITICAL_PERCENTAGE   75

Definition at line 38 of file tac.c.

#define HEALTH_WARNING_PERCENTAGE   90

Definition at line 37 of file tac.c.


Typedef Documentation

typedef struct hostoutage_struct hostoutage

Function Documentation

void add_hostoutage ( host hst)
void analyze_status_data ( void  )

Definition at line 409 of file tac.c.

void calculate_outage_effect_of_host ( host hst,
int *  affected_hosts 
)

Definition at line 832 of file tac.c.

void display_tac_overview ( void  )

Definition at line 886 of file tac.c.

void find_hosts_causing_outages ( void  )
void free_hostoutage_list ( void  )
int is_route_to_host_blocked ( host hst)
int main ( void  )

Definition at line 209 of file tac.c.

int number_of_host_services ( host )

Definition at line 623 of file outages.c.

int process_cgivars ( void  )

Variable Documentation

Definition at line 206 of file icinga.c.

Definition at line 204 of file icinga.c.

Definition at line 149 of file tac.c.

Definition at line 148 of file tac.c.

Definition at line 130 of file tac.c.

double average_host_latency = -1.0

Definition at line 138 of file tac.c.

Definition at line 126 of file tac.c.

double average_service_latency = -1.0

Definition at line 134 of file tac.c.

int CGI_ID = TAC_CGI_ID

ID to identify the cgi for functions in cgiutils.c

Definition at line 205 of file tac.c.

Definition at line 165 of file cgiutils.c.

Definition at line 94 of file tac.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 193 of file tac.c.

int embedded

Definition at line 166 of file cgiutils.c.

Definition at line 207 of file icinga.c.

Definition at line 224 of file icinga.c.

Definition at line 202 of file icinga.c.

Definition at line 147 of file tac.c.

Definition at line 146 of file tac.c.

Definition at line 205 of file icinga.c.

Definition at line 203 of file icinga.c.

Definition at line 143 of file tac.c.

Definition at line 142 of file tac.c.

int flapping_hosts = 0

Definition at line 141 of file tac.c.

Definition at line 140 of file tac.c.

Definition at line 50 of file cgiutils.c.

char* host_filter = NULL

Definition at line 199 of file tac.c.

Definition at line 52 of file objects.c.

char* host_name = NULL

requested host name

the requested host name

Definition at line 198 of file tac.c.

Definition at line 51 of file cgiutils.c.

Definition at line 56 of file objects.c.

char* hostgroup_name = NULL

requested hostgroup name

Definition at line 200 of file tac.c.

Definition at line 103 of file tac.c.

int hosts_down = 0

Definition at line 162 of file tac.c.

Definition at line 159 of file tac.c.

Definition at line 160 of file tac.c.

Definition at line 158 of file tac.c.

Definition at line 161 of file tac.c.

int hosts_pending = 0

Definition at line 153 of file tac.c.

Definition at line 154 of file tac.c.

Definition at line 167 of file tac.c.

Definition at line 164 of file tac.c.

Definition at line 165 of file tac.c.

Definition at line 163 of file tac.c.

Definition at line 166 of file tac.c.

int hosts_up = 0

Definition at line 157 of file tac.c.

Definition at line 155 of file tac.c.

Definition at line 156 of file tac.c.

hoststatus* hoststatus_list
char main_config_file[MAX_FILENAME_LENGTH]

Definition at line 50 of file icingastats.c.

double max_host_execution_time = -1.0

Definition at line 128 of file tac.c.

double max_host_latency = -1.0

Definition at line 136 of file tac.c.

Definition at line 124 of file tac.c.

double max_service_latency = -1.0

Definition at line 132 of file tac.c.

double min_host_execution_time = -1.0

Definition at line 127 of file tac.c.

double min_host_latency = -1.0

Definition at line 135 of file tac.c.

Definition at line 123 of file tac.c.

double min_service_latency = -1.0

Definition at line 131 of file tac.c.

Definition at line 70 of file cgiutils.c.

char* normal_sound

Definition at line 52 of file cgiutils.c.

Definition at line 145 of file tac.c.

Definition at line 144 of file tac.c.

Definition at line 151 of file tac.c.

Definition at line 150 of file tac.c.

double percent_host_health = 0.0

Definition at line 113 of file tac.c.

double percent_service_health = 0.0

Definition at line 112 of file tac.c.

Definition at line 111 of file tac.c.

Definition at line 110 of file tac.c.

int refresh

Definition at line 168 of file cgiutils.c.

Definition at line 47 of file cgiutils.c.

char* service_desc = NULL

requested service name

the requested service name

Definition at line 202 of file tac.c.

char* service_filter = NULL

Definition at line 203 of file tac.c.

Definition at line 49 of file cgiutils.c.

Definition at line 48 of file cgiutils.c.

char* servicegroup_name = NULL

requested servicegroup name

Definition at line 201 of file tac.c.

Definition at line 191 of file tac.c.

Definition at line 188 of file tac.c.

Definition at line 189 of file tac.c.

Definition at line 186 of file tac.c.

Definition at line 187 of file tac.c.

Definition at line 190 of file tac.c.

int services_ok = 0

Definition at line 173 of file tac.c.

Definition at line 171 of file tac.c.

Definition at line 172 of file tac.c.

Definition at line 169 of file tac.c.

Definition at line 170 of file tac.c.

Definition at line 185 of file tac.c.

Definition at line 182 of file tac.c.

Definition at line 183 of file tac.c.

Definition at line 180 of file tac.c.

Definition at line 181 of file tac.c.

Definition at line 184 of file tac.c.

Definition at line 179 of file tac.c.

Definition at line 176 of file tac.c.

Definition at line 177 of file tac.c.

Definition at line 174 of file tac.c.

Definition at line 175 of file tac.c.

Definition at line 178 of file tac.c.

servicestatus* servicestatus_list
int show_all_hostgroups = TRUE

Definition at line 195 of file tac.c.

int show_all_hosts = TRUE

if historical data is requested for all hosts

Definition at line 194 of file tac.c.

Definition at line 196 of file tac.c.

Definition at line 134 of file cgiutils.c.

Definition at line 170 of file cgiutils.c.

Definition at line 133 of file cgiutils.c.

Definition at line 119 of file tac.c.

Definition at line 118 of file tac.c.

Definition at line 105 of file tac.c.

Definition at line 129 of file tac.c.

Definition at line 109 of file tac.c.

double total_host_latency = 0.0

Definition at line 137 of file tac.c.

int total_hosts = 0

Definition at line 115 of file tac.c.

Definition at line 106 of file tac.c.

Definition at line 121 of file tac.c.

Definition at line 120 of file tac.c.

Definition at line 125 of file tac.c.

Definition at line 108 of file tac.c.

double total_service_latency = 0.0

Definition at line 133 of file tac.c.

int total_services = 0

Definition at line 116 of file tac.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_media_path[MAX_FILENAME_LENGTH]

Definition at line 45 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