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"

Data Structures

struct  hostoutage_struct

Defines

#define HEALTH_WARNING_PERCENTAGE   90
#define HEALTH_CRITICAL_PERCENTAGE   75

Typedefs

typedef 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 accept_passive_service_checks
int enable_event_handlers
int enable_flap_detection
int nagios_process_state
int tac_show_only_hard_state
authdata current_authdata
int embedded
int refresh
int display_header
int daemon_check
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

#define HEALTH_WARNING_PERCENTAGE   90


Typedef Documentation

typedef struct hostoutage_struct hostoutage


Function Documentation

void add_hostoutage ( host  ) 

void analyze_status_data ( void   ) 

void calculate_outage_effect_of_host ( host ,
int *   
)

void display_tac_overview ( void   ) 

void find_hosts_causing_outages ( void   ) 

void free_hostoutage_list ( void   ) 

int is_route_to_host_blocked ( host  ) 

int main ( void   ) 

int number_of_host_services ( host  ) 

int process_cgivars ( void   ) 


Variable Documentation

int accept_passive_service_checks

int active_checks_disabled_hosts = 0

int active_checks_disabled_services = 0

double average_host_execution_time = -1.0

double average_host_latency = -1.0

double average_service_execution_time = -1.0

double average_service_latency = -1.0

int CGI_ID = TAC_CGI_ID

authdata current_authdata

int daemon_check

int display_header

int display_type = DISPLAY_HOSTS

int embedded

int enable_event_handlers

int enable_flap_detection

int enable_notifications

int event_handler_disabled_hosts = 0

int event_handler_disabled_services = 0

int execute_service_checks

int flap_disabled_hosts = 0

int flap_disabled_services = 0

int flapping_hosts = 0

int flapping_services = 0

char* host_down_sound

char* host_filter = NULL

host* host_list

char* host_name = NULL

char* host_unreachable_sound

hostgroup* hostgroup_list

char* hostgroup_name = NULL

hostoutage* hostoutage_list = NULL

int hosts_down = 0

int hosts_down_acknowledged = 0

int hosts_down_disabled = 0

int hosts_down_scheduled = 0

int hosts_down_unacknowledged = 0

int hosts_pending = 0

int hosts_pending_disabled = 0

int hosts_unreachable = 0

int hosts_unreachable_acknowledged = 0

int hosts_unreachable_disabled = 0

int hosts_unreachable_scheduled = 0

int hosts_unreachable_unacknowledged = 0

int hosts_up = 0

int hosts_up_disabled = 0

int hosts_up_unacknowledged = 0

hoststatus* hoststatus_list

char main_config_file[MAX_FILENAME_LENGTH]

double max_host_execution_time = -1.0

double max_host_latency = -1.0

double max_service_execution_time = -1.0

double max_service_latency = -1.0

double min_host_execution_time = -1.0

double min_host_latency = -1.0

double min_service_execution_time = -1.0

double min_service_latency = -1.0

int nagios_process_state

char* normal_sound

int notification_disabled_hosts = 0

int notification_disabled_services = 0

int passive_checks_disabled_hosts = 0

int passive_checks_disabled_services = 0

double percent_host_health = 0.0

double percent_service_health = 0.0

int potential_host_health = 0

int potential_service_health = 0

int refresh

char* service_critical_sound

char* service_desc = NULL

char* service_filter = NULL

char* service_unknown_sound

char* service_warning_sound

char* servicegroup_name = NULL

int services_critical = 0

int services_critical_acknowledged = 0

int services_critical_disabled = 0

int services_critical_host_problem = 0

int services_critical_scheduled = 0

int services_critical_unacknowledged = 0

int services_ok = 0

int services_ok_disabled = 0

int services_ok_unacknowledged = 0

int services_pending = 0

int services_pending_disabled = 0

int services_unknown = 0

int services_unknown_acknowledged = 0

int services_unknown_disabled = 0

int services_unknown_host_problem = 0

int services_unknown_scheduled = 0

int services_unknown_unacknowledged = 0

int services_warning = 0

int services_warning_acknowledged = 0

int services_warning_disabled = 0

int services_warning_host_problem = 0

int services_warning_scheduled = 0

int services_warning_unacknowledged = 0

servicestatus* servicestatus_list

int show_all_hostgroups = TRUE

int show_all_hosts = TRUE

int show_all_servicegroups = TRUE

int tac_show_only_hard_state

int total_active_host_checks = 0

int total_active_service_checks = 0

int total_blocking_outages = 0

double total_host_execution_time = 0.0

int total_host_health = 0

double total_host_latency = 0.0

int total_hosts = 0

int total_nonblocking_outages = 0

int total_passive_host_checks = 0

int total_passive_service_checks = 0

double total_service_execution_time = 0.0

int total_service_health = 0

double total_service_latency = 0.0

int total_services = 0

char url_html_path[MAX_FILENAME_LENGTH]

char url_images_path[MAX_FILENAME_LENGTH]

char url_js_path[MAX_FILENAME_LENGTH]

char url_media_path[MAX_FILENAME_LENGTH]

char url_stylesheets_path[MAX_FILENAME_LENGTH]


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