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
483 B

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