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.
 
 
 

31 lines
492 B

  1. #ifndef _PLUGINS_H_
  2. #define _PLUGINS_H_
  3. #include <time.h>
  4. #include "list.h"
  5. #include "logging.h"
  6. struct sammler_plugin {
  7. struct list_head list;
  8. const char *name;
  9. /* timing */
  10. unsigned int interval;
  11. time_t lastprobe;
  12. /* scratchpad memory */
  13. int bufsize;
  14. char *buffer;
  15. int (*init) (void);
  16. int (*fini) (void);
  17. int (*probe) (void);
  18. const char * (*get_ds) (int ds_id);
  19. };
  20. int plugin_init(void);
  21. struct sammler_plugin * plugin_lookup(const char *name);
  22. #endif /* _PLUGINS_H_ */