| Age | Commit message (Collapse) | Author | Files | Lines |
|
this will fix the build error on check_snmp when net-snmp-config is not available.
```
CC check_snmp-check_snmp.o
/bin/bash: line 1: net-snmp-config: command not found
In file included from check_snmp.d/check_snmp_helpers.h:3,
from check_snmp.c:42:
check_snmp.d/./config.h:16:10: fatal error: net-snmp/net-snmp-config.h: No such file or directory
16 | #include <net-snmp/net-snmp-config.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:3353: check_snmp-check_snmp.o] Error 1
make[3]: Leaving directory '/opt/projects/git/monitoring-plugins/plugins'
```
Signed-off-by: Sven Nierlein <sven@consol.de>
|
|
|
|
net-snmp uses the same pre processor name "USE_OPENSSL" as we do.
To avoid the conflict, this commit renames it on our side to
"MOPL_USE_OPENSSL".
"MOPL" (better "MoPl"?) stands for Monitoring Plugins.
|
|
This commits removes the detection of IPv6 availability.
The IPv6 code in the plugins is used unconditionally now.
|
|
|
|
On OpenBSD, crypt is named crypto. This diff is a portable version of a
patch residing in the OpenBSD ports since ages.
https://codeberg.org/OpenBSD/ports/src/commit/1f15238782c26deb728250cbf591f1ffcd10422f/net/monitoring-plugins/patches/patch-configure_ac
|
|
check_nt was used to connect NSclient++ on windows, both the method
and the target are pretty much dead.
Therefor check_nt gets removed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PATH_TO_SNMPGETNEXT is used unconditionally in plugins/check_snmp.c,
and the build will fail if it is left undefined (that is, if we are
building check_snmp but snmpgetnext was neither found on the user's
PATH or supplied manually).
To avoid this build failure, we now test for snmpgetnext inside the
case for snmpget, and skip check_snmp unless BOTH are found.
|
|
Not strictly required here, but the AS_IF macro is generally safer
because it handles (often unintentional) AC_REQUIRE calls.
|
|
|
|
Revert the bump to requiring Autoconf 2.71, as some of our CI images
don't offer that version yet. Keep the remaining changes though, as
they should be compatible with Autoconf 2.64.
|
|
Follow the suggestion made by the autoupdate(1) tool:
| All current systems provide time.h; it need not be checked for. Not
| all systems provide sys/time.h, but those that do, all allow you to
| include it and time.h simultaneously.
Therefore, include sys/time.h if available, and include time.h
unconditionally.
|
|
Apply all changes suggested by the autoupdate(1) tool.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Unfortunately there is very less coverage of the translations and
was not very much contribution recently this area.
On the other side, maintaing the po files consumes a significant effort.
For now we drop the translation files, but we can revert this change
anytime in the future.
|
|
|
|
|
|
Co-authored-by: waja <waja@users.noreply.github.com>
|
|
|
|
|
|
autoupdate tells me, that since C89 I can safely assume RETSIGTYPE
is void.
Therefore to simplify things I removed the corresponding configure.ac
line and replaced all mentions of RETSIGTYPE with void.
|
|
Prefer systemd-logind over utmp to get the number of logged in users.
utmp is not reliable for this (e.g. some terminals create utmp entries,
other not) and utmp is not Y2038 safe with glibc on Linux.
|
|
|
|
|
|
|
|
Replace egrep with grep -E to avoid the deprecation warnings
|
|
|
|
one of the first ps commands in the configure.ac is `axwo 'stat comm vsz rss user uid pid ppid args'` which
works on most modern linux systems (checked debian 10/11 and centos 7/8). But this test misses the etime
argument. Therefore `check_procs --metric=ELAPSED` does not work.
To fix this, we simply do the same test including etime before that one.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
|
|
|
|
|
|
- better use "ping -4" instead of "ping" if supported
|
|
|
|
|
|
|
|
substituting PICOHTTPPARSER_DIR only when curl gets build, leads
to different dist tarballs depending on wether libcurl was available
or not. This then breaks later builds from this tarball because of
the missing files.
|
|
|