base/icingastats.c File Reference

#include "../include/config.h"
#include "../include/common.h"
#include "../include/icinga.h"
#include "../include/locations.h"

Defines

#define STATUS_NO_DATA   0
#define STATUS_INFO_DATA   1
#define STATUS_PROGRAM_DATA   2
#define STATUS_HOST_DATA   3
#define STATUS_SERVICE_DATA   4

Functions

int display_mrtg_values (void)
int display_stats (void)
int read_config_file (void)
int read_status_file (void)
void strip (char *)
void get_time_breakdown (unsigned long, int *, int *, int *, int *)
int read_icingastats_file (void)
int main (int argc, char **argv)

Variables

char * main_config_file = NULL
char * status_file = NULL
char * icingastats_file = NULL
char * mrtg_variables = NULL
char * mrtg_delimiter = "\n"
int mrtg_mode = FALSE
time_t status_creation_date = 0L
char * status_version = NULL
time_t program_start = 0L
int status_service_entries = 0
int status_host_entries = 0
unsigned long nagios_pid = 0L
double min_service_state_change = 0.0
int have_min_service_state_change = FALSE
double max_service_state_change = 0.0
int have_max_service_state_change = FALSE
double average_service_state_change = 0.0
double min_active_service_state_change = 0.0
int have_min_active_service_state_change = FALSE
double max_active_service_state_change = 0.0
int have_max_active_service_state_change = FALSE
double average_active_service_state_change = 0.0
double min_active_service_latency = 0.0
int have_min_active_service_latency = FALSE
double max_active_service_latency = 0.0
int have_max_active_service_latency = FALSE
double average_active_service_latency = 0.0
double min_active_service_execution_time = 0.0
int have_min_active_service_execution_time = FALSE
double max_active_service_execution_time = 0.0
int have_max_active_service_execution_time = FALSE
double average_active_service_execution_time = 0.0
double min_passive_service_state_change = 0.0
int have_min_passive_service_state_change = FALSE
double max_passive_service_state_change = 0.0
int have_max_passive_service_state_change = FALSE
double average_passive_service_state_change = 0.0
double min_passive_service_latency = 0.0
int have_min_passive_service_latency = FALSE
double max_passive_service_latency = 0.0
int have_max_passive_service_latency = FALSE
double average_passive_service_latency = 0.0
int have_min_host_state_change = FALSE
double min_host_state_change = 0.0
int have_max_host_state_change = FALSE
double max_host_state_change = 0.0
double average_host_state_change = 0.0
int have_min_active_host_state_change = FALSE
double min_active_host_state_change = 0.0
int have_max_active_host_state_change = FALSE
double max_active_host_state_change = 0.0
double average_active_host_state_change = 0.0
int have_min_active_host_latency = FALSE
double min_active_host_latency = 0.0
int have_max_active_host_latency = FALSE
double max_active_host_latency = 0.0
double average_active_host_latency = 0.0
int have_min_active_host_execution_time = FALSE
double min_active_host_execution_time = 0.0
int have_max_active_host_execution_time = FALSE
double max_active_host_execution_time = 0.0
double average_active_host_execution_time = 0.0
int have_min_passive_host_latency = FALSE
double min_passive_host_latency = 0.0
int have_max_passive_host_latency = FALSE
double max_passive_host_latency = 0.0
double average_passive_host_latency = 0.0
double min_passive_host_state_change = 0.0
int have_min_passive_host_state_change = FALSE
double max_passive_host_state_change = 0.0
int have_max_passive_host_state_change = FALSE
double average_passive_host_state_change = 0.0
int passive_service_checks = 0
int active_service_checks = 0
int services_ok = 0
int services_warning = 0
int services_unknown = 0
int services_critical = 0
int services_flapping = 0
int services_in_downtime = 0
int services_checked = 0
int services_scheduled = 0
int passive_host_checks = 0
int active_host_checks = 0
int hosts_up = 0
int hosts_down = 0
int hosts_unreachable = 0
int hosts_flapping = 0
int hosts_in_downtime = 0
int hosts_checked = 0
int hosts_scheduled = 0
int passive_services_checked_last_1min = 0
int passive_services_checked_last_5min = 0
int passive_services_checked_last_15min = 0
int passive_services_checked_last_1hour = 0
int active_services_checked_last_1min = 0
int active_services_checked_last_5min = 0
int active_services_checked_last_15min = 0
int active_services_checked_last_1hour = 0
int passive_hosts_checked_last_1min = 0
int passive_hosts_checked_last_5min = 0
int passive_hosts_checked_last_15min = 0
int passive_hosts_checked_last_1hour = 0
int active_hosts_checked_last_1min = 0
int active_hosts_checked_last_5min = 0
int active_hosts_checked_last_15min = 0
int active_hosts_checked_last_1hour = 0
int active_host_checks_last_1min = 0
int active_host_checks_last_5min = 0
int active_host_checks_last_15min = 0
int active_ondemand_host_checks_last_1min = 0
int active_ondemand_host_checks_last_5min = 0
int active_ondemand_host_checks_last_15min = 0
int active_scheduled_host_checks_last_1min = 0
int active_scheduled_host_checks_last_5min = 0
int active_scheduled_host_checks_last_15min = 0
int passive_host_checks_last_1min = 0
int passive_host_checks_last_5min = 0
int passive_host_checks_last_15min = 0
int active_cached_host_checks_last_1min = 0
int active_cached_host_checks_last_5min = 0
int active_cached_host_checks_last_15min = 0
int parallel_host_checks_last_1min = 0
int parallel_host_checks_last_5min = 0
int parallel_host_checks_last_15min = 0
int serial_host_checks_last_1min = 0
int serial_host_checks_last_5min = 0
int serial_host_checks_last_15min = 0
int active_service_checks_last_1min = 0
int active_service_checks_last_5min = 0
int active_service_checks_last_15min = 0
int active_ondemand_service_checks_last_1min = 0
int active_ondemand_service_checks_last_5min = 0
int active_ondemand_service_checks_last_15min = 0
int active_scheduled_service_checks_last_1min = 0
int active_scheduled_service_checks_last_5min = 0
int active_scheduled_service_checks_last_15min = 0
int passive_service_checks_last_1min = 0
int passive_service_checks_last_5min = 0
int passive_service_checks_last_15min = 0
int active_cached_service_checks_last_1min = 0
int active_cached_service_checks_last_5min = 0
int active_cached_service_checks_last_15min = 0
int external_commands_last_1min = 0
int external_commands_last_5min = 0
int external_commands_last_15min = 0
int total_external_command_buffer_slots = 0
int used_external_command_buffer_slots = 0
int high_external_command_buffer_slots = 0

