#include "../include/config.h"
#include "../include/common.h"
#include "../include/icinga.h"
#include "../include/locations.h"
#define STATUS_HOST_DATA 3 |
#define STATUS_INFO_DATA 1 |
#define STATUS_NO_DATA 0 |
#define STATUS_PROGRAM_DATA 2 |
#define STATUS_SERVICE_DATA 4 |
int display_mrtg_values | ( | void | ) |
int display_stats | ( | void | ) |
void get_time_breakdown | ( | unsigned | long, | |
int * | , | |||
int * | , | |||
int * | , | |||
int * | ||||
) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
int read_config_file | ( | void | ) |
int read_icingastats_file | ( | void | ) |
int read_status_file | ( | void | ) |
void strip | ( | char * | ) |
int active_host_checks = 0 |
int active_host_checks_last_15min = 0 |
int active_host_checks_last_1min = 0 |
int active_host_checks_last_5min = 0 |
int active_hosts_checked_last_15min = 0 |
int active_hosts_checked_last_1hour = 0 |
int active_hosts_checked_last_1min = 0 |
int active_hosts_checked_last_5min = 0 |
int active_service_checks = 0 |
int active_service_checks_last_15min = 0 |
int active_service_checks_last_1min = 0 |
int active_service_checks_last_5min = 0 |
double average_active_host_execution_time = 0.0 |
double average_active_host_latency = 0.0 |
double average_active_host_state_change = 0.0 |
double average_active_service_execution_time = 0.0 |
double average_active_service_latency = 0.0 |
double average_active_service_state_change = 0.0 |
double average_host_state_change = 0.0 |
double average_passive_host_latency = 0.0 |
double average_passive_host_state_change = 0.0 |
double average_passive_service_latency = 0.0 |
double average_passive_service_state_change = 0.0 |
double average_service_state_change = 0.0 |
int external_commands_last_15min = 0 |
int external_commands_last_1min = 0 |
int external_commands_last_5min = 0 |
int have_max_active_host_execution_time = FALSE |
int have_max_active_host_latency = FALSE |
int have_max_active_host_state_change = FALSE |
int have_max_active_service_execution_time = FALSE |
int have_max_active_service_latency = FALSE |
int have_max_active_service_state_change = FALSE |
int have_max_host_state_change = FALSE |
int have_max_passive_host_latency = FALSE |
int have_max_passive_host_state_change = FALSE |
int have_max_passive_service_latency = FALSE |
int have_max_passive_service_state_change = FALSE |
int have_max_service_state_change = FALSE |
int have_min_active_host_execution_time = FALSE |
int have_min_active_host_latency = FALSE |
int have_min_active_host_state_change = FALSE |
int have_min_active_service_execution_time = FALSE |
int have_min_active_service_latency = FALSE |
int have_min_active_service_state_change = FALSE |
int have_min_host_state_change = FALSE |
int have_min_passive_host_latency = FALSE |
int have_min_passive_host_state_change = FALSE |
int have_min_passive_service_latency = FALSE |
int have_min_passive_service_state_change = FALSE |
int have_min_service_state_change = FALSE |
int hosts_checked = 0 |
int hosts_down = 0 |
int hosts_flapping = 0 |
int hosts_in_downtime = 0 |
int hosts_scheduled = 0 |
int hosts_unreachable = 0 |
int hosts_up = 0 |
char* icingastats_file = NULL |
char* main_config_file = NULL |
double max_active_host_execution_time = 0.0 |
double max_active_host_latency = 0.0 |
double max_active_host_state_change = 0.0 |
double max_active_service_execution_time = 0.0 |
double max_active_service_latency = 0.0 |
double max_active_service_state_change = 0.0 |
double max_host_state_change = 0.0 |
double max_passive_host_latency = 0.0 |
double max_passive_host_state_change = 0.0 |
double max_passive_service_latency = 0.0 |
double max_passive_service_state_change = 0.0 |
double max_service_state_change = 0.0 |
double min_active_host_execution_time = 0.0 |
double min_active_host_latency = 0.0 |
double min_active_host_state_change = 0.0 |
double min_active_service_execution_time = 0.0 |
double min_active_service_latency = 0.0 |
double min_active_service_state_change = 0.0 |
double min_host_state_change = 0.0 |
double min_passive_host_latency = 0.0 |
double min_passive_host_state_change = 0.0 |
double min_passive_service_latency = 0.0 |
double min_passive_service_state_change = 0.0 |
double min_service_state_change = 0.0 |
char* mrtg_delimiter = "\n" |
int mrtg_mode = FALSE |
char* mrtg_variables = NULL |
unsigned long nagios_pid = 0L |
int parallel_host_checks_last_15min = 0 |
int parallel_host_checks_last_1min = 0 |
int parallel_host_checks_last_5min = 0 |
int passive_host_checks = 0 |
int passive_host_checks_last_15min = 0 |
int passive_host_checks_last_1min = 0 |
int passive_host_checks_last_5min = 0 |
int passive_hosts_checked_last_15min = 0 |
int passive_hosts_checked_last_1hour = 0 |
int passive_hosts_checked_last_1min = 0 |
int passive_hosts_checked_last_5min = 0 |
int passive_service_checks = 0 |
int passive_service_checks_last_1min = 0 |
int passive_service_checks_last_5min = 0 |
time_t program_start = 0L |
int serial_host_checks_last_15min = 0 |
int serial_host_checks_last_1min = 0 |
int serial_host_checks_last_5min = 0 |
int services_checked = 0 |
int services_critical = 0 |
int services_flapping = 0 |
int services_in_downtime = 0 |
int services_ok = 0 |
int services_scheduled = 0 |
int services_unknown = 0 |
int services_warning = 0 |
time_t status_creation_date = 0L |
char* status_file = NULL |
int status_host_entries = 0 |
int status_service_entries = 0 |
char* status_version = NULL |