1 #ifndef GANGLIA_GEXEC_H
2 #define GANGLIA_GEXEC_H 1
3 
4 extern int gexec_errno;
5 
6 #define GEXEC_TIMEOUT 60
7 
8 #define GEXEC_HOST_STRING_LEN  256
9 struct gexec_host_t {
10   char ip[64];
11   char name[GEXEC_HOST_STRING_LEN];
12   char domain[GEXEC_HOST_STRING_LEN];
13   double load_one;
14   double load_five;
15   double load_fifteen;
16   double cpu_user;
17   double cpu_nice;
18   double cpu_system;
19   double cpu_idle;
20   double cpu_wio;
21   unsigned int proc_run;
22   unsigned int proc_total;
23   unsigned int cpu_num;
24   time_t last_reported;
25   int gexec_on;
26   int name_resolved;
27 };
28 typedef struct gexec_host_t gexec_host_t;
29 
30 typedef struct
31    {
32       char name[256];
33       time_t localtime;
34       unsigned int num_hosts;
35       void *hosts;
36       unsigned int num_gexec_hosts;
37       void *gexec_hosts;
38       unsigned int num_dead_hosts;
39       void *dead_hosts;
40 
41       /* Used internally */
42       int malloc_error;
43       gexec_host_t *host;
44       int host_up;
45       int start;
46    }
47 gexec_cluster_t;
48 
49 int gexec_cluster_free ( gexec_cluster_t *cluster );
50 int gexec_cluster (gexec_cluster_t *cluster, char *ip, unsigned short port);
51 
52 #endif
53