update buildinfo (#19506)
* update buildinfo for systemd-journal and windows pluginsd * add network-viewer plugin
Costa Tsaousis committed
Jan 28, 2025 at 12:27 UTC
42a45b36dd3c8aa6996486e4355f70b136a922d7
2 files changed
+46
packaging/cmake/config.cmake.h.in
+2
@@ -139,6 +139,8 @@
139
#cmakedefine ENABLE_PLUGIN_CUPS
140
#cmakedefine ENABLE_PLUGIN_CGROUP_NETWORK
141
#cmakedefine ENABLE_PLUGIN_EBPF
142
+#cmakedefine ENABLE_PLUGIN_SYSTEMD_JOURNAL
143
+#cmakedefine ENABLE_PLUGIN_NETWORK_VIEWER
144
145
// enabled sentry
146
src/daemon/buildinfo.c
+44
@@ -86,6 +86,7 @@ typedef enum __attribute__((packed)) {
86
BIB_PLUGIN_LINUX_DISKSPACE,
87
BIB_PLUGIN_FREEBSD,
88
BIB_PLUGIN_MACOS,
89
+ BIB_PLUGIN_WINDOWS,
90
BIB_PLUGIN_STATSD,
91
BIB_PLUGIN_TIMEX,
92
BIB_PLUGIN_IDLEJITTER,
@@ -94,6 +95,9 @@ typedef enum __attribute__((packed)) {
95
BIB_PLUGIN_CUPS,
96
BIB_PLUGIN_EBPF,
97
BIB_PLUGIN_FREEIPMI,
98
+ BIB_PLUGIN_NETWORK_VIEWER,
99
+ BIB_PLUGIN_SYSTEMD_JOURNAL,
100
+ BIB_PLUGIN_WINDOWS_EVENTS,
101
BIB_PLUGIN_NFACCT,
102
BIB_PLUGIN_PERF,
103
BIB_PLUGIN_SLABINFO,
@@ -780,6 +784,14 @@ static struct {
784
.json = "macos",
785
.value = NULL,
786
},
787
+ [BIB_PLUGIN_WINDOWS] = {
788
+ .category = BIC_PLUGINS,
789
+ .type = BIT_BOOLEAN,
790
+ .analytics = NULL,
791
+ .print = "windows (monitor Windows systems)",
792
+ .json = "windows",
793
+ .value = NULL,
794
+ },
795
[BIB_PLUGIN_STATSD] = {
796
.category = BIC_PLUGINS,
797
.type = BIT_BOOLEAN,
@@ -844,6 +856,30 @@ static struct {
856
.json = "freeipmi",
857
.value = NULL,
858
},
859
+ [BIB_PLUGIN_NETWORK_VIEWER] = {
860
+ .category = BIC_PLUGINS,
861
+ .type = BIT_BOOLEAN,
862
+ .analytics = "NETWORK-VIEWER",
863
+ .print = "network-viewer (monitor TCP/UDP IPv4/6 sockets)",
864
+ .json = "network-viewer",
865
+ .value = NULL,
866
+ },
867
+ [BIB_PLUGIN_SYSTEMD_JOURNAL] = {
868
+ .category = BIC_PLUGINS,
869
+ .type = BIT_BOOLEAN,
870
+ .analytics = "SYSTEMD-JOURNAL",
871
+ .print = "systemd-journal (monitor journal logs)",
872
+ .json = "systemd-journal",
873
+ .value = NULL,
874
+ },
875
+ [BIB_PLUGIN_WINDOWS_EVENTS] = {
876
+ .category = BIC_PLUGINS,
877
+ .type = BIT_BOOLEAN,
878
+ .analytics = "WINDOWS-EVENTS",
879
+ .print = "windows-events (monitor Windows events)",
880
+ .json = "windows-events",
881
+ .value = NULL,
882
+ },
883
[BIB_PLUGIN_NFACCT] = {
884
.category = BIC_PLUGINS,
885
.type = BIT_BOOLEAN,
@@ -1069,6 +1105,8 @@ __attribute__((constructor)) void initialize_build_info(void) {
1105
build_info_set_status(BIB_PLUGIN_MACOS, true);
1106
#endif
1107
#ifdef OS_WINDOWS
1108
+ build_info_set_status(BIB_PLUGIN_WINDOWS, true);
1109
+ build_info_set_status(BIB_PLUGIN_WINDOWS_EVENTS, true);
1110
build_info_set_status(BIB_FEATURE_BUILT_FOR, true);
1111
#if defined(__CYGWIN__) && defined(__MSYS__)
1112
build_info_set_value(BIB_FEATURE_BUILT_FOR, "Windows (MSYS)");
@@ -1210,6 +1248,12 @@ __attribute__((constructor)) void initialize_build_info(void) {
1248
#ifdef ENABLE_PLUGIN_FREEIPMI
1249
build_info_set_status(BIB_PLUGIN_FREEIPMI, true);
1250
#endif
1251
+#ifdef ENABLE_PLUGIN_SYSTEMD_JOURNAL
1252
+ build_info_set_status(BIB_PLUGIN_SYSTEMD_JOURNAL, true);
1253
+#endif
1254
+#ifdef ENABLE_PLUGIN_NETWORK_VIEWER
1255
+ build_info_set_status(BIB_PLUGIN_NETWORK_VIEWER, true);
1256
+#endif
1257
#ifdef ENABLE_PLUGIN_NFACCT
1258
build_info_set_status(BIB_PLUGIN_NFACCT, true);
1259
#endif