diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 1961229..e931b51 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -56,8 +56,8 @@ jobs: - name: Configure run: | ./autogen.sh - ./configure --with-generic --with-loadavg --with-filenr \ - --with-meminfo --enable-examples + ./configure --with-generic --with-loadavg --with-filenr --with-fsmon \ + --with-meminfo --enable-examples --enable-compat - name: Build run: | export PATH=`pwd`/coverity/bin:$PATH diff --git a/README.md b/README.md index f2309c2..5f29ab0 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ aspects of the system, such as: - Load average - Memory leaks - File descriptor leaks +- File system usage - Process live locks - Reset counter, e.g., for snmpEngineBoots (RFC 2574) - Generic script diff --git a/configure.ac b/configure.ac index f22e2b0..8660585 100644 --- a/configure.ac +++ b/configure.ac @@ -64,6 +64,10 @@ AC_ARG_WITH([filenr], AS_HELP_STRING([--with-filenr[=SEC]], [Enable file descriptor leak monitor, poll: 300 sec]), [with_filenr=$withval], [with_filenr=no]) +AC_ARG_WITH([fsmon], + AS_HELP_STRING([--with-fsmon[=SEC]], [Enable file system monitor, poll: 300 sec]), + [with_fsmon=$withval], [with_fsmon=no]) + AC_ARG_WITH([meminfo], [AS_HELP_STRING([--with-meminfo[=SEC]], [Enable memory leak monitor, poll: 300 sec])], [with_meminfo=$withval], [with_meminfo=no]) @@ -83,6 +87,10 @@ AS_IF([test "x$with_filenr" != "xno"], [ AS_IF([test "x$with_filenr" = "xyes"], [with_filenr=300]) AC_DEFINE_UNQUOTED(FILENR_PLUGIN, $with_filenr, [Enable file descriptor leak monitor])]) +AS_IF([test "x$with_fsmon" != "xno"], [ + AS_IF([test "x$with_fsmon" = "xyes"], [with_fsmon=300]) + AC_DEFINE_UNQUOTED(FSMON_PLUGIN, $with_fsmon, [Enable file system monitor])]) + AS_IF([test "x$with_meminfo" != "xno"], [ AS_IF([test "x$with_meminfo" = "xyes"], [with_meminfo=300]) AC_DEFINE_UNQUOTED(MEMINFO_PLUGIN, $with_meminfo, [Enable memory leak monitor])]) @@ -108,11 +116,12 @@ AS_IF([test "x$with_systemd" = "xyes" -o "x$with_systemd" = "xauto"], [ AS_IF([test "x$with_systemd" != "xno"], [AC_SUBST([systemddir], [$with_systemd])]) -AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemd" != "xno"]) -AM_CONDITIONAL(LOADAVG_PLUGIN, [test "x$with_loadavg" != "xno"]) -AM_CONDITIONAL(FILENR_PLUGIN, [test "x$with_filenr" != "xno"]) -AM_CONDITIONAL(MEMINFO_PLUGIN, [test "x$with_meminfo" != "xno"]) -AM_CONDITIONAL(GENERIC_PLUGIN, [test "x$with_generic" != "xno"]) +AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemd" != "xno"]) +AM_CONDITIONAL(LOADAVG_PLUGIN, [test "x$with_loadavg" != "xno"]) +AM_CONDITIONAL(FILENR_PLUGIN, [test "x$with_filenr" != "xno"]) +AM_CONDITIONAL(FSMON_PLUGIN, [test "x$with_fsmon" != "xno"]) +AM_CONDITIONAL(MEMINFO_PLUGIN, [test "x$with_meminfo" != "xno"]) +AM_CONDITIONAL(GENERIC_PLUGIN, [test "x$with_generic" != "xno"]) AM_CONDITIONAL(ENABLE_EXAMPLES, [test "$enable_examples" = yes]) # Expand $sbindir early, into $SBINDIR, for systemd unit file @@ -159,6 +168,7 @@ cat <