From: Andrew Bays Date: Wed, 18 Sep 2019 12:31:32 +0000 (-0400) Subject: Merge branch 'master' into connectivity X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e10ce37462d3002c296efe1b5b955a0a498d1f3b;p=collectd.git Merge branch 'master' into connectivity --- e10ce37462d3002c296efe1b5b955a0a498d1f3b diff --cc Makefile.am index e46d8dc5,5470b9b3..f8353d4c --- a/Makefile.am +++ b/Makefile.am @@@ -768,15 -768,12 +768,21 @@@ chrony_la_LDFLAGS = $(PLUGIN_LDFLAGS chrony_la_LIBADD = -lm endif + if BUILD_PLUGIN_CHECK_UPTIME + pkglib_LTLIBRARIES += check_uptime.la + check_uptime_la_SOURCES = src/check_uptime.c + check_uptime_la_LDFLAGS = $(PLUGIN_LDFLAGS) + endif + +if BUILD_PLUGIN_CONNECTIVITY +pkglib_LTLIBRARIES += connectivity.la +connectivity_la_SOURCES = src/connectivity.c +connectivity_la_CFLAGS = $(AM_CFLAGS) $(BUILD_WITH_LIBMNL_CFLAGS) +connectivity_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBYAJL_CPPFLAGS) +connectivity_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_LIBYAJL_LDFLAGS) +connectivity_la_LIBADD = $(BUILD_WITH_LIBYAJL_LIBS) $(BUILD_WITH_LIBMNL_LIBS) libignorelist.la +endif + if BUILD_PLUGIN_CONNTRACK pkglib_LTLIBRARIES += conntrack.la conntrack_la_SOURCES = src/conntrack.c diff --cc configure.ac index 3ff2189f,9ff6408f..c190784d --- a/configure.ac +++ b/configure.ac @@@ -6795,7 -6790,7 +6795,8 @@@ AC_PLUGIN([bind], [$plug AC_PLUGIN([ceph], [$plugin_ceph], [Ceph daemon statistics]) AC_PLUGIN([cgroups], [$plugin_cgroups], [CGroups CPU usage accounting]) AC_PLUGIN([chrony], [yes], [Chrony statistics]) + AC_PLUGIN([check_uptime], [yes], [Notify about uptime reset]) +AC_PLUGIN([connectivity], [$plugin_connectivity], [Network interface up/down events]) AC_PLUGIN([conntrack], [$plugin_conntrack], [nf_conntrack statistics]) AC_PLUGIN([contextswitch], [$plugin_contextswitch], [context switch statistics]) AC_PLUGIN([cpu], [$plugin_cpu], [CPU usage statistics]) @@@ -7227,7 -7222,7 +7228,8 @@@ AC_MSG_RESULT([ bind . . . . . . . AC_MSG_RESULT([ ceph . . . . . . . . $enable_ceph]) AC_MSG_RESULT([ cgroups . . . . . . . $enable_cgroups]) AC_MSG_RESULT([ chrony. . . . . . . . $enable_chrony]) + AC_MSG_RESULT([ check_uptime. . . . . $enable_check_uptime]) +AC_MSG_RESULT([ connectivity. . . . . $enable_connectivity]) AC_MSG_RESULT([ conntrack . . . . . . $enable_conntrack]) AC_MSG_RESULT([ contextswitch . . . . $enable_contextswitch]) AC_MSG_RESULT([ cpu . . . . . . . . . $enable_cpu]) diff --cc src/collectd.conf.in index 659c098b,f8c48080..a194b475 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@@ -102,7 -102,7 +102,8 @@@ #@BUILD_PLUGIN_CEPH_TRUE@LoadPlugin ceph #@BUILD_PLUGIN_CGROUPS_TRUE@LoadPlugin cgroups #@BUILD_PLUGIN_CHRONY_TRUE@LoadPlugin chrony + #@BUILD_PLUGIN_CHECK_UPTIME_TRUE@LoadPlugin check_uptime +#@BUILD_PLUGIN_CONNECTIVITY_TRUE@LoadPlugin connectivity #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu