![]() |
Icinga-core 1.4.0
next gen monitoring
|
#include "../include/config.h"
#include "../include/common.h"
#include "../include/icinga.h"
#include "../include/locations.h"
#include "../include/statsprofiler.h"
Go to the source code of this file.
#define STATUS_HOST_DATA 3 |
Definition at line 42 of file icingastats.c.
#define STATUS_INFO_DATA 1 |
Definition at line 40 of file icingastats.c.
#define STATUS_NO_DATA 0 |
Definition at line 39 of file icingastats.c.
#define STATUS_PROGRAM_DATA 2 |
Definition at line 41 of file icingastats.c.
#define STATUS_SERVICE_DATA 4 |
Definition at line 43 of file icingastats.c.
int display_mrtg_values | ( | void | ) |
Definition at line 489 of file icingastats.c.
int display_stats | ( | void | ) |
Definition at line 823 of file icingastats.c.
void get_time_breakdown | ( | unsigned long | raw_time, |
int * | days, | ||
int * | hours, | ||
int * | minutes, | ||
int * | seconds | ||
) |
Definition at line 1830 of file icingastats.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 224 of file icingastats.c.
int read_config_file | ( | void | ) |
Definition at line 925 of file icingastats.c.
int read_icingastats_file | ( | void | ) |
Definition at line 1456 of file icingastats.c.
int read_status_file | ( | void | ) |
Definition at line 964 of file icingastats.c.
void strip | ( | char * | buffer | ) |
Definition at line 1793 of file icingastats.c.
Definition at line 178 of file icingastats.c.
Definition at line 176 of file icingastats.c.
Definition at line 177 of file icingastats.c.
Definition at line 200 of file icingastats.c.
Definition at line 198 of file icingastats.c.
Definition at line 199 of file icingastats.c.
int active_host_checks = 0 |
Definition at line 138 of file icingastats.c.
int active_host_checks_last_15min = 0 |
Definition at line 166 of file icingastats.c.
int active_host_checks_last_1min = 0 |
Definition at line 164 of file icingastats.c.
int active_host_checks_last_5min = 0 |
Definition at line 165 of file icingastats.c.
int active_hosts_checked_last_15min = 0 |
Definition at line 161 of file icingastats.c.
int active_hosts_checked_last_1hour = 0 |
Definition at line 162 of file icingastats.c.
int active_hosts_checked_last_1min = 0 |
Definition at line 159 of file icingastats.c.
int active_hosts_checked_last_5min = 0 |
Definition at line 160 of file icingastats.c.
Definition at line 169 of file icingastats.c.
Definition at line 167 of file icingastats.c.
Definition at line 168 of file icingastats.c.
Definition at line 191 of file icingastats.c.
Definition at line 189 of file icingastats.c.
Definition at line 190 of file icingastats.c.
Definition at line 172 of file icingastats.c.
Definition at line 170 of file icingastats.c.
Definition at line 171 of file icingastats.c.
Definition at line 194 of file icingastats.c.
Definition at line 192 of file icingastats.c.
Definition at line 193 of file icingastats.c.
int active_service_checks = 0 |
Definition at line 128 of file icingastats.c.
int active_service_checks_last_15min = 0 |
Definition at line 188 of file icingastats.c.
int active_service_checks_last_1min = 0 |
Definition at line 186 of file icingastats.c.
int active_service_checks_last_5min = 0 |
Definition at line 187 of file icingastats.c.
Definition at line 153 of file icingastats.c.
Definition at line 154 of file icingastats.c.
Definition at line 151 of file icingastats.c.
Definition at line 152 of file icingastats.c.
double average_active_host_execution_time = 0.0 |
Definition at line 115 of file icingastats.c.
double average_active_host_latency = 0.0 |
Definition at line 110 of file icingastats.c.
double average_active_host_state_change = 0.0 |
Definition at line 105 of file icingastats.c.
double average_active_service_execution_time = 0.0 |
Definition at line 84 of file icingastats.c.
double average_active_service_latency = 0.0 |
Definition at line 79 of file icingastats.c.
double average_active_service_state_change = 0.0 |
Definition at line 74 of file icingastats.c.
double average_host_state_change = 0.0 |
Definition at line 100 of file icingastats.c.
double average_passive_host_latency = 0.0 |
Definition at line 120 of file icingastats.c.
double average_passive_host_state_change = 0.0 |
Definition at line 125 of file icingastats.c.
double average_passive_service_latency = 0.0 |
Definition at line 94 of file icingastats.c.
double average_passive_service_state_change = 0.0 |
Definition at line 89 of file icingastats.c.
double average_service_state_change = 0.0 |
Definition at line 69 of file icingastats.c.
int event_profiling_enabled = 0 |
Definition at line 212 of file icingastats.c.
int external_commands_last_15min = 0 |
Definition at line 204 of file icingastats.c.
int external_commands_last_1min = 0 |
Definition at line 202 of file icingastats.c.
int external_commands_last_5min = 0 |
Definition at line 203 of file icingastats.c.
int have_max_active_host_execution_time = FALSE |
Definition at line 113 of file icingastats.c.
int have_max_active_host_latency = FALSE |
Definition at line 108 of file icingastats.c.
int have_max_active_host_state_change = FALSE |
Definition at line 103 of file icingastats.c.
int have_max_active_service_execution_time = FALSE |
Definition at line 83 of file icingastats.c.
int have_max_active_service_latency = FALSE |
Definition at line 78 of file icingastats.c.
int have_max_active_service_state_change = FALSE |
Definition at line 73 of file icingastats.c.
int have_max_host_state_change = FALSE |
Definition at line 98 of file icingastats.c.
int have_max_passive_host_latency = FALSE |
Definition at line 118 of file icingastats.c.
int have_max_passive_host_state_change = FALSE |
Definition at line 124 of file icingastats.c.
int have_max_passive_service_latency = FALSE |
Definition at line 93 of file icingastats.c.
int have_max_passive_service_state_change = FALSE |
Definition at line 88 of file icingastats.c.
int have_max_service_state_change = FALSE |
Definition at line 68 of file icingastats.c.
int have_min_active_host_execution_time = FALSE |
Definition at line 111 of file icingastats.c.
int have_min_active_host_latency = FALSE |
Definition at line 106 of file icingastats.c.
int have_min_active_host_state_change = FALSE |
Definition at line 101 of file icingastats.c.
int have_min_active_service_execution_time = FALSE |
Definition at line 81 of file icingastats.c.
int have_min_active_service_latency = FALSE |
Definition at line 76 of file icingastats.c.
int have_min_active_service_state_change = FALSE |
Definition at line 71 of file icingastats.c.
int have_min_host_state_change = FALSE |
Definition at line 96 of file icingastats.c.
int have_min_passive_host_latency = FALSE |
Definition at line 116 of file icingastats.c.
int have_min_passive_host_state_change = FALSE |
Definition at line 122 of file icingastats.c.
int have_min_passive_service_latency = FALSE |
Definition at line 91 of file icingastats.c.
int have_min_passive_service_state_change = FALSE |
Definition at line 86 of file icingastats.c.
int have_min_service_state_change = FALSE |
Definition at line 66 of file icingastats.c.
Definition at line 208 of file icingastats.c.
int hosts_checked = 0 |
Definition at line 144 of file icingastats.c.
int hosts_down = 0 |
Definition at line 140 of file icingastats.c.
int hosts_flapping = 0 |
Definition at line 142 of file icingastats.c.
int hosts_in_downtime = 0 |
Definition at line 143 of file icingastats.c.
int hosts_scheduled = 0 |
Definition at line 145 of file icingastats.c.
int hosts_unreachable = 0 |
Definition at line 141 of file icingastats.c.
int hosts_up = 0 |
Definition at line 139 of file icingastats.c.
char* icingastats_file = NULL |
Definition at line 52 of file icingastats.c.
char* main_config_file = NULL |
Definition at line 50 of file icingastats.c.
double max_active_host_execution_time = 0.0 |
Definition at line 114 of file icingastats.c.
double max_active_host_latency = 0.0 |
Definition at line 109 of file icingastats.c.
double max_active_host_state_change = 0.0 |
Definition at line 104 of file icingastats.c.
double max_active_service_execution_time = 0.0 |
Definition at line 82 of file icingastats.c.
double max_active_service_latency = 0.0 |
Definition at line 77 of file icingastats.c.
double max_active_service_state_change = 0.0 |
Definition at line 72 of file icingastats.c.
double max_host_state_change = 0.0 |
Definition at line 99 of file icingastats.c.
double max_passive_host_latency = 0.0 |
Definition at line 119 of file icingastats.c.
double max_passive_host_state_change = 0.0 |
Definition at line 123 of file icingastats.c.
double max_passive_service_latency = 0.0 |
Definition at line 92 of file icingastats.c.
double max_passive_service_state_change = 0.0 |
Definition at line 87 of file icingastats.c.
double max_service_state_change = 0.0 |
Definition at line 67 of file icingastats.c.
double min_active_host_execution_time = 0.0 |
Definition at line 112 of file icingastats.c.
double min_active_host_latency = 0.0 |
Definition at line 107 of file icingastats.c.
double min_active_host_state_change = 0.0 |
Definition at line 102 of file icingastats.c.
double min_active_service_execution_time = 0.0 |
Definition at line 80 of file icingastats.c.
double min_active_service_latency = 0.0 |
Definition at line 75 of file icingastats.c.
double min_active_service_state_change = 0.0 |
Definition at line 70 of file icingastats.c.
double min_host_state_change = 0.0 |
Definition at line 97 of file icingastats.c.
double min_passive_host_latency = 0.0 |
Definition at line 117 of file icingastats.c.
double min_passive_host_state_change = 0.0 |
Definition at line 121 of file icingastats.c.
double min_passive_service_latency = 0.0 |
Definition at line 90 of file icingastats.c.
double min_passive_service_state_change = 0.0 |
Definition at line 85 of file icingastats.c.
double min_service_state_change = 0.0 |
Definition at line 65 of file icingastats.c.
char* mrtg_delimiter = "\n" |
Definition at line 54 of file icingastats.c.
int mrtg_mode = FALSE |
Definition at line 56 of file icingastats.c.
char* mrtg_variables = NULL |
Definition at line 53 of file icingastats.c.
unsigned long nagios_pid = 0L |
Definition at line 63 of file icingastats.c.
int parallel_host_checks_last_15min = 0 |
Definition at line 181 of file icingastats.c.
int parallel_host_checks_last_1min = 0 |
Definition at line 179 of file icingastats.c.
int parallel_host_checks_last_5min = 0 |
Definition at line 180 of file icingastats.c.
int passive_host_checks = 0 |
Definition at line 137 of file icingastats.c.
int passive_host_checks_last_15min = 0 |
Definition at line 175 of file icingastats.c.
int passive_host_checks_last_1min = 0 |
Definition at line 173 of file icingastats.c.
int passive_host_checks_last_5min = 0 |
Definition at line 174 of file icingastats.c.
int passive_hosts_checked_last_15min = 0 |
Definition at line 157 of file icingastats.c.
int passive_hosts_checked_last_1hour = 0 |
Definition at line 158 of file icingastats.c.
int passive_hosts_checked_last_1min = 0 |
Definition at line 155 of file icingastats.c.
int passive_hosts_checked_last_5min = 0 |
Definition at line 156 of file icingastats.c.
int passive_service_checks = 0 |
Definition at line 127 of file icingastats.c.
Definition at line 197 of file icingastats.c.
int passive_service_checks_last_1min = 0 |
Definition at line 195 of file icingastats.c.
int passive_service_checks_last_5min = 0 |
Definition at line 196 of file icingastats.c.
Definition at line 149 of file icingastats.c.
Definition at line 150 of file icingastats.c.
Definition at line 147 of file icingastats.c.
Definition at line 148 of file icingastats.c.
profile_object* profiled_data = NULL |
Definition at line 47 of file icingastats.c.
time_t program_start = 0L |
Definition at line 60 of file icingastats.c.
int serial_host_checks_last_15min = 0 |
Definition at line 184 of file icingastats.c.
int serial_host_checks_last_1min = 0 |
Definition at line 182 of file icingastats.c.
int serial_host_checks_last_5min = 0 |
Definition at line 183 of file icingastats.c.
int services_checked = 0 |
Definition at line 135 of file icingastats.c.
int services_critical = 0 |
Definition at line 132 of file icingastats.c.
int services_flapping = 0 |
Definition at line 133 of file icingastats.c.
int services_in_downtime = 0 |
Definition at line 134 of file icingastats.c.
int services_ok = 0 |
Definition at line 129 of file icingastats.c.
int services_scheduled = 0 |
Definition at line 136 of file icingastats.c.
int services_unknown = 0 |
Definition at line 131 of file icingastats.c.
int services_warning = 0 |
Definition at line 130 of file icingastats.c.
time_t status_creation_date = 0L |
Definition at line 58 of file icingastats.c.
char* status_file = NULL |
Definition at line 51 of file icingastats.c.
int status_host_entries = 0 |
Definition at line 62 of file icingastats.c.
int status_service_entries = 0 |
Definition at line 61 of file icingastats.c.
char* status_version = NULL |
Definition at line 59 of file icingastats.c.
Definition at line 206 of file icingastats.c.
Definition at line 207 of file icingastats.c.