5 #ifndef NETDATA_PLUGINS_D_H
6 #define NETDATA_PLUGINS_D_H 1
8 #define PLUGINSD_FILE_SUFFIX ".plugin"
9 #define PLUGINSD_FILE_SUFFIX_LEN strlen(PLUGINSD_FILE_SUFFIX)
10 #define PLUGINSD_CMD_MAX (FILENAME_MAX*2)
11 #define PLUGINSD_LINE_MAX 1024
14 char id[CONFIG_MAX_NAME+1]; // config node id
16 char filename[FILENAME_MAX+1]; // just the filename
17 char fullfilename[FILENAME_MAX+1]; // with path
18 char cmd[PLUGINSD_CMD_MAX+1]; // the command that is executes
23 size_t successful_collections; // the number of times we have seen
24 // values collected from this plugin
26 size_t serial_failures; // the number of times the plugin started
27 // without collecting values
29 int update_every; // the plugin default data collection frequency
30 int obsolete; // do not touch this structure after setting this to 1
31 int enabled; // if this is enabled or not
38 extern struct plugind *pluginsd_root;
40 extern void *pluginsd_main(void *ptr);
42 #endif /* NETDATA_PLUGINS_D_H */