1 #ifndef CONFIG_H
2 #define CONFIG_H 1
3 #include <arpa/inet.h>
4 
5 #include <stdlib.h>
6 #include <string.h>
7 #include "llist.h"
8 
9 #define MAX_RRAS 32
10 typedef struct
11    {
12       char *gridname;
13       int xml_port;
14       int interactive_port;
15       int server_threads;
16       int umask;
17       llist_entry *trusted_hosts;
18       int unsummarized_sflow_vm_metrics;
19       llist_entry *unsummarized_metrics;
20       llist_entry *summarized_metrics;
21       int debug_level;
22       int should_setuid;
23       char *setuid_username;
24       char *rrd_rootdir;
25       char *rrdcached_addrstr;
26       struct sockaddr_in rrdcached_address;
27       char *carbon_server;
28       int carbon_port;
29       char *carbon_protocol;
30       int carbon_timeout;
31       char *memcached_parameters;
32       int memcached_include_cluster_in_key;
33       char *graphite_prefix;
34       char *graphite_path;
35       int scalable_mode;
36       int write_rrds;
37       int all_trusted;
38       int num_RRAs;
39       char *RRAs[MAX_RRAS];
40       char *riemann_server;
41       int riemann_port;
42       char *riemann_protocol;
43       char *riemann_attributes;
44       int case_sensitive_hostnames;
45       int shortest_step;
46 } gmetad_config_t;
47 
48 int get_gmetad_config(char *conffile);
49 
50 #endif
51