cgi/statuswrl.c File Reference

#include "../include/config.h"
#include "../include/common.h"
#include "../include/objects.h"
#include "../include/statusdata.h"
#include "../include/cgiutils.h"
#include "../include/getcgi.h"
#include "../include/cgiauth.h"

Defines

#define ICINGA_VRML_IMAGE   "icingavrml.png"
#define DEFAULT_NODE_WIDTH   0.5
#define DEFAULT_HORIZONTAL_SPACING   1.0
#define DEFAULT_VERTICAL_SPACING   1.0
#define DEFAULT_NODE_HEIGHT   0.5
#define DEFAULT_NODE_HSPACING   1.0
#define DEFAULT_NODE_VSPACING   1.0
#define CIRCULAR_DRAWING_RADIUS   5.0
#define LAYOUT_USER_SUPPLIED   0
#define LAYOUT_COLLAPSED_TREE   2
#define LAYOUT_BALANCED_TREE   3
#define LAYOUT_CIRCULAR   4

Functions

void calculate_host_coords (void)
void calculate_world_bounds (void)
void display_world (void)
void write_global_vrml_data (void)
void draw_process_icon (void)
void draw_host (host *)
void draw_host_links (void)
void draw_host_link (host *, double, double, double, double, double, double)
int process_cgivars (void)
int number_of_host_layer_members (host *, int)
int max_child_host_layer_members (host *)
int host_child_depth_separation (host *, host *)
int max_child_host_drawing_width (host *)
void calculate_balanced_tree_coords (host *, int, int)
void calculate_circular_coords (void)
void calculate_circular_layer_coords (host *, double, double, int, int)
int main (int argc, char **argv)

Variables

char main_config_file [MAX_FILENAME_LENGTH]
char url_html_path [MAX_FILENAME_LENGTH]
char url_images_path [MAX_FILENAME_LENGTH]
char url_logo_images_path [MAX_FILENAME_LENGTH]
char url_js_path [MAX_FILENAME_LENGTH]
char * statuswrl_include
hosthost_list
serviceservice_list
int default_statuswrl_layout_method
authdata current_authdata
float link_radius = 0.016
float floor_width = 0.0
float floor_depth = 0.0
double min_z_coord = 0.0
double min_x_coord = 0.0
double min_y_coord = 0.0
double max_z_coord = 0.0
double max_x_coord = 0.0
double max_y_coord = 0.0
double max_world_size = 0.0
double nagios_icon_x = 0.0
double nagios_icon_y = 0.0
int draw_nagios_icon = FALSE
double custom_viewpoint_x = 0.0
double custom_viewpoint_y = 0.0
double custom_viewpoint_z = 0.0
int custom_viewpoint = FALSE
float vertical_spacing = DEFAULT_VERTICAL_SPACING
float horizontal_spacing = DEFAULT_HORIZONTAL_SPACING
float node_width = DEFAULT_NODE_WIDTH
float node_height = DEFAULT_NODE_WIDTH
int use_textures = TRUE
int use_text = TRUE
int use_links = TRUE
int layout_method = LAYOUT_USER_SUPPLIED
int coordinates_were_specified = FALSE
int daemon_check
int display_type = DISPLAY_HOSTS
int show_all_hosts = TRUE
int show_all_hostgroups = TRUE
int show_all_servicegroups = TRUE
char * host_name = "all"
char * host_filter = NULL
char * hostgroup_name = NULL
char * servicegroup_name = NULL
char * service_desc = NULL
char * service_filter = NULL
int CGI_ID = STATUSWRL_CGI_ID

Define Documentation

#define CIRCULAR_DRAWING_RADIUS   5.0

#define DEFAULT_HORIZONTAL_SPACING   1.0

#define DEFAULT_NODE_HEIGHT   0.5

#define DEFAULT_NODE_HSPACING   1.0

#define DEFAULT_NODE_VSPACING   1.0

#define DEFAULT_NODE_WIDTH   0.5

#define DEFAULT_VERTICAL_SPACING   1.0

#define ICINGA_VRML_IMAGE   "icingavrml.png"

#define LAYOUT_BALANCED_TREE   3

#define LAYOUT_CIRCULAR   4

#define LAYOUT_COLLAPSED_TREE   2

#define LAYOUT_USER_SUPPLIED   0


Function Documentation

void calculate_balanced_tree_coords ( host ,
int  ,
int   
)

void calculate_circular_coords ( void   ) 

void calculate_circular_layer_coords ( host ,
double  ,
double  ,
int  ,
int   
)

void calculate_host_coords ( void   ) 

void calculate_world_bounds ( void   ) 

void display_world ( void   ) 

void draw_host ( host  ) 

void draw_host_link ( host ,
double  ,
double  ,
double  ,
double  ,
double  ,
double   
)

void draw_host_links ( void   ) 

void draw_process_icon ( void   ) 

int host_child_depth_separation ( host ,
host  
)

int main ( int  argc,
char **  argv 
)

int max_child_host_drawing_width ( host  ) 

int max_child_host_layer_members ( host  ) 

int number_of_host_layer_members ( host ,
int   
)

int process_cgivars ( void   ) 

void write_global_vrml_data ( void   ) 


Variable Documentation

int CGI_ID = STATUSWRL_CGI_ID

int coordinates_were_specified = FALSE

authdata current_authdata

int custom_viewpoint = FALSE

double custom_viewpoint_x = 0.0

double custom_viewpoint_y = 0.0

double custom_viewpoint_z = 0.0

int daemon_check

int default_statuswrl_layout_method

int display_type = DISPLAY_HOSTS

int draw_nagios_icon = FALSE

float floor_depth = 0.0

float floor_width = 0.0

float horizontal_spacing = DEFAULT_HORIZONTAL_SPACING

char* host_filter = NULL

host* host_list

char* host_name = "all"

char* hostgroup_name = NULL

int layout_method = LAYOUT_USER_SUPPLIED

float link_radius = 0.016

char main_config_file[MAX_FILENAME_LENGTH]

double max_world_size = 0.0

double max_x_coord = 0.0

double max_y_coord = 0.0

double max_z_coord = 0.0

double min_x_coord = 0.0

double min_y_coord = 0.0

double min_z_coord = 0.0

double nagios_icon_x = 0.0

double nagios_icon_y = 0.0

float node_height = DEFAULT_NODE_WIDTH

float node_width = DEFAULT_NODE_WIDTH

char* service_desc = NULL

char* service_filter = NULL

service* service_list

char* servicegroup_name = NULL

int show_all_hostgroups = TRUE

int show_all_hosts = TRUE

int show_all_servicegroups = TRUE

char* statuswrl_include

char url_html_path[MAX_FILENAME_LENGTH]

char url_images_path[MAX_FILENAME_LENGTH]

char url_js_path[MAX_FILENAME_LENGTH]

char url_logo_images_path[MAX_FILENAME_LENGTH]

int use_links = TRUE

int use_text = TRUE

int use_textures = TRUE

float vertical_spacing = DEFAULT_VERTICAL_SPACING


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