rrd based system stats
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
492 B

#ifndef _PLUGINS_H_
#define _PLUGINS_H_
#include <time.h>
#include "list.h"
#include "logging.h"
struct sammler_plugin {
struct list_head list;
const char *name;
/* timing */
unsigned int interval;
time_t lastprobe;
/* scratchpad memory */
int bufsize;
char *buffer;
int (*init) (void);
int (*fini) (void);
int (*probe) (void);
const char * (*get_ds) (int ds_id);
int plugin_init(void);
struct sammler_plugin * plugin_lookup(const char *name);
#endif /* _PLUGINS_H_ */