![]() |
Icinga-core 1.4.0
next gen monitoring
|
cgi to browse through Icinga log data More...
#include "../include/config.h"
#include "../include/common.h"
#include "../include/objects.h"
#include "../include/getcgi.h"
#include "../include/cgiutils.h"
#include "../include/cgiauth.h"
#include "../include/readlogs.h"
Go to the source code of this file.
Functions | |
int | process_cgivars (void) |
Parses the requested GET/POST variables. | |
void | display_logentries (void) |
displays the requested log entries | |
void | show_filter (void) |
displays the little filter list in the top right corner | |
void | display_own_nav_table (void) |
displays the navigation in the top center of the page | |
int | main (void) |
Yes we need a main function. | |
Variables | |
External vars | |
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 * | csv_delimiter |
char * | csv_data_enclosure |
int | log_rotation_method |
int | enable_splunk_integration |
int | showlog_initial_states |
int | showlog_current_states |
int | escape_html_tags |
int | embedded |
int | display_header |
int | daemon_check |
int | date_format |
int | content_type |
int | refresh |
logentry * | entry_list |
Vars which are imported for cgiutils | |
| |
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 * | hostgroup_name = NULL |
char * | servicegroup_name = NULL |
char * | service_desc = NULL |
Internal vars | |
int | display_frills = TRUE |
int | display_timebreaks = TRUE |
int | reverse = FALSE |
int | timeperiod_type = TIMEPERIOD_SINGLE_DAY |
int | show_notifications = TRUE |
int | show_host_status = TRUE |
int | show_service_status = TRUE |
int | show_external_commands = TRUE |
int | show_system_messages = TRUE |
int | show_event_handler = TRUE |
int | show_flapping = TRUE |
int | show_downtime = TRUE |
char * | query_string = NULL |
char * | start_time_string = "" |
char * | end_time_string = "" |
time_t | ts_start = 0L |
time_t | ts_end = 0L |
time_t | ts_midnight = 0L |
authdata | current_authdata |
int | CGI_ID = SHOWLOG_CGI_ID |
cgi to browse through Icinga log data
Definition in file showlog.c.
void display_logentries | ( | void | ) |
void display_own_nav_table | ( | void | ) |
displays the navigation in the top center of the page
This is a remake of the display_nav_table function from cgiutils.c But this one works with timestamps instead of archive numbers.
int process_cgivars | ( | void | ) |
Parses the requested GET/POST variables.
TRUE | |
FALSE | This function parses the request and set's the necessary variables |
void show_filter | ( | void | ) |
int CGI_ID = SHOWLOG_CGI_ID |
ID to identify the cgi for functions in cgiutils.c
int content_type |
Definition at line 165 of file cgiutils.c.
char* csv_data_enclosure |
Definition at line 66 of file cgiutils.c.
char* csv_delimiter |
Definition at line 65 of file cgiutils.c.
int daemon_check |
Definition at line 169 of file cgiutils.c.
int date_format |
int display_frills = TRUE |
int display_header |
Definition at line 167 of file cgiutils.c.
int display_timebreaks = TRUE |
int display_type = DISPLAY_HOSTS |
int embedded |
Definition at line 166 of file cgiutils.c.
Definition at line 72 of file cgiutils.c.
char* end_time_string = "" |
the list with all current logentries
Definition at line 36 of file readlogs.c.
int escape_html_tags |
Definition at line 119 of file cgiutils.c.
char* host_name = NULL |
char* hostgroup_name = NULL |
the log rotation method of the main Icinga log file see common.h
char main_config_file[MAX_FILENAME_LENGTH] |
Definition at line 50 of file icingastats.c.
char* query_string = NULL |
int refresh |
Definition at line 168 of file cgiutils.c.
int reverse = FALSE |
char* service_desc = NULL |
char* servicegroup_name = NULL |
int show_all_hostgroups = TRUE |
int show_all_hosts = TRUE |
int show_all_servicegroups = TRUE |
int show_event_handler = TRUE |
int show_external_commands = TRUE |
int show_flapping = TRUE |
int show_host_status = TRUE |
int show_notifications = TRUE |
int show_service_status = TRUE |
int show_system_messages = TRUE |
Definition at line 136 of file cgiutils.c.
Definition at line 135 of file cgiutils.c.
char* start_time_string = "" |
int timeperiod_type = TIMEPERIOD_SINGLE_DAY |
determines the time period to view see cgiutils.h
time_t ts_midnight = 0L |
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_stylesheets_path[MAX_FILENAME_LENGTH] |
Definition at line 43 of file cgiutils.c.