Define Documentation

#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


Function Documentation

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 *   ) 


Variable Documentation

int active_cached_host_checks_last_15min = 0

int active_cached_host_checks_last_1min = 0

int active_cached_host_checks_last_5min = 0

int active_cached_service_checks_last_15min = 0

int active_cached_service_checks_last_1min = 0

int active_cached_service_checks_last_5min = 0

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_ondemand_host_checks_last_15min = 0

int active_ondemand_host_checks_last_1min = 0

int active_ondemand_host_checks_last_5min = 0

int active_ondemand_service_checks_last_15min = 0

int active_ondemand_service_checks_last_1min = 0

int active_ondemand_service_checks_last_5min = 0

int active_scheduled_host_checks_last_15min = 0

int active_scheduled_host_checks_last_1min = 0

int active_scheduled_host_checks_last_5min = 0

int active_scheduled_service_checks_last_15min = 0

int active_scheduled_service_checks_last_1min = 0

int active_scheduled_service_checks_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

int active_services_checked_last_15min = 0

int active_services_checked_last_1hour = 0

int active_services_checked_last_1min = 0

int active_services_checked_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 high_external_command_buffer_slots = 0

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_15min = 0

int passive_service_checks_last_1min = 0

int passive_service_checks_last_5min = 0

int passive_services_checked_last_15min = 0

int passive_services_checked_last_1hour = 0

int passive_services_checked_last_1min = 0

int passive_services_checked_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

int total_external_command_buffer_slots = 0

int used_external_command_buffer_slots = 0


Generated on Wed Mar 30 17:22:22 2011 for icinga-core by  doxygen 1.4.7