cgi/status.c File Reference

#include "../include/config.h"
#include "../include/common.h"
#include "../include/objects.h"
#include "../include/comments.h"
#include "../include/macros.h"
#include "../include/statusdata.h"
#include "../include/cgiutils.h"
#include "../include/getcgi.h"
#include "../include/cgiauth.h"

Data Structures

struct  hostsort_struct
struct  servicesort_struct

Defines

#define MAX_MESSAGE_BUFFER   4096
#define DISPLAY_HOSTS   0
#define DISPLAY_HOSTGROUPS   1
#define DISPLAY_SERVICEGROUPS   2
#define STYLE_OVERVIEW   0
#define STYLE_SERVICE_DETAIL   1
#define STYLE_SUMMARY   2
#define STYLE_GRID   3
#define STYLE_HOST_DETAIL   4

Typedefs

typedef hostsort_struct hostsort
typedef servicesort_struct servicesort

Functions

int sort_services (int, int)
int sort_hosts (int, int)
int compare_servicesort_entries (int, int, servicesort *, servicesort *)
int compare_hostsort_entries (int, int, hostsort *, hostsort *)
void free_servicesort_list (void)
void free_hostsort_list (void)
void show_host_status_totals (void)
void show_service_status_totals (void)
void show_service_detail (void)
void show_host_detail (void)
void show_servicegroup_overviews (void)
void show_servicegroup_overview (servicegroup *)
void show_servicegroup_summaries (void)
void show_servicegroup_summary (servicegroup *, int)
void show_servicegroup_host_totals_summary (servicegroup *)
void show_servicegroup_service_totals_summary (servicegroup *)
void show_servicegroup_grids (void)
void show_servicegroup_grid (servicegroup *)
void show_hostgroup_overviews (void)
void show_hostgroup_overview (hostgroup *)
void show_servicegroup_hostgroup_member_overview (hoststatus *, int, void *)
void show_servicegroup_hostgroup_member_service_status_totals (char *, void *)
void show_hostgroup_summaries (void)
void show_hostgroup_summary (hostgroup *, int)
void show_hostgroup_host_totals_summary (hostgroup *)
void show_hostgroup_service_totals_summary (hostgroup *)
void show_hostgroup_grids (void)
void show_hostgroup_grid (hostgroup *)
void show_servicecommand_table (void)
void show_hostcommand_table (void)
void show_filters (void)
int passes_host_properties_filter (hoststatus *)
int passes_service_properties_filter (servicestatus *)
int process_cgivars (void)
void print_comment_icon (char *, char *)
int main (void)

Variables

static icinga_macrosmac
time_t program_start
char main_config_file [MAX_FILENAME_LENGTH]
char url_html_path [MAX_FILENAME_LENGTH]
char url_docs_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_logo_images_path [MAX_FILENAME_LENGTH]
char url_media_path [MAX_FILENAME_LENGTH]
char log_file [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
char * notes_url_target
char * action_url_target
int suppress_alert_window
int enable_splunk_integration
int status_show_long_plugin_output
hosthost_list
serviceservice_list
hostgrouphostgroup_list
servicegroupservicegroup_list
hoststatus * hoststatus_list
servicestatus * servicestatus_list
hostsorthostsort_list = NULL
servicesortservicesort_list = NULL
authdata current_authdata
time_t current_time
char alert_message [MAX_MESSAGE_BUFFER]
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 host_alert = FALSE
int show_all_hosts = TRUE
int show_all_hostgroups = TRUE
int show_all_servicegroups = TRUE
int display_type = DISPLAY_HOSTS
int overview_columns = 3
int max_grid_width = 8
int group_style_type = STYLE_OVERVIEW
int navbar_search = FALSE
int service_status_types = SERVICE_PENDING|SERVICE_OK|SERVICE_UNKNOWN|SERVICE_WARNING|SERVICE_CRITICAL
int all_service_status_types = SERVICE_PENDING|SERVICE_OK|SERVICE_UNKNOWN|SERVICE_WARNING|SERVICE_CRITICAL
int host_status_types = HOST_PENDING|HOST_UP|HOST_DOWN|HOST_UNREACHABLE
int all_host_status_types = HOST_PENDING|HOST_UP|HOST_DOWN|HOST_UNREACHABLE
int all_service_problems = SERVICE_UNKNOWN|SERVICE_WARNING|SERVICE_CRITICAL
int all_host_problems = HOST_DOWN|HOST_UNREACHABLE
unsigned long host_properties = 0L
unsigned long service_properties = 0L
int sort_type = SORT_NONE
int sort_option = SORT_HOSTNAME
int problem_hosts_down = 0
int problem_hosts_unreachable = 0
int problem_services_critical = 0
int problem_services_warning = 0
int problem_services_unknown = 0
int refresh
int embedded
int display_header
int daemon_check
int content_type
int escape_html_tags
int add_notif_num_hard
int add_notif_num_soft
char * csv_delimiter
char * csv_data_enclosure
int CGI_ID = STATUS_CGI_ID

Define Documentation

#define DISPLAY_HOSTGROUPS   1

#define DISPLAY_HOSTS   0

#define DISPLAY_SERVICEGROUPS   2

#define MAX_MESSAGE_BUFFER   4096

#define STYLE_GRID   3

#define STYLE_HOST_DETAIL   4

#define STYLE_OVERVIEW   0

#define STYLE_SERVICE_DETAIL   1

#define STYLE_SUMMARY   2


Typedef Documentation

typedef struct hostsort_struct hostsort

typedef struct servicesort_struct servicesort


Function Documentation

int compare_hostsort_entries ( int  ,
int  ,
hostsort ,
hostsort  
)

int compare_servicesort_entries ( int  ,
int  ,
servicesort ,
servicesort  
)

void free_hostsort_list ( void   ) 

void free_servicesort_list ( void   ) 

int main ( void   ) 

int passes_host_properties_filter ( hoststatus *   ) 

int passes_service_properties_filter ( servicestatus *   ) 

void print_comment_icon ( char *  ,
char *   
)

int process_cgivars ( void   ) 

void show_filters ( void   ) 

void show_host_detail ( void   ) 

void show_host_status_totals ( void   ) 

void show_hostcommand_table ( void   ) 

void show_hostgroup_grid ( hostgroup  ) 

void show_hostgroup_grids ( void   ) 

void show_hostgroup_host_totals_summary ( hostgroup  ) 

void show_hostgroup_overview ( hostgroup  ) 

void show_hostgroup_overviews ( void   ) 

void show_hostgroup_service_totals_summary ( hostgroup  ) 

void show_hostgroup_summaries ( void   ) 

void show_hostgroup_summary ( hostgroup ,
int   
)

void show_service_detail ( void   ) 

void show_service_status_totals ( void   ) 

void show_servicecommand_table ( void   ) 

void show_servicegroup_grid ( servicegroup  ) 

void show_servicegroup_grids ( void   ) 

void show_servicegroup_host_totals_summary ( servicegroup  ) 

void show_servicegroup_hostgroup_member_overview ( hoststatus *  ,
int  ,
void *   
)

void show_servicegroup_hostgroup_member_service_status_totals ( char *  ,
void *   
)

void show_servicegroup_overview ( servicegroup  ) 

void show_servicegroup_overviews ( void   ) 

void show_servicegroup_service_totals_summary ( servicegroup  ) 

void show_servicegroup_summaries ( void   ) 

void show_servicegroup_summary ( servicegroup ,
int   
)

int sort_hosts ( int  ,
int   
)

int sort_services ( int  ,
int   
)


Variable Documentation

char* action_url_target

int add_notif_num_hard

int add_notif_num_soft

char alert_message[MAX_MESSAGE_BUFFER]

int all_host_problems = HOST_DOWN|HOST_UNREACHABLE

int all_host_status_types = HOST_PENDING|HOST_UP|HOST_DOWN|HOST_UNREACHABLE

int all_service_problems = SERVICE_UNKNOWN|SERVICE_WARNING|SERVICE_CRITICAL

int all_service_status_types = SERVICE_PENDING|SERVICE_OK|SERVICE_UNKNOWN|SERVICE_WARNING|SERVICE_CRITICAL

int CGI_ID = STATUS_CGI_ID

int content_type

char* csv_data_enclosure

char* csv_delimiter

authdata current_authdata

time_t current_time

int daemon_check

int display_header

int display_type = DISPLAY_HOSTS

int embedded

int enable_splunk_integration

int escape_html_tags

int group_style_type = STYLE_OVERVIEW

int host_alert = FALSE

char* host_down_sound

char* host_filter = NULL

host* host_list

char* host_name = NULL

unsigned long host_properties = 0L

int host_status_types = HOST_PENDING|HOST_UP|HOST_DOWN|HOST_UNREACHABLE

char* host_unreachable_sound

hostgroup* hostgroup_list

char* hostgroup_name = NULL

hostsort* hostsort_list = NULL

hoststatus* hoststatus_list

char log_file[MAX_FILENAME_LENGTH]

icinga_macros* mac [static]

char main_config_file[MAX_FILENAME_LENGTH]

int max_grid_width = 8

int navbar_search = FALSE

char* normal_sound

char* notes_url_target

int overview_columns = 3

int problem_hosts_down = 0

int problem_hosts_unreachable = 0

int problem_services_critical = 0

int problem_services_unknown = 0

int problem_services_warning = 0

time_t program_start

int refresh

char* service_critical_sound

char* service_desc = NULL

char* service_filter = NULL

service* service_list

unsigned long service_properties = 0L

int service_status_types = SERVICE_PENDING|SERVICE_OK|SERVICE_UNKNOWN|SERVICE_WARNING|SERVICE_CRITICAL

char* service_unknown_sound

char* service_warning_sound

servicegroup* servicegroup_list

char* servicegroup_name = NULL

servicesort* servicesort_list = NULL

servicestatus* servicestatus_list

int show_all_hostgroups = TRUE

int show_all_hosts = TRUE

int show_all_servicegroups = TRUE

int sort_option = SORT_HOSTNAME

int sort_type = SORT_NONE

int status_show_long_plugin_output

int suppress_alert_window

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_logo_images_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