1 #ifndef GMOND_CONFIG_H 2 #define GMOND_CONFIG_H 1 3 #include <stdlib.h> 4 #include <string.h> 5 6 /* autoconf me later */ 7 #define DEFAULT_GMOND_CONFIG_FILE SYSCONFDIR "/gmond.conf" 8 9 typedef struct 10 { 11 char *name; 12 char *owner; 13 char *latlong; 14 char *url; 15 char *location; 16 char *mcast_channel; 17 unsigned short mcast_port; 18 long int mcast_if_given; 19 char *mcast_if; 20 long int mcast_ttl; 21 long int mcast_threads; 22 unsigned short xml_port; 23 long int xml_threads; 24 char **trusted_hosts; 25 long int num_nodes; 26 long int num_custom_metrics; 27 long int mute; 28 long int deaf; 29 long int allow_extra_data; 30 long int debug_level; 31 long int no_setuid; 32 char *setuid; 33 long int no_gexec; 34 long int all_trusted; 35 long int host_dmax; 36 } gmond_config_t; 37 38 int print_ganglia_25_config( char *path ); 39 40 41 42 #endif 43