#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"
#define AE_HARD_STATE 2 |
#define AE_HOST_ALERT 1 |
#define AE_HOST_DOWN 1 |
#define AE_HOST_PRODUCER 1 |
#define AE_HOST_UNREACHABLE 2 |
#define AE_HOST_UP 4 |
#define AE_SERVICE_ALERT 2 |
#define AE_SERVICE_CRITICAL 32 |
#define AE_SERVICE_OK 64 |
#define AE_SERVICE_PRODUCER 2 |
#define AE_SERVICE_UNKNOWN 16 |
#define AE_SERVICE_WARNING 8 |
#define AE_SOFT_STATE 1 |
#define REPORT_ALERT_TOTALS 2 |
#define REPORT_HOST_ALERT_TOTALS 5 |
#define REPORT_HOSTGROUP_ALERT_TOTALS 4 |
#define REPORT_NONE 0 |
#define REPORT_RECENT_ALERTS 1 |
#define REPORT_SERVICE_ALERT_TOTALS 6 |
#define REPORT_SERVICEGROUP_ALERT_TOTALS 7 |
#define REPORT_TOP_ALERTS 3 |
#define SREPORT_NONE 0 |
#define SREPORT_RECENT_ALERTS 1 |
#define SREPORT_RECENT_HOST_ALERTS 2 |
#define SREPORT_RECENT_SERVICE_ALERTS 3 |
#define SREPORT_TOP_HOST_ALERTS 4 |
#define SREPORT_TOP_SERVICE_ALERTS 5 |
#define TIMEPERIOD_CUSTOM 0 |
#define TIMEPERIOD_LAST24HOURS 11 |
#define TIMEPERIOD_LAST31DAYS 13 |
#define TIMEPERIOD_LAST7DAYS 12 |
#define TIMEPERIOD_LASTMONTH 6 |
#define TIMEPERIOD_LASTQUARTER 8 |
#define TIMEPERIOD_LASTWEEK 4 |
#define TIMEPERIOD_LASTYEAR 10 |
#define TIMEPERIOD_THISMONTH 5 |
#define TIMEPERIOD_THISQUARTER 7 |
#define TIMEPERIOD_THISWEEK 3 |
#define TIMEPERIOD_THISYEAR 9 |
#define TIMEPERIOD_TODAY 1 |
#define TIMEPERIOD_YESTERDAY 2 |
typedef struct alert_producer_struct alert_producer |
typedef struct archived_event_struct archived_event |
void add_archived_event | ( | int | , | |
time_t | , | |||
int | , | |||
int | , | |||
char * | , | |||
char * | , | |||
char * | ||||
) |
alert_producer * add_producer | ( | int | , | |
char * | , | |||
char * | ||||
) |
void compute_report_times | ( | void | ) |
void convert_timeperiod_to_times | ( | int | ) |
void determine_standard_report_options | ( | void | ) |
void display_alerts | ( | void | ) |
void display_recent_alerts | ( | void | ) |
void display_report | ( | void | ) |
void display_top_alerts | ( | void | ) |
alert_producer * find_producer | ( | int | , | |
char * | , | |||
char * | ||||
) |
void free_event_list | ( | void | ) |
void free_producer_list | ( | void | ) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
int process_cgivars | ( | void | ) |
void read_archived_event_data | ( | void | ) |
void scan_log_file_for_archived_event_data | ( | char * | ) |
int alert_types = AE_HOST_ALERT+AE_SERVICE_ALERT |
int CGI_ID = SUMMARY_CGI_ID |
int compute_time_from_parts = FALSE |
int content_type |
char* csv_data_enclosure |
char* csv_delimiter |
int daemon_check |
int display_header |
int display_type = REPORT_RECENT_ALERTS |
int earliest_archive = 0 |
int embedded |
int end_day = 1 |
int end_hour = 24 |
int end_minute = 0 |
int end_month = 1 |
int end_second = 0 |
int end_year = 2000 |
archived_event* event_list = NULL |
int generate_report = FALSE |
char* host_filter = NULL |
char* host_name = NULL |
int host_states = AE_HOST_UP+AE_HOST_DOWN+AE_HOST_UNREACHABLE |
char* hostgroup_name = NULL |
int item_limit = 25 |
char main_config_file[MAX_FILENAME_LENGTH] |
alert_producer* producer_list = NULL |
char* service_desc = NULL |
char* service_filter = NULL |
int service_states = AE_SERVICE_OK+AE_SERVICE_WARNING+AE_SERVICE_UNKNOWN+AE_SERVICE_CRITICAL |
char* servicegroup_name = NULL |
int show_all_hostgroups = TRUE |
int show_all_hosts = TRUE |
int show_all_servicegroups = TRUE |
int standard_report = SREPORT_NONE |
int start_day = 1 |
int start_hour = 0 |
int start_minute = 0 |
int start_month = 1 |
int start_second = 0 |
int start_year = 2000 |
int state_types = AE_HARD_STATE+AE_SOFT_STATE |
time_t t1 |
time_t t2 |
host* target_host = NULL |
char* target_host_name = "" |
hostgroup* target_hostgroup = NULL |
char* target_hostgroup_name = "" |
service* target_service = NULL |
servicegroup* target_servicegroup = NULL |
char* target_servicegroup_name = "" |
int timeperiod_type = TIMEPERIOD_CUSTOM |
int total_items = 0 |
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] |