1 #ifndef NETDATA_PLUGINS_D_H
2 #define NETDATA_PLUGINS_D_H 1
4 #define PLUGINSD_FILE_SUFFIX ".plugin"
5 #define PLUGINSD_FILE_SUFFIX_LEN strlen(PLUGINSD_FILE_SUFFIX)
6 #define PLUGINSD_CMD_MAX (FILENAME_MAX*2)
7 #define PLUGINSD_LINE_MAX 1024
10 char id[CONFIG_MAX_NAME+1]; // config node id
12 char filename[FILENAME_MAX+1]; // just the filename
13 char fullfilename[FILENAME_MAX+1]; // with path
14 char cmd[PLUGINSD_CMD_MAX+1]; // the command that is executes
19 size_t successful_collections; // the number of times we have seen
20 // values collected from this plugin
22 size_t serial_failures; // the number of times the plugin started
23 // without collecting values
25 int update_every; // the plugin default data collection frequency
26 volatile int obsolete; // do not touch this structure after setting this to 1
27 volatile int enabled; // if this is enabled or not
34 extern struct plugind *pluginsd_root;
36 extern void *pluginsd_main(void *ptr);
38 #endif /* NETDATA_PLUGINS_D_H */