artdaq_ganglia_plugin  v1_02_13
send_gmetric.h
Go to the documentation of this file.
1 #ifndef SEND_GMETRIC_H
2 #define SEND_GMETRIC_H 1
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 
22 int init_gmetric(const char* conf);
23 
27 void destroy_gmetric();
28 
44 int send_gmetric(const char* name, const char* value, const char* type, const char* units,
45  const char* slope, int tmax, int dmax, const char* group, const char* cluster, const char* desc, const char* title);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif
int init_gmetric(const char *conf)
Initialize Ganglia.
Definition: send_gmetric.c:18
void destroy_gmetric()
Close connection to gmond.
Definition: send_gmetric.c:48
int send_gmetric(const char *name, const char *value, const char *type, const char *units, const char *slope, int tmax, int dmax, const char *group, const char *cluster, const char *desc, const char *title)
Send a metric to gmond.
Definition: send_gmetric.c:53