11
0

137 Commits

Author SHA256 Message Date
3e6b871914 Accepting request 1266405 from server:monitoring
- Backport MTU checking support for fping, and v4/v6 handling improvements
  * 0001-Backport-fping-MTU-and-ipv4-6-handling-improvements.patch (forwarded request 1264789 from firstyear)

OBS-URL: https://build.opensuse.org/request/show/1266405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=35
2025-04-02 15:22:55 +00:00
928fa3db7e Accepting request 1250476 from server:monitoring
- update apparmor profiles:
  - check_load: allow to read /run/systemd/sessions/*
  - check_procs: allow to read /sys/devices/system/node/ (forwarded request 1244145 from oertel)

OBS-URL: https://build.opensuse.org/request/show/1250476
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=34
2025-03-06 13:49:03 +00:00
Ruediger Oertel
a6edd8cb54 - update apparmor profiles:
- check_load: allow to read /run/systemd/sessions/*
  - check_procs: allow to read /sys/devices/system/node/

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=125
2025-03-05 17:18:44 +00:00
3cfdf68871 Accepting request 1227828 from server:monitoring
- add patch monitoring-plugins-2.4.0-check_dbi-type_mismatch.patch
  to fix compilation with gcc-14
  passing argument 2 of ‘dbi_driver_open_r’ from incompatible pointer type 
- change mode to "manual" in service file (forwarded request 1227826 from oertel)

OBS-URL: https://build.opensuse.org/request/show/1227828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=33
2024-12-03 19:46:09 +00:00
Ruediger Oertel
6e6a59f53d - add patch monitoring-plugins-2.4.0-check_dbi-type_mismatch.patch
to fix compilation with gcc-14
  passing argument 2 of ‘dbi_driver_open_r’ from incompatible pointer type 
- change mode to "manual" in service file

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=124
2024-12-02 17:15:18 +00:00
Lars Vogdt
dd6cd0cb02 Accepting request 1194151 from home:lrupp:branches:server:monitoring
- update to 2.4.0
  General
  + Use C99 booleans @RincewindsHat
  + Improve negate plugin helptext @euniceremoquillo
  + Add new test function for percentage expressions @RincewindsHat
  Single Plugins
  + check_mailq: remove trailing whitespaces @sni
  + check_mailq: unify tabs/spaces @sni
  + check_oracle: Shellcheck fixes @RincewindsHat
  + check_ups: output ups.realpower if supported @sbraz
  + check_disk: add -n short option for --ignore-missing @sni
  + check_procs: Improve help text, mentioning excluded processes @shartge
  + check_procs: Generalise wording, remove mentioning of nrpe @shartge
  + check_curl: add haproxy protocol option @emriver
  + check_disk: increase alert precision @sni
  + check_ircd: IPv6 support @oxzi
  + check_nwstat: adds percentage used space
  + check_swap: Possibility to run check_swap without thresholds @Napsty
  + check_ups: additional alarm conditions @RincewindsHat
  + check_http/check_curl: added a --regex-state option to change the state of a regex check @andreasbaumann
  General Fixes
  + Fixes for -Wsign-compare @RincewindsHat
  + Fix logic in is_uint64_t to fix type-limit warning @RincewindsHat
  + Prevent -lcrypto from showing up in Makefile dependencies @EricFromCanada
  + Change irritating NULL assignment @RincewindsHat
  Single Plugin Fixes
  + check_dbi: Compiler warning for uninitialized variable @RincewindsHat
  + check_curl: Initialize pointer before usage @RincewindsHat
  + check_ntp: Initialize intermediate results in any case @RincewindsHat
  + check_tcp: Fixes an error with using the wrong type for a variable @RincewindsHat

OBS-URL: https://build.opensuse.org/request/show/1194151
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=123
2024-08-16 14:13:03 +00:00
2eaa000d0e Accepting request 1166345 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1166345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=32
2024-04-09 14:48:02 +00:00
Lars Vogdt
63d0309470 Accepting request 1166211 from home:oertel:branches:server:monitoring
- update apparmor profiles:
  - check_load: allow to read /run/systemd/sessions/1 while we
    still have to use "uptime" (upstream issue 1999)
  - check_disk: allow to read /proc/pid/mountinfo

OBS-URL: https://build.opensuse.org/request/show/1166211
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=122
2024-04-09 09:39:04 +00:00
a71c504257 Accepting request 1152323 from server:monitoring
- naming the renamed patches exactly, to make factory-auto happy:
  + monitoring-plugins-2.3.3-wrong_percent_in_check_swap.patch to
    monitoring-plugins-2.3.5-check_swap_wrong_percent.patch
  + monitoring-plugins-2.3.3-check_ssh.patch to
    monitoring-plugins-2.3.5-check_ssh.patch
  + monitoring-plugins-2.3.3-check_ssh.t_-_improve_testing.patch to
    monitoring-plugins-2.3.5-check_ssh.t_-_improve_testing.patch
  + monitoring-plugins-2.3.3-check_ntp_perf_absolute.patch to
    monitoring-plugins-2.3.5-check_ntp_perf_absolute.patch
  + monitoring-plugins-2.3.3-root-plugins-Makefile_-_no_chown.patch to
    monitoring-plugins-2.3.5-plugins-root-Makefile_-_no_chown.patch
  + monitoring-plugins-2.3.3-check_log_-_quoting.patch to
    monitoring-plugins-2.3.5-check_log_-_quoting.patch
  + monitoring-plugins-2.3.3-check_http-proxy.patch to
    monitoring-plugins-2.3.5-check_http-proxy.patch

- Use %patch -P N instead of deprecated %patchN.

- enable check_curl by BuildRequiring its dependencies 
- restore patches not yet applied upstream (and rename to 2.3.5):
  + monitoring-plugins-2.3.3-check_log_-_quoting.patch
  + monitoring-plugins-2.3.3-check_http-proxy.patch
- drop upstreamed patches:
  + monitoring-plugins-2.3.3-check_by_ssh.patch (GitHub #1774)
  + monitoring-plugins-2.3.3-check_disk_on_btrfs.patch (GH #1388)
  - GitHub issues for patches upstreamed on 2023-12-05:
    + monitoring-plugins-2.3.3-check_snmp.arrayaddress.patch (GH #1870)
    + monitoring-plugins-2.3.3-mariadb_102_build_fix.patch (GH #1522)
    + monitoring-plugins-2.3.3-check_dhcp_-_detect_rogue_dhcp_servers.patch (GH #1906)
    + monitoring-plugins-2.3.3-check_icmp.patch (GH #1807)

OBS-URL: https://build.opensuse.org/request/show/1152323
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=31
2024-02-27 21:49:46 +00:00
Lars Vogdt
b25473109b - naming the renamed patches exactly, to make factory-auto happy:
+ monitoring-plugins-2.3.3-wrong_percent_in_check_swap.patch to
    monitoring-plugins-2.3.5-check_swap_wrong_percent.patch
  + monitoring-plugins-2.3.3-check_ssh.patch to
    monitoring-plugins-2.3.5-check_ssh.patch
  + monitoring-plugins-2.3.3-check_ssh.t_-_improve_testing.patch to
    monitoring-plugins-2.3.5-check_ssh.t_-_improve_testing.patch
  + monitoring-plugins-2.3.3-check_ntp_perf_absolute.patch to
    monitoring-plugins-2.3.5-check_ntp_perf_absolute.patch
  + monitoring-plugins-2.3.3-root-plugins-Makefile_-_no_chown.patch to
    monitoring-plugins-2.3.5-plugins-root-Makefile_-_no_chown.patch
  + monitoring-plugins-2.3.3-check_log_-_quoting.patch to
    monitoring-plugins-2.3.5-check_log_-_quoting.patch
  + monitoring-plugins-2.3.3-check_http-proxy.patch to
    monitoring-plugins-2.3.5-check_http-proxy.patch

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=121
2024-02-27 15:26:12 +00:00
b94c916a46 Accepting request 1149719 from home:pgajdos:m
- Use %patch -P N instead of deprecated %patchN.

OBS-URL: https://build.opensuse.org/request/show/1149719
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=120
2024-02-23 08:57:44 +00:00
Lars Vogdt
c26a8b5fed Accepting request 1144413 from home:adaugherity:branches:server:monitoring
- enable check_curl by BuildRequiring its dependencies 
- restore patches not yet applied upstream (and rename to 2.3.5):
  + monitoring-plugins-2.3.3-check_log_-_quoting.patch
  + monitoring-plugins-2.3.3-check_http-proxy.patch
- drop upstreamed patches:
  + monitoring-plugins-2.3.3-check_by_ssh.patch (GitHub #1774)
  + monitoring-plugins-2.3.3-check_disk_on_btrfs.patch (GH #1388)
  - GitHub issues for patches upstreamed on 2023-12-05:
    + monitoring-plugins-2.3.3-check_snmp.arrayaddress.patch (GH #1870)
    + monitoring-plugins-2.3.3-mariadb_102_build_fix.patch (GH #1522)
    + monitoring-plugins-2.3.3-check_dhcp_-_detect_rogue_dhcp_servers.patch (GH #1906)
    + monitoring-plugins-2.3.3-check_icmp.patch (GH #1807)
    + systemd-not-utmp.patch (GH #1888)
- Repair the "no chown" patch to actually avoid calling chown; avoid
  automake build deps by patching Makefile.in rather than Makefile.am.
  + After upstream updated the gl subdir, it complains that the automake
    in SLE 12 SP5 is too old.
- Fix build on SLE 12 SP5 (link failure due to mixing OpenSSL 1.0 & 1.1)
  by using only OpenSSL 1.1, and excluding curl subpackage (needs uriparser).
- Rename patch files to match version number.
- sync check_mssql package description with plugin's help output
  + Note that not all distros contain perl-DBD-Sybase and/or freetds
- remove obsolete configure options
  + --with-ntp{q,dc,date}-command dropped upstream in 1.4.4 (e667553)
  + --with-proc-loadavg dropped in 1.4.6 (fe856aa)
- remove unnecessary chmod commands during build
- disable gettextize as upstream has (temporarily?) removed translations (GH #1947)

OBS-URL: https://build.opensuse.org/request/show/1144413
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=119
2024-02-09 14:04:24 +00:00
614cb17823 Accepting request 1144267 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1144267
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=30
2024-02-05 21:02:15 +00:00
Lars Vogdt
2bc4b20bc9 Accepting request 1142573 from home:dimstar:Factory
- Do not ship check_mssql unless built explicitly with mssql
  support. DBD::Sybase is not available in openSUSE distros.

Fix issue reported in https://build.opensuse.org/request/show/1139160

OBS-URL: https://build.opensuse.org/request/show/1142573
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=118
2024-02-05 13:33:08 +00:00
Lars Vogdt
db13358820 Accepting request 1139115 from home:pmonrealgonzalez:branches:server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1139115
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=117
2024-01-16 13:14:35 +00:00
Lars Vogdt
c0f2d03d1d Accepting request 1138821 from home:pmonrealgonzalez:branches:server:monitoring
- check_ircd: Remove the perl-IO-Socket-INET6 dependency.
  * Remove the dependency on perl(IO::Socket::INET6) as it has been
    deprecated by upstream, is no longer suitable for use and its not
    being maintained. A compatible replacement for this package is
    perl(IO::Socket::IP) which is shipped by the perl-base package.
  * Add monitoring-plugins-ircd-INET6-deprecation.patch

OBS-URL: https://build.opensuse.org/request/show/1138821
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=116
2024-01-16 08:39:51 +00:00
Lars Vogdt
7e20b26c28 Accepting request 1130995 from home:lrupp:branches:server:monitoring
- update to 2.3.5
  FIXES
  * Include maxfd.h in lib Makefile
  included in 2.3.4
  ENHANCEMENTS
  * check_curl: added --cookie-jar and doing proper cleanup of libcurl
  * check_curl: Include all IPs from getaddrinfo() in curl DNS cache
  * check_dhcp: Add dhcp rogue detection
  * check_disk: add ignore-missing option to return OK for missing fs
  * check_disk_smb: allow checking 0-sized resource (ex. IPC$)
  * check_disk: The options to include or exclude specific file 
    systems now allow the usage of regex(7)
  * check_icmp: Add support to Jitter, MOS and Score
  * check_mysql: Detect running mysqldump and handle it 
    more gracefully
  * check_procs: Implement --exclude-process to exclude 
    specific processes
  * check_smtp: add new longoption --tls
  * check_smtp: Add option to prefix PROXY header
  * check_smtp: Add support for SMTP over TLS
  * check_smtp: Add support for SNI
  * check_snmp: Implement option to ignore mib file parsing errors
  * check_users: prefer systemd-logind over utmp
  FIXES
  * check_disk: Display SI units correctly
  * check_ircd: use pack_sockaddr_in rather than hand-rolled
  * check_log/check_oracle/check_sensors: fixed the outputs of the 
    help functionality
  * check_mysql: Add mysql_close to avoid spamming the server logs
  * check_smtp: add missing -r option in usage

OBS-URL: https://build.opensuse.org/request/show/1130995
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=115
2023-12-05 15:44:03 +00:00
104325a308 Accepting request 1126870 from server:monitoring
- also require coreutils-systemd in monitoring-plugins-load
  as the check uses the uptime binary at runtime
  revisiting [bsc#1216148]

OBS-URL: https://build.opensuse.org/request/show/1126870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=29
2023-11-16 19:29:34 +00:00
Ruediger Oertel
e2ae5d8965 - also require coreutils-systemd in monitoring-plugins-load
as the check uses the uptime binary at runtime
  revisiting [bsc#1216148]

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=114
2023-11-16 13:07:38 +00:00
623c7f613a Accepting request 1121479 from server:monitoring
- renamed patches
  monitoring-plugins-wrong_return_in_check_swap.patch
  to monitoring-plugins-2.3.3-wrong_percent_in_check_swap.patch
  monitoring-plugins.check_snmp.arrayaddress.patch
  to monitoring-plugins-2.3.3-check_snmp.arrayaddress.patch
  monitoring-plugins-2.3-check_ntp_perf_absolute.patch
  to monitoring-plugins-2.3.3-check_ntp_perf_absolute.patch

- Add buildrequires for coreutils-systemd, as the configure script
  checks for uptime [bsc#1216148]

- systemd-not-utmp.patch: let check_users prefer systemd-logind
  over utmp (jsc#PED-3144)

- Add attach_disconnected flag for usr.lib.nagios.plugins.check_procs
  and usr.lib.nagios.plugins.check_procs.sle15 apparmor profiles to
  permit /proc/PID/exe access; (bsc#1209194)

- added monitoring-plugins-2.3.3-check_icmp.patch
  Simple patch to avoid compiler errors with latest gcc
- removed monitoring-plugins-2.3.1-fixing-shellcheck.patch - upstream
- renamed monitoring-plugins-2.2-mariadb_102_build_fix.patch
  to monitoring-plugins-2.3.3-mariadb_102_build_fix.patch

- added monitoring-plugins-2.3.3-check_http-proxy.patch
  Fixes a check_http bug when trying to follow a redirect
  returned from a URL retrieved via SSL proxy (issue #1764)

- finally remove monitoring-plugins-1.4.6-Makefile_-_no_chown.patch: 
  obsoleted by monitoring-plugins-2.3.3-root-plugins-Makefile_-_no_chown.patch

OBS-URL: https://build.opensuse.org/request/show/1121479
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=28
2023-11-01 21:09:45 +00:00
Ruediger Oertel
7ad2aeddc3 more changelog cleanup properly referencing renamed patches
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=113
2023-10-31 17:31:52 +00:00
Ruediger Oertel
2721b7adbb - renamed patches
to monitoring-plugins-2.3.3-wrong_percent_in_check_swap.patch
  to monitoring-plugins-2.3.3-check_snmp.arrayaddress.patch

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=112
2023-10-30 17:23:40 +00:00
Ruediger Oertel
662d1095b5 - drop unused patches
monitoring-plugins-wrong_return_in_check_swap.patch
  monitoring-plugins.check_snmp.arrayaddress.patch

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=111
2023-10-30 17:19:52 +00:00
Ruediger Oertel
7b74520447 - drop unused/duplicate patch file
monitoring-plugins-2.3-check_ntp_perf_absolute.patch

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=110
2023-10-24 16:43:24 +00:00
Ruediger Oertel
b111a5b9dc Accepting request 1118057 from home:kukuk:branches:server:monitoring
- Add buildrequires for coreutils-systemd, as the configure script
  checks for uptime [bsc#1216148]

OBS-URL: https://build.opensuse.org/request/show/1118057
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=109
2023-10-24 16:42:44 +00:00
Martin Hauke
6aff090ca2 Accepting request 1093439 from home:kukuk:no-utmp
- systemd-not-utmp.patch: let check_users prefer systemd-logind
  over utmp (jsc#PED-3144)

OBS-URL: https://build.opensuse.org/request/show/1093439
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=108
2023-09-14 13:42:09 +00:00
Lars Vogdt
83ad0b15ce Accepting request 1090989 from home:dmdiss:bsc1209194_aa_prof_nagios_check_procs
- Add attach_disconnected flag for usr.lib.nagios.plugins.check_procs
  and usr.lib.nagios.plugins.check_procs.sle15 apparmor profiles to
  permit /proc/PID/exe access; (bsc#1209194)

OBS-URL: https://build.opensuse.org/request/show/1090989
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=107
2023-06-06 11:02:33 +00:00
Lars Vogdt
ff423082c0 - removed monitoring-plugins-2.3.1-fixing-shellcheck.patch - upstream
- removed monitoring-plugins-2.2-mariadb_102_build_fix.patch - upstream

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=106
2023-05-02 17:26:17 +00:00
Lars Vogdt
0b15daa120 typo fix
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=105
2023-04-13 15:42:32 +00:00
Lars Vogdt
56f2f155ba - added monitoring-plugins-2.3.3-check_icmp.patch
Simple patch to avoid compiler errors with latest gcc
- monitoring-plugins-2.1.1-check_log_-_quoting.patch renamed to 
  monitoring-plugins-2.3.3-check_log_-_quoting.patch

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=104
2023-04-13 15:29:20 +00:00
Lars Vogdt
5a538430e0 Accepting request 1078823 from home:archie172:branches:server:monitoring
- added monitoring-plugins-2.3.3-check_http-proxy.patch
  Fixes a check_http bug when trying to follow a redirect
  returned from a URL retrieved via SSL proxy (issue #1764)

OBS-URL: https://build.opensuse.org/request/show/1078823
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=103
2023-04-13 14:26:19 +00:00
Lars Vogdt
1e7f2b14fb - add configuration files for nrpe and sudo:
+ sudoers_check_bind9 - allowing to execute nrpe check as root
  + nrpe_check_bind9 - nrpe check
- add hard requirement for sudo
- add soft requirement for nrpe

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=102
2023-04-12 17:37:10 +00:00
Lars Vogdt
7e6efb42c5 - Update to 2.3.3
Enhancements
  General
  + using PRId64 and PRIu64 instead of %ld directly
  Single Plugins
  + check_http: Make faster with larger files
  + check_snmp: add 'multiplier' to modify current value
  + check_http: Implement chunked encoding decoding
  + check_http/check_curl: add chunked encoding test
  + check_log: Added --exclude to exclude patterns
  + check_log: Add tests
  + check_disk: Clarify usage possibilites
  Fixes
  General
  + fixed two PRId64 to PRIu64 in perfdata_uint64
  Single Plugins
  + check_pgsql: Removing is_pg_dbname alltogether,using postgres API.
  + check_http: Remove superflous CRLF in HTTP-Requests
  + check_curl: detect ipv6
  + check_icmp: fix parsing help/version long options
  + check_http: fix test plan
  + check_disk: Find accessible mount path if multiple are available
  + check_apt: Fix unknown escape sequence error output
  + check_curl: fix checking large bodys
  + check_snmp: Improve tests for check_snmp & multiply option
  + check_snmp: always apply format when applying multiplier
  + check_http: Use real booleans instead of ints
  + check_http: Document process_arguments a little bit better
  + check_http: Remove dead code
  + check_http: Fix several bug in the implementation of unchunking

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=101
2023-02-23 15:43:20 +00:00
760f0f2c0a Accepting request 1011118 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1011118
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=27
2022-10-15 14:38:30 +00:00
b82aee2d3d Accepting request 1008377 from home:oertel:branches:server:monitoring
- changed buildrequires libsmbclient-devel to pkgconfig(smbclient)
  as samba packages have been reorganized in SLE and openSUSE

OBS-URL: https://build.opensuse.org/request/show/1008377
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=100
2022-10-15 12:39:14 +00:00
8b11caa1b1 Accepting request 988981 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/988981
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=26
2022-07-14 14:34:13 +00:00
d89bfe524f Accepting request 986368 from home:archie172:branches:server:monitoring
- added monitoring-plugins-2.3.1-check_by_ssh.patch
  Adds "-U" flag, which causes a 255 exit value from ssh(1), which
  indicates a connection failure, to return UNKNOWN instead of CRITICAL.
  (issue #1123)

OBS-URL: https://build.opensuse.org/request/show/986368
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=99
2022-07-13 11:40:53 +00:00
b29e02b0cd Accepting request 965012 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/965012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=25
2022-03-26 21:31:10 +00:00
Lars Vogdt
75b012c355 Accepting request 963894 from home:niner9:branches:server:monitoring
- added monitoring-plugins-2.3.1-check_disk_on_btrfs.patch
  backport fix for check_disk reporting critical on btrfs (nagios-plugins
  issue %569)

OBS-URL: https://build.opensuse.org/request/show/963894
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=98
2022-03-26 11:36:45 +00:00
f4c70a4ccb Accepting request 940945 from server:monitoring
Preparing for inclusion in SLE12 and (latest) SLE15 as general update (to have the package on the same version in all SLE distributions.

OBS-URL: https://build.opensuse.org/request/show/940945
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=24
2021-12-16 20:19:51 +00:00
Lars Vogdt
b4f87ed0ed OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=97 2021-12-16 17:51:54 +00:00
Lars Vogdt
6911247b56 - include upstream fixes for check_swap
- add patch monitoring-plugins-check_swap-fix_comment.patch
  simply fix the plugin name in the comment
- monitoring-plugins-check_swap-fix_zero_output.patch
  improve the output if the swap has zero size
- monitoring-plugins-check_swap-return_unknown.patch
  use unknown exit code for help/version in plugins
- updated context in

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=96
2021-12-16 15:29:14 +00:00
Lars Vogdt
46faef6ff1 - fix changelog order
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=95
2021-12-03 09:21:55 +00:00
Lars Vogdt
fd8ac840ff - removed the following, either upstreamed or integrated in other patches:
+ monitoring-plugins-wrong_return_in_check_swap.patch
  + monitoring-plugins-check_swap-fix_comment.patch
  + monitoring-plugins-check_swap-return_unknown.patch
  + monitoring-plugins-check_swap-fix-n.patch

- include upstream fixes for check_swap
- add patch monitoring-plugins-check_swap-fix_comment.patch
  simply fix the plugin name in the comment
- monitoring-plugins-check_swap-fix_zero_output.patch
  improve the output if the swap has zero size
- monitoring-plugins-check_swap-return_unknown.patch
  use unknown exit code for help/version in plugins
- add patch monitoring-plugins-check_swap-fix-n.patch
  check_swap fix behaviour for "-n" if 0 free swap is left
  from git commit 6995b510759cf531d70745b7d0c6e8a0d9010b06
  (bug#1175828)
- updated context in
  monitoring-plugins-wrong_return_in_check_swap.patch

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=94
2021-12-03 08:47:04 +00:00
Lars Vogdt
c6dafb590d remove link to Factory
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=93
2021-12-02 15:16:38 +00:00
d1b04a5866 Accepting request 933139 from server:monitoring
JFYI: this is planned as update also for SLE12 and SLE15.
Please have a closer look, not that I missed something.
As the plugins are in productive use on monitor.opensuse.org, I
do not expect big issues. But the dhcpd plugin was not extensively tested, yet.


- recommend syslog for monitoring-plugins-log, as people probably 
  want to analize logs generated by (r)syslog or journald
Renamed patches:
- renamed monitoring-plugins-1.4.6-no_chown.patch to 
  monitoring-plugins-1.4.6-Makefile_-_no_chown.patch to make it
  easier to detect the patched file
- renamed monitoring-plugins-2.1.1-check_logfile.patch to 
  monitoring-plugins-2.1.1-check_log_-_quoting.patch to make it
  easier to detect the patched file and reason for the patch
New patches:
- added monitoring-plugins-2.3.1-check_snmp_segfaults.patch 
  check_snmp will segfaults at line 489 if number of lines returned 
  by SNMPD is greater than number of defined thresholds
  -> https://github.com/monitoring-plugins/monitoring-plugins/pull/1589
- added monitoring-plugins-2.3.1-check_snmp_hang_on_STDERR_workaround.patch
  When the MIBs are not quite right, snmpget outputs lots of errors on 
  STDERR before getting down to business.
  If this is enough to fill the pipe buffer, snmpget hangs waiting for 
  it to be cleared, which it never will be because check_snmp is 
  waiting for snmpget to output something on STDOUT.
  This simple fix from s2156945 for this is to read STDERR before STDOUT.
  cmd_run_array from utils_cmd.c is also used by plugins/check_by_ssh 
  and plugins/negate but you're likely to get lots of errors or lots 
  of output, not both at the same time.
  The real fix is probably to do a select() and read from both as 
  they come in.
  https://github.com/monitoring-plugins/monitoring-plugins/issues/1706
- added monitoring-plugins-2.3.1-check_dhcp_-_detect_rogue_dhcp_servers.patch 
  feature enhancement from Patrick Cervicek for check_dhcp, which allows 
  to detect rogue DHCP servers. Use it with the "-x" flag, example:

OBS-URL: https://build.opensuse.org/request/show/933139
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=23
2021-11-23 21:10:33 +00:00
Lars Vogdt
35ea43154e Some patches are not recognized by the factory-auto bot. Let's see, if we can
get them through by isolating them from the rest of the text...

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=91
2021-11-22 16:21:53 +00:00
Lars Vogdt
8e37c1a55c - recommend syslog for monitoring-plugins-log, as people probably
want to analize logs generated by (r)syslog or journald
Renamed patches:
- renamed monitoring-plugins-1.4.6-no_chown.patch to 
  monitoring-plugins-1.4.6-Makefile_-_no_chown.patch to make it
  easier to detect the patched file
- renamed monitoring-plugins-2.1.1-check_logfile.patch to 
  monitoring-plugins-2.1.1-check_log_-_quoting.patch to make it
  easier to detect the patched file and reason for the patch
New patches:
- add monitoring-plugins-2.3.1-check_snmp_segfaults.patch:
  check_snmp will segfaults at line 489 if number of lines returned 
  by SNMPD is greater than number of defined thresholds
  -> https://github.com/monitoring-plugins/monitoring-plugins/pull/1589
- added monitoring-plugins-2.3.1_-_check_snmp_hang_on_STDERR_workaround.patch:
  When the MIBs are not quite right, snmpget outputs lots of errors on 
  STDERR before getting down to business.
  If this is enough to fill the pipe buffer, snmpget hangs waiting for 
  it to be cleared, which it never will be because check_snmp is 
  waiting for snmpget to output something on STDOUT.
  This simple fix from s2156945 for this is to read STDERR before STDOUT.
  cmd_run_array from utils_cmd.c is also used by plugins/check_by_ssh 
  and plugins/negate but you're likely to get lots of errors or lots 
  of output, not both at the same time.
  The real fix is probably to do a select() and read from both as 
  they come in.
  https://github.com/monitoring-plugins/monitoring-plugins/issues/1706
- added monitoring-plugins-2.3.1-check_dhcp_-_detect_rogue_dhcp_servers.patch:
  feature enhancement from Patrick Cervicek for check_dhcp, which allows 
  to detect rogue DHCP servers. Use it with the "-x" flag, example:

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=90
2021-11-19 13:47:30 +00:00
38403e13c5 Accepting request 922292 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/922292
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=22
2021-09-30 21:43:36 +00:00
33ed76535e Accepting request 921217 from home:fbui:branches:server:monitoring
- Remove unneeded build requirement on "syslog"

OBS-URL: https://build.opensuse.org/request/show/921217
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=89
2021-09-30 07:43:10 +00:00
82f386e838 Accepting request 909914 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/909914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=21
2021-08-03 20:48:52 +00:00
5bf46a903b Accepting request 908175 from home:StevenK:branches:server:monitoring
- Remove unneeded BuildRequires on python-devel.

OBS-URL: https://build.opensuse.org/request/show/908175
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=88
2021-08-03 08:49:03 +00:00
307a278b59 Accepting request 905095 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/905095
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=20
2021-07-08 20:49:27 +00:00
Lars Vogdt
bae7bceb27 Accepting request 903362 from home:bmwiedemann:branches:server:monitoring
Call gettextize with --no-changelog to make package build reproducible (boo#1047218)

This can help avoid superfluous updates of monitoring-plugins packages in our infra

OBS-URL: https://build.opensuse.org/request/show/903362
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=87
2021-07-08 14:49:39 +00:00
5e6a1334d9 Accepting request 888965 from server:monitoring
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/888965
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=19
2021-04-28 23:38:18 +00:00
Lars Vogdt
4db29d7900 - Update to 2.3.1:
Enhancements
  * check_curl: Add an option to verify the peer certificate & host using the system CA's
  Fixes
  * check_icmp: fix simple typo, conspicuosly -> conspicuously
  * check_curl: fixed help, usage and errors for TLS 1.3
  * check_curl: fixed a potential buffer overflow in url buffer
  * check_dns: split multiple IP addresses passed in one -a argument
  * check_curl: added string_statuscode function for printing HTTP/1.1 and HTTP/2 correctly
  * check_curl: fix crash if http header contains leading spaces
  * check_curl: display a specific human-readable error message where possible
  * check_pgsql: Using snprintf which honors the buffers size and guarantees null termination.
  * check_snmp: put the "c" (to mark a counter) after the perfdata value
  * check_http: Increase regexp limit
  * check_http: make -C obvious
  * check_curl: Increase regexp limit (to 1024 as in check_http)
  * check_curl: make -C obvious (from check_http)
- refreshed patches:
  + monitoring-plugins-1.4.6-no_chown.patch
  + monitoring-plugins-2.1.1-check_logfile.patch
  + monitoring-plugins-2.2-mariadb_102_build_fix.patch
  + monitoring-plugins-2.3-check_ntp_perf_absolute.patch
  + monitoring-plugins-too_few_arguments_for_check_disk.patch
  + monitoring-plugins-wrong_return_in_check_swap.patch
  + monitoring-plugins.check_hpjd.c-64bit-portability-issue.patch
  + monitoring-plugins.check_snmp.arrayaddress.patch
- add sha1 checksum file as source

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=85
2021-04-21 08:01:53 +00:00
Lars Vogdt
9cd46364f8 - Update to 2.3 (final):
Enhancements
  * check_dns: allow 'expected address' (-a) to be specified in CIDR notation (IPv4 only).
  * check_dns: allow for IPv6 RDNS
  * check_dns: Accept CIDR
  * check_dns: allow unsorted addresses
  * check_dns: allow forcing complete match of all addresses
  * check_apt: add --only-critical switch
  * check_apt: add -l/--list option to print packages
  * check_file_age: add range checking
  * check_file_age: enable to test for maximum file size
  * check_apt: adding packages-warning option
  * check_load: Adding top consuming processes option
  * check_http: Adding Proxy-Authorization and extra headers
  * check_snmp: make calcualtion of timeout value in help output more clear
  * check_uptime: new plugin for checking uptime to see how long the system is running
  * check_curl: check_http replacement based on libcurl
  * check_http: Allow user to specify HTTP method after proxy CONNECT
  * check_http: Add new flag --show-body/-B to print body
  * check_cluster: Added data argument validation
  * check_icmp: Add IPv6 support
  * check_icmp: Automatically detect IP protocol
  * check_icmp: emit error if multiple protocol version
  * check_disk: add support to display inodes usage in perfdata
  * check_hpjd: Added -D option to disable warning on 'out of paper'
  * check_http: support the --show-body/-B flag when --expect is used
  * check_mysql: allow mariadbclient to be used
  * check_tcp: add --sni
  * check_dns: detect unreachable dns service in nslookup output
  Fixes

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=84
2021-01-14 20:50:13 +00:00
45bc1728be Accepting request 842723 from server:monitoring
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/842723
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=18
2020-10-20 14:18:11 +00:00
Ruediger Oertel
bda40d34d3 - add patch monitoring-plugins-2.3-check_ntp_perf_absolute.patch
return ntp offset absolute (as positive value) in performance
  data since warn and crit are also positive values

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=82
2020-10-13 09:06:13 +00:00
8edb55b2de Accepting request 835552 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/835552
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=17
2020-09-21 15:42:29 +00:00
3183ea96ca Accepting request 835369 from home:dstoecker:oldos
- Drop check_ping_fix_ip4.patch (obsolete, conflicts with upstream fix)

Upstream used another approach to fix this issue and now these two conflict. Drop my fix...

OBS-URL: https://build.opensuse.org/request/show/835369
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=80
2020-09-19 10:42:34 +00:00
Ruediger Oertel
8ff1572ff9 - drop explicit attr in filelist for check_host and check_rta_multi
as they are symlinks to check_icmp
- add new subpackage monitoring-plugins-uptime

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=79
2020-09-14 13:19:34 +00:00
Ruediger Oertel
1baf120ee2 ...
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=78
2020-09-14 13:01:33 +00:00
Ruediger Oertel
da7df117d7 ...
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=77
2020-09-14 12:35:19 +00:00
Ruediger Oertel
efb03752f8 ...
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=76
2020-09-14 12:24:39 +00:00
Ruediger Oertel
21836c3787 add BR for automake autoconf libtool
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=75
2020-09-14 12:19:09 +00:00
Ruediger Oertel
6e82a8b132 try autoreconf instead
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=74
2020-09-14 12:08:21 +00:00
Ruediger Oertel
6ac6e1e447 call autogen.sh
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=73
2020-09-14 12:05:16 +00:00
Ruediger Oertel
29ea1b70d9 - change version to 2.3~alpha.$date.$commit
update to current git as of 20200520T233014.cadac85e
  changes summarized
  * detect unreachable dns service in nslookup output
  * check_curl: host_name may be null
  * update test parameter according to check_http
  * check_curl: use CURLOPT_RESOLVE to fix connecting to the right ip
  * workaround for issue #1550 - better use "ping -4" instead
    of "ping" if supported
  * Use size_t instead of int when calling sysctl(3)
  * check_tcp: add --sni
  * Fix timeout_interval declarations
  * check_curl: NSS, parse more date formats from certificate (in
    -C cert check)
  * check_curl: more tolerant CN= parsing when checking
    certificates (hit on Centos 8)
  * setting no_body to TRUE when we have a HEAD request
  * some LIBCURL_VERSION checks around HTTP/2 feature
  * added --http-version option to check_curl to choose HTTP
  * improved curlhelp_parse_statusline to handle both HTTP/1.x
    and HTTP/2
  * check_curl: updates embedded picohttpparser to newest git
    version
  * setting progname of check_curl plugin to check_curl (at least
    for now)
  * Allow mariadbclient to be used for check_mysql
  * fix maxfd being zero
  * include -P switch in help
  * check_swap: repaired "-n" behaviour
  * improve command examples for 'at least' processes

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=72
2020-09-14 12:03:05 +00:00
Ruediger Oertel
187627f6da - add patch monitoring-plugins-check_swap-fix-n.patch
check_swap fix behaviour for "-n" if 0 free swap is left
  from git commit 6995b510759cf531d70745b7d0c6e8a0d9010b06
  (bug#1175828)
- updated context in 
  monitoring-plugins-wrong_return_in_check_swap.patch

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=71
2020-09-14 09:21:35 +00:00
4a6f6e5ac9 Accepting request 715402 from server:monitoring
- monitoring-plugins-mysql should also provide monitoring-plugins-mysql_query
- Provide/Obsolete nagios-plugins in old version for better 
  compatibility and to allow dist upgrade (boo#1114483)

OBS-URL: https://build.opensuse.org/request/show/715402
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=16
2019-07-16 06:41:46 +00:00
Lars Vogdt
aa17aff8fb - monitoring-plugins-mysql should also provide monitoring-plugins-mysql_query
- Provide/Obsolete nagios-plugins in old version for better 
  compatibility and to allow dist upgrade (boo#1114483)

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=69
2019-07-15 08:09:39 +00:00
493c819b69 Accepting request 699682 from server:monitoring
sle12/leap42 ping does not know the -4 parameter (boo#1132903)

OBS-URL: https://build.opensuse.org/request/show/699682
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=15
2019-05-02 17:18:26 +00:00
Ruediger Oertel
2100f7cf68 sle12/leap42 ping does not know the -4 parameter (boo#1132903)
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=67
2019-04-30 13:27:39 +00:00
5f06e44cd2 Accepting request 697173 from server:monitoring
- apply check_ping_fix_ip4.patch only for suse_version >= 1500
  sle12/leap42 ping does not know the -4 parameter (boo#132903)

  case so that ptrace is allowed (boo#1133107)

OBS-URL: https://build.opensuse.org/request/show/697173
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=14
2019-04-24 11:57:06 +00:00
Ruediger Oertel
70951b99f0 ..
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=65
2019-04-23 12:59:31 +00:00
Ruediger Oertel
349923bdae - apply check_ping_fix_ip4.patch only for suse_version >= 1500
sle12/leap42 ping does not know the -4 parameter (boo#132903)
  case so that ptrace is allowed (boo#1133107)

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=64
2019-04-23 12:55:58 +00:00
0c8c5f133e Accepting request 694443 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/694443
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=13
2019-04-17 08:08:08 +00:00
Lars Vogdt
ff3938f241 Accepting request 692599 from home:dstoecker
- support IPv4 ping for dual stacked host again: check_ping_fix_ip4.patch

OBS-URL: https://build.opensuse.org/request/show/692599
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=62
2019-04-15 14:14:00 +00:00
Lars Vogdt
233e17263a Accepting request 694064 from home:cboltz:branches:server:monitoring
- update AppArmor profiles for usrMerge (related to boo#1132350)
  - grep in check_cups
  - ps in check_procs and check_procs.sle15

Note: ps currently still lives in /bin/, but also allowing /usr/bin/ to be prepared can't hurt ;-)

OBS-URL: https://build.opensuse.org/request/show/694064
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=61
2019-04-15 13:54:09 +00:00
Ruediger Oertel
86d642b69e - update usr.lib.nagios.plugins.check_procs to bash in /usr
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=60
2019-04-12 12:20:45 +00:00
Stephan Kulow
8a9e3311dd Accepting request 672187 from server:monitoring
- update usr.lib.nagios.plugins.check_procs again for >= sle15
  case so that ptrace is allowed

OBS-URL: https://build.opensuse.org/request/show/672187
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=12
2019-02-08 11:11:49 +00:00
Ruediger Oertel
3209af7c0a - update usr.lib.nagios.plugins.check_procs again for >= sle15
case so that ptrace is allowed

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=58
2019-02-06 15:21:10 +00:00
3ff7dcc8a1 Accepting request 641318 from server:monitoring
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/641318
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=11
2018-10-12 11:11:31 +00:00
Lars Vogdt
8635ad4744 + nrpe-check_total_procs => check_procs
+ nrpe-check_zombie_procs => check_procs
  + nrpe-check_users => check_users
  + nrpe-check_mysql => check_mysql
  + nrpe-check_proc_cron => check_procs
  + nrpe-check_partition => check_disk
  + nrpe-check_ups => check_ups

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=56
2018-10-04 15:01:15 +00:00
Lars Vogdt
acf7f53310 + nrpe-check_swap => check_swap
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=55
2018-10-03 21:36:47 +00:00
Lars Vogdt
ba2eb90360 permission
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=54
2018-10-03 18:58:46 +00:00
Lars Vogdt
7c98f4f46f OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=53 2018-10-03 14:15:16 +00:00
Lars Vogdt
014a7706e9 - use %%license macro on newer versions
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=52
2018-10-03 14:14:18 +00:00
Lars Vogdt
d470ea8c1c - add /etc/nrpe.d/*.cfg snipplets for
+ nrpe-check_load => check_load
  + nrpe-check_mailq => check_mailq
  + nrpe-check_ntp_time => check_ntp_time

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=51
2018-10-03 14:12:46 +00:00
008b726768 Accepting request 631188 from server:monitoring
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/631188
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=10
2018-08-24 15:12:52 +00:00
Ruediger Oertel
4be93d60bc - copy usr.lib.nagios.plugins.check_procs as
usr.lib.nagios.plugins.check_procs.sle15 and use that for sle15
  and above. "ptrace" to enable ptrace globally is needed here.

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=49
2018-08-09 22:50:02 +00:00
df15908d21 Accepting request 540707 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/540707
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=9
2017-11-12 17:03:10 +00:00
Lars Vogdt
860d21277f Accepting request 539987 from home:kstreitova:branches:server:monitoring
- add monitoring-plugins-2.2-mariadb_102_build_fix.patch to fix
  build with MariaDB 10.2 (in our case the build with libmariadb
  library from the mariadb-connector-c package)
  * upstream commit d6bd787123aa9ccd96edec8286ec22dd0442c620

OBS-URL: https://build.opensuse.org/request/show/539987
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=47
2017-11-11 07:24:56 +00:00
6840f68009 Accepting request 534540 from server:monitoring
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/534540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=8
2017-10-24 20:22:24 +00:00
Lars Vogdt
af3e7c44d2 - replace "ptrace" with "capability sys_ptrace" in
usr.lib.nagios.plugins.check_procs apparmor profile to avoid 
  errors on SLE-11

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=45
2017-10-10 19:43:07 +00:00
Ruediger Oertel
8c51a75b4d - add "ptrace" to usr.lib.nagios.plugins.check_procs apparmor
profile

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=44
2017-09-20 09:46:37 +00:00
8467068749 Accepting request 512474 from server:monitoring
1

OBS-URL: https://build.opensuse.org/request/show/512474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=7
2017-07-26 11:05:17 +00:00
4a8af515ea Accepting request 510061 from home:olh:branches:server:monitoring
- Remove unused gnutls from buildrequires

OBS-URL: https://build.opensuse.org/request/show/510061
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=42
2017-07-25 10:11:02 +00:00
Lars Vogdt
3ca3475b32 Accepting request 495700 from server:monitoring
1

OBS-URL: https://build.opensuse.org/request/show/495700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=6
2017-05-17 21:55:27 +00:00
893ce5e33d Accepting request 491938 from home:jengelh:branches:server:monitoring
- Replace %__-type macro indirections. Drop %clean, replace
  -exec \; by -exec +.

OBS-URL: https://build.opensuse.org/request/show/491938
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=40
2017-05-17 18:52:26 +00:00
23bd60f14d Accepting request 491853 from server:monitoring
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/491853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=5
2017-04-29 08:53:52 +00:00
Ruediger Oertel
f61eaa8ea1 - disable requires for apparmor on non-suse for now
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=38
2017-04-21 13:26:19 +00:00
Ruediger Oertel
5861089b81 - disable radius check (no freeradius-client-devel rpm found)
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=37
2017-04-21 12:05:23 +00:00
Ruediger Oertel
66c458804c fix buildreq for freeradius on centos
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=36
2017-04-21 11:50:49 +00:00
Ruediger Oertel
8a0c191bb0 ...
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=35
2017-04-21 11:03:34 +00:00
Ruediger Oertel
43b871d205 example is only created on suse (related to permissions hacks)
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=34
2017-04-21 10:57:04 +00:00
Ruediger Oertel
535f977df6 define _libexecdir on non-suse
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=33
2017-04-21 10:47:39 +00:00
Ruediger Oertel
ad02b13486 fix one unprotected suse_version use
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=32
2017-04-21 10:38:12 +00:00
Ruediger Oertel
e72071b304 ...
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=31
2017-04-21 10:28:04 +00:00
Ruediger Oertel
3a3b1950bb - wrap recommends with if suse_version
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=30
2017-04-21 10:20:26 +00:00
Ruediger Oertel
6adec55017 - adapt buildrequires for centos
- enclose all permissions handling with if suse_version

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=29
2017-04-21 10:13:44 +00:00
45090f5ee5 Accepting request 451649 from server:monitoring
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/451649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=4
2017-01-24 09:37:58 +00:00
Lars Vogdt
0257e1ccd8 - update to 2.2:
Enhancements
  + The check_http -S/--ssl option now accepts the arguments 1.1 and 
    1.2 to force TLSv1.1 and TLSv1.2 connections, respectively
  + The check_http -S/--ssl option now allows for specifying the 
    desired protocol with a + suffix to also accept newer versions
  + Let check_http check HTTPS web sites via proxies
  + check_http: add timeout to performance data as max value
  + check_http: report certificate expiry date in UTC
  + check_snmp: add IPv6 support
  + check_snmp's performance data now also includes warning/
    critical thresholds
  + New check_snmp -N option to specify SNMPv3 context name
  + Let check_smtp's -D option imply -S
  + Let check_smtp's -e option match against the full SMTP response
  + check_dig: expected response is now case-insensitive
  + New check_mailq -s option which tells the plugin to use sudo(8)
  + New check_nt -l parameters: seconds|minutes|hours|days
  + New -W/-C option for check_ldap to check number of entries
  + check_users: add support for range thresholds
  + check_fping now auto-detects IPv6 addresses
  + check_radius now supports the radcli library
  + Support OpenSSL 1.1
  Fixes
  + check_http: fix host header port handling
  + Let check_real terminate lines with CRLF when talking to the server, 
    as mandated by RFC 2326
  + Fix check_procs on HP-UX
  + check_smtp's -e/--expect option can now be combined with -S/--starttls
  + Fix incorrect performance data thresholds emitted by check_ups

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=27
2017-01-13 13:54:52 +00:00
826ed7cb4a Accepting request 364649 from server:monitoring
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/364649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=3
2016-03-07 12:26:28 +00:00
Ruediger Oertel
403e91d08e - usr.lib.nagios.plugins.check_disk:
include abstractions/nameservice to be able to check nfs mounts

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=25
2016-02-24 12:33:39 +00:00
266d9a3c70 Accepting request 341451 from server:monitoring
- remove monitoring-plugins-postgresql.patch : fixed upstream
- remove monitoring-plugins.negate.validate_arguments.patch : fixed
  upstream
- add patch comments to spec file as requested by rpmlint
- rebase all patches to current code stream

- update to 2.1.2:
  ENHANCEMENTS
  + check_snmp's performance data now also includes warning/critical
    thresholds
  + New check_snmp "-N" option to specify SNMPv3 context name
  + New check_nt "-l" parameters: seconds|minutes|hours|days
  + New check_mailq -s option which tells the plugin to use sudo(8)
  + New -W/-C option for check_ldap to check number of entries (Gerhard Lausser)
  + The check_http -S/--ssl option now accepts the arguments "1.1" and "1.2"
    to force TLSv1.1 and TLSv1.2 connections, respectively
  + The check_http -S/--ssl option now allows for specifying the desired
    protocol with a "+" suffix to also accept newer versions
  FIXES
  + Let check_real terminate lines with CRLF when talking to the server, as
    mandated by 2326
  + Fix check_procs on HP-UX
  + check_smtp's -e/--expect option can now be combined with -S/--starttls
  + Fix incorrect performance data thresholds emitted by check_ups
  WARNINGS
  + The format of the performance data emitted by check_mrtgtraf has been
    changed to comply with the development guidelines
  + check_ssh now returns CRITICAL for protocol/version errors
  + If a plugin is invoked with -h/--help or -V/--version, the exit status
    is now UNKNOWN

OBS-URL: https://build.opensuse.org/request/show/341451
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=2
2016-02-11 11:37:02 +00:00
Lars Vogdt
d023dd9fb7 remove old gz tarball
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=23
2015-10-29 08:57:17 +00:00
Lars Vogdt
4a28c57c0c - remove monitoring-plugins.negate.validate_arguments.patch : fixed
upstream

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=22
2015-10-29 08:56:42 +00:00
Lars Vogdt
2fc871a63d - remove monitoring-plugins-postgresql.patch : fixed upstream
- add patch comments to spec file as requested by rpmlint
- rebase all patches to current code stream
  ENHANCEMENTS
  + check_snmp's performance data now also includes warning/critical
    thresholds
  + New check_snmp "-N" option to specify SNMPv3 context name
  + New check_nt "-l" parameters: seconds|minutes|hours|days
  + New check_mailq -s option which tells the plugin to use sudo(8)
  + New -W/-C option for check_ldap to check number of entries (Gerhard Lausser)
  + The check_http -S/--ssl option now accepts the arguments "1.1" and "1.2"
    to force TLSv1.1 and TLSv1.2 connections, respectively
  + The check_http -S/--ssl option now allows for specifying the desired
    protocol with a "+" suffix to also accept newer versions
  + Let check_real terminate lines with CRLF when talking to the server, as
    mandated by 2326
  + Fix check_procs on HP-UX
  + check_smtp's -e/--expect option can now be combined with -S/--starttls
  WARNINGS
  + The format of the performance data emitted by check_mrtgtraf has been
    changed to comply with the development guidelines
  + check_ssh now returns CRITICAL for protocol/version errors
  + If a plugin is invoked with -h/--help or -V/--version, the exit status
    is now UNKNOWN
  + The superseded check_ntp.pl was removed, please use check_ntp_peer or
    check_ntp_time instead
  + plugins.negate.validate_arguments.patch

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=21
2015-10-26 16:38:39 +00:00
Lars Vogdt
9d73ab894b Accepting request 339326 from home:mnhauke:branches:server:monitoring
update to 2.1.2

OBS-URL: https://build.opensuse.org/request/show/339326
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=20
2015-10-26 15:50:36 +00:00
Lars Vogdt
b5972f797b - fix wrong requires for monitoring-plugins-dbi* packages
(fixes bnc #914486)

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=19
2015-08-20 11:24:18 +00:00
Lars Vogdt
50ef991c85 - add apparmor profiles for the following checks:
+ check_disk
  + check_load
  + check_procs
  + check_swap
  + check_users

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=18
2015-08-01 19:15:51 +00:00
Lars Vogdt
ace882d0bf - add a note about permissions for the extra-opts file in README
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=17
2015-07-26 10:17:38 +00:00
Lars Vogdt
511316b692 - use the check_ircd script as submitted via GitHub
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=16
2015-01-21 11:23:17 +00:00
Lars Vogdt
fccdf72f5e really fix path to rpcinfo on all distributions
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=15
2014-12-27 17:51:29 +00:00
Lars Vogdt
613453f435 fix path to rpcinfo
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=14
2014-12-27 17:49:17 +00:00
Lars Vogdt
bcfb4288a8 - require portmap on older distributions for building instead of
rpcbind
- newer openSUSE versions use rsyslog: require virtual syslog 
  package for build

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=13
2014-12-27 17:47:25 +00:00
Lars Vogdt
f8d9ee89c9 - update to 2.1.1:
FIXES
  + Fix check_ntp's jitter checking
  + Fix check_ntp's handling of invalid server responses
  + Fix check_apt's handling of invalid regular expressions
  + Fix check_real's server response processing
  + Fix backslash escaping in check_tcp's --help output
  + Fix check_jabber to work with Openfire servers
  + Fix check_oracle bad string matching when testing TNS server
  + Fixed check_ifstatus performance data output
  + Fixed expire time output for sslutils
  + check_dns now verifies if the answer is returning from the queried
    server
  + Fix check_by_ssh to accept --hostname as argument
  ENHANCEMENTS
  + New check_hpjd -p option for port specification (abrist)
  + New ./configure --with-qmail-qstat-command option to specify the path to
    qmail-qstat(8)
  + New check_ifstatus -n option to ignore interfaces by name
  + check_ntp_peer has now specific state output for each metric
  + New check_mysql -n option to ignore authentication failures
  + Added IP and port or socket name to error messages
  + New check_ntp_time -o option to add expected offset
  + check_disk shows now troubled partions in verbose mode
  + check_dig has now support for drill and dig
  + check_dig has now support for -6 option
  + Add performance data to check_file_age
- removed upstreamed patches:
  + monitoring-plugins-1.4.14-ntpd.patch
  + monitoring-plugins.check_ntp.c-64bit-portability-issue.patch

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=12
2014-12-27 16:40:34 +00:00
Stephan Kulow
9052d90d61 Accepting request 257389 from server:monitoring
new package, obsoleting nagios-plugins (incl. subpackages)

OBS-URL: https://build.opensuse.org/request/show/257389
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins?expand=0&rev=1
2014-10-22 14:24:00 +00:00
Lars Vogdt
3ec21dd357 remove old spec file
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=10
2014-10-17 14:57:36 +00:00
Lars Vogdt
7ea30d937a obsoleted by monitoring-plugins-ipmi-sensor1
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=9
2014-08-10 17:12:05 +00:00
Lars Vogdt
39c9dc81b6 fix whitespace
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=8
2014-07-23 12:42:59 +00:00
Lars Vogdt
f1a27a1d58 - allow plugins to open files in /etc/monitoring-plugins/
(Apparmor profiles in /etc/apparmor.d/)
- add README files for check_ping and check_ntp_time
- enhance all README files with Apparmor information
- whitespace and some spelling fixes on check_cups
- added debug option to check_cups

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=7
2014-07-22 14:20:27 +00:00
Lars Vogdt
fdf63d33a9 - adapted README files and package documentation
- provide /etc/monitoring-plugins/ directory (incl. README) as 
  mentioned in the latest documentation

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=6
2014-07-16 14:05:40 +00:00
Lars Vogdt
64f3dd9eb7 - package rename: nagios-plugins => monitoring-plugins
- enable check_radius

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=5
2014-07-15 15:10:20 +00:00
Lars Vogdt
1555f5b100 remove link to broken package
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=4
2014-07-15 14:54:25 +00:00
9 changed files with 0 additions and 634 deletions

View File

@@ -1,169 +0,0 @@
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 8dda046f..2ab6a7a3 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -126,6 +126,9 @@ int sd;
int min_page_len = 0;
int max_page_len = 0;
int redir_depth = 0;
+bool ssl_proxy = false;
+char *proxy_server_address;
+int proxy_server_port;
int max_depth = DEFAULT_MAX_REDIRS;
char *http_method;
char *http_method_proxy;
@@ -139,6 +142,7 @@ char *client_privkey = NULL;
bool process_arguments (int, char **);
int check_http (void);
void redir (char *pos, char *status_line);
+const char *find_uri_path (const char *url);
bool server_type_check(const char *type);
int server_port_check(int ssl_flag);
char *perfd_time (double microsec);
@@ -609,6 +613,17 @@ bool process_arguments (int argc, char **argv)
if (virtual_port == 0)
virtual_port = server_port;
+ /* if we are called with the -I option, the -j method is CONNECT and */
+ /* we received -S for SSL, then we tunnel the request through a proxy*/
+ /* @20100414, public[at]frank4dd.com, http://www.frank4dd.com/howto */
+
+ ssl_proxy = server_address != NULL && strcmp(http_method, "CONNECT") == 0
+ && host_name != NULL && use_ssl == true;
+ if (ssl_proxy) {
+ proxy_server_address = strdup(server_address);
+ proxy_server_port = server_port;
+ }
+
return true;
}
@@ -940,18 +955,18 @@ check_http (void)
/* try to connect to the host at the given port number */
gettimeofday (&tv_temp, NULL);
- if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK)
+ result = ssl_proxy ?
+ my_tcp_connect (proxy_server_address, proxy_server_port, &sd) :
+ my_tcp_connect (server_address, server_port, &sd);
+ if (result != STATE_OK)
die (STATE_CRITICAL, _("HTTP CRITICAL - Unable to open TCP socket\n"));
microsec_connect = deltime (tv_temp);
- /* if we are called with the -I option, the -j method is CONNECT and */
- /* we received -S for SSL, then we tunnel the request through a proxy*/
- /* @20100414, public[at]frank4dd.com, http://www.frank4dd.com/howto */
+ /* handle connection via SSL proxy */
+ if (ssl_proxy) {
- if ( server_address != NULL && strcmp(http_method, "CONNECT") == 0
- && host_name != NULL && use_ssl == true) {
-
- if (verbose) printf ("Entering CONNECT tunnel mode with proxy %s:%d to dst %s:%d\n", server_address, server_port, host_name, HTTPS_PORT);
+ if (verbose) printf ("Entering CONNECT tunnel mode with proxy %s:%d to dst %s:%d\n",
+ proxy_server_address, proxy_server_port, host_name, HTTPS_PORT);
asprintf (&buf, "%s %s:%d HTTP/1.1\r\n%s\r\n", http_method, host_name, HTTPS_PORT, user_agent);
if (strlen(proxy_auth)) {
base64_encode_alloc (proxy_auth, strlen (proxy_auth), &auth);
@@ -986,7 +1001,7 @@ check_http (void)
if (use_ssl == true) {
gettimeofday (&tv_temp, NULL);
result = np_net_ssl_init_with_hostname_version_and_cert(sd, (use_sni ? host_name : NULL), ssl_version, client_cert, client_privkey);
- if (verbose) printf ("SSL initialized\n");
+ if (verbose) printf ("SSL initialization %s\n", result == STATE_OK ? "successful" : "failed");
if (result != STATE_OK)
die (STATE_CRITICAL, NULL);
microsec_ssl = deltime (tv_temp);
@@ -1002,9 +1017,8 @@ check_http (void)
}
#endif /* HAVE_SSL */
- if ( server_address != NULL && strcmp(http_method, "CONNECT") == 0
- && host_name != NULL && use_ssl == true)
- asprintf (&buf, "%s %s %s\r\n%s\r\n", http_method_proxy, server_url, host_name ? "HTTP/1.1" : "HTTP/1.0", user_agent);
+ if (ssl_proxy)
+ asprintf (&buf, "%s %s %s\r\n%s\r\n", http_method_proxy, find_uri_path(server_url), host_name ? "HTTP/1.1" : "HTTP/1.0", user_agent);
else
asprintf (&buf, "%s %s %s\r\n%s\r\n", http_method, server_url, host_name ? "HTTP/1.1" : "HTTP/1.0", user_agent);
@@ -1033,8 +1047,7 @@ check_http (void)
*/
if ((use_ssl == false && virtual_port == HTTP_PORT) ||
(use_ssl == true && virtual_port == HTTPS_PORT) ||
- (server_address != NULL && strcmp(http_method, "CONNECT") == 0
- && host_name != NULL && use_ssl == true))
+ ssl_proxy)
xasprintf (&buf, "%sHost: %s\r\n", buf, host_name);
else
xasprintf (&buf, "%sHost: %s:%d\r\n", buf, host_name, virtual_port);
@@ -1138,10 +1151,17 @@ check_http (void)
/* leave full_page untouched so we can free it later */
page = full_page;
- if (verbose)
- printf ("%s://%s:%d%s is %d characters\n",
- use_ssl ? "https" : "http", server_address,
- server_port, server_url, (int)pagesize);
+ if (verbose) {
+ if (ssl_proxy) {
+ printf ("[via proxy %s://%s:%d] %s returned %d bytes\n",
+ use_ssl ? "https" : "http", proxy_server_address, proxy_server_port,
+ server_url, (int)pagesize);
+ } else {
+ printf ("%s://%s:%d%s returned %d bytes\n",
+ use_ssl ? "https" : "http", server_address,
+ server_port, server_url, (int)pagesize);
+ }
+ }
/* find status line and null-terminate it */
status_line = page;
@@ -1301,7 +1321,12 @@ check_http (void)
bcopy("...", &output_string_search[sizeof(output_string_search) - 4],
4);
}
- xasprintf (&msg, _("%sstring '%s' not found on '%s://%s:%d%s', "), msg, output_string_search, use_ssl ? "https" : "http", host_name ? host_name : server_address, server_port, server_url);
+ if (ssl_proxy) {
+ xasprintf (&msg, _("%sstring '%s' not found on '%s', "), msg, output_string_search, server_url);
+ } else {
+ xasprintf (&msg, _("%sstring '%s' not found on '%s://%s:%d%s', "), msg, output_string_search,
+ use_ssl ? "https" : "http", host_name ? host_name : server_address, server_port, server_url);
+ }
result = STATE_CRITICAL;
}
}
@@ -1642,6 +1667,25 @@ redir (char *pos, char *status_line)
check_http ();
}
+// Locate the URI path inside a complete URL. If we fail, just return the original URL.
+const char *
+find_uri_path (const char *url)
+{
+ const char *s = url;
+
+ if (strncmp(s, "http://", 7) == 0)
+ s += 7;
+ else if (strncmp(s, "https://", 8) == 0)
+ s += 8;
+ else
+ return url;
+ while (*s != '\0') {
+ if (strchr("/?#", *s) != NULL)
+ return s;
+ s++;
+ }
+ return url;
+}
bool
server_type_check (const char *type)
@@ -1861,7 +1905,7 @@ print_help (void)
printf (" %s\n", _("a STATE_OK is returned. When the certificate is still valid, but for less than"));
printf (" %s\n", _("30 days, but more than 14 days, a STATE_WARNING is returned."));
printf (" %s\n", _("A STATE_CRITICAL will be returned when certificate expires in less than 14 days"));
-
+ printf ("\n");
printf (" %s\n\n", "CHECK SSL WEBSERVER CONTENT VIA PROXY USING HTTP 1.1 CONNECT: ");
printf (" %s\n", _("check_http -I 192.168.100.35 -p 80 -u https://www.verisign.com/ -S -j CONNECT -H www.verisign.com "));
printf (" %s\n", _("all these options are needed: -I <proxy> -p <proxy-port> -u <check-url> -S(sl) -j CONNECT -H <webserver>"));

View File

@@ -1,33 +0,0 @@
Index: monitoring-plugins-2.3.3/plugins-scripts/check_log.sh
===================================================================
--- monitoring-plugins-2.3.3.orig/plugins-scripts/check_log.sh
+++ monitoring-plugins-2.3.3/plugins-scripts/check_log.sh
@@ -112,23 +112,23 @@ while test -n "$1"; do
exit "$STATE_UNKNOWN"
;;
-F | --filename)
- logfile=$2
+ logfile="$2"
shift 2
;;
-O | --oldlog)
- oldlog=$2
+ oldlog="$2"
shift 2
;;
-q | --query)
- query=$2
+ query="$2"
shift 2
;;
--exclude)
- exclude=$2
+ exclude="$2"
shift 2
;;
-x | --exitstatus)
- exitstatus=$2
+ exitstatus="$2"
shift 2
;;
-e | --extended-regex)

View File

@@ -1,13 +0,0 @@
Index: monitoring-plugins-2.3.3/plugins/check_ntp_time.c
===================================================================
--- monitoring-plugins-2.3.3.orig/plugins/check_ntp_time.c
+++ monitoring-plugins-2.3.3/plugins/check_ntp_time.c
@@ -533,7 +533,7 @@ int process_arguments(int argc, char **a
char *perfd_offset (double offset)
{
- return fperfdata ("offset", offset, "s",
+ return fperfdata ("offset", fabs(offset), "s",
TRUE, offset_thresholds->warning->end,
TRUE, offset_thresholds->critical->end,
FALSE, 0, FALSE, 0);

View File

@@ -1,212 +0,0 @@
From e56255ee2f2887551e15aba2410138238efab030 Mon Sep 17 00:00:00 2001
From: Anton Lofgren <alofgren@op5.com>
Date: Mon, 21 Oct 2013 08:18:30 +0200
Subject: [PATCH 1/4] check_ssh: properly parse a delayed version control
string
This resolves an issue with SSH servers which do not respond with their
version control string as the first thing in the SSH protocol version
exchange phase after connection establishment.
This patch also makes sure that we disregard a potential comment in the
version exchange string to avoid nonsense mismatches. In the future, we
might want to add the capability to match against a user specified comment.
In addition, the patch largely improves the communication towards the
server, which adds better protocol adherence.
Of course, new test cases are added to support the trigger and guard
against regressions of the bugs solved by this patch.
This fixes op5#7945 (https://bugs.op5.com/view.php?id=7945)
Signed-off-by: Anton Lofgren <alofgren@op5.com>
---
plugins/check_ssh.c | 122 +++++++++++++++++++++++++++++-------------
plugins/t/check_ssh.t | 97 ++++++++++++++++++++++++++-------
2 files changed, 164 insertions(+), 55 deletions(-)
Index: monitoring-plugins-2.3.3/plugins/check_ssh.c
===================================================================
--- monitoring-plugins-2.3.3.orig/plugins/check_ssh.c
+++ monitoring-plugins-2.3.3/plugins/check_ssh.c
@@ -106,7 +106,7 @@ process_arguments (int argc, char **argv
{"timeout", required_argument, 0, 't'},
{"verbose", no_argument, 0, 'v'},
{"remote-version", required_argument, 0, 'r'},
- {"remote-protcol", required_argument, 0, 'P'},
+ {"remote-protocol", required_argument, 0, 'P'},
{0, 0, 0, 0}
};
@@ -215,8 +215,13 @@ ssh_connect (char *haddr, int hport, cha
{
int sd;
int result;
+ int len = 0;
+ ssize_t byte_offset = 0;
+ ssize_t recv_ret = 0;
+ char *version_control_string = NULL;
char *output = NULL;
char *buffer = NULL;
+ char *tmp= NULL, *saveptr = NULL;
char *ssh_proto = NULL;
char *ssh_server = NULL;
static char *rev_no = VERSION;
@@ -231,51 +236,118 @@ ssh_connect (char *haddr, int hport, cha
return result;
output = (char *) malloc (BUFF_SZ + 1);
- memset (output, 0, BUFF_SZ + 1);
- recv (sd, output, BUFF_SZ, 0);
- if (strncmp (output, "SSH", 3)) {
- printf (_("Server answer: %s"), output);
- close(sd);
+ memset(output, 0, BUFF_SZ+1);
+ while (!version_control_string && (recv_ret = recv(sd, output+byte_offset, BUFF_SZ - byte_offset, 0)) > 0) {
+ if (strchr(output, '\n')) { /* we've got at least one full line, start parsing*/
+ byte_offset = 0;
+ while (strchr(output+byte_offset, '\n') != NULL) {
+ /*Partition the buffer so that this line is a separate string,
+ * by replacing the newline with NUL*/
+ output[(strchr(output+byte_offset, '\n')-output)]= '\0';
+ len = strlen(output+byte_offset);
+ if (len >= 4) {
+ /*if the string starts with SSH-, this _should_ be a valid version control string*/
+ if (strncmp (output+byte_offset, "SSH-", 4) == 0) {
+ version_control_string = output+byte_offset;
+ break;
+ }
+ }
+
+ /*the start of the next line (if one exists) will be after the current one (+ NUL)*/
+ byte_offset+=len+1;
+ }
+ if(!version_control_string) {
+ /* move unconsumed data to beginning of buffer, null rest */
+ memmove((void *)output, (void *)output+byte_offset+1, BUFF_SZ - len+1);
+ memset(output+byte_offset+1, 0, BUFF_SZ-byte_offset+1);
+
+ /*start reading from end of current line chunk on next recv*/
+ byte_offset = strlen(output);
+ }
+ }
+ else {
+ byte_offset += recv_ret;
+ }
+ }
+ tmp = NULL;
+ if (recv_ret < 0) {
+ printf("SSH CRITICAL - %s", strerror(errno));
+ exit(STATE_CRITICAL);
+ }
+ if (!version_control_string) {
+ printf("SSH CRITICAL - No version control string received");
+ exit(STATE_CRITICAL);
+ }
+ /*
+ * "When the connection has been established, both sides MUST send an
+ * identification string. This identification string MUST be
+ *
+ * SSH-protoversion-softwareversion SP comments CR LF"
+ * - RFC 4253:4.2
+ */
+ strip (version_control_string);
+ if (verbose)
+ printf ("%s\n", version_control_string);
+ ssh_proto = version_control_string + 4;
+
+ /*
+ * We assume the protoversion is of the form Major.Minor, although
+ * this is not _strictly_ required. See
+ *
+ * "Both the 'protoversion' and 'softwareversion' strings MUST consist of
+ * printable US-ASCII characters, with the exception of whitespace
+ * characters and the minus sign (-)"
+ * - RFC 4253:4.2
+ * and,
+ *
+ * "As stated earlier, the 'protoversion' specified for this protocol is
+ * "2.0". Earlier versions of this protocol have not been formally
+ * documented, but it is widely known that they use 'protoversion' of
+ * "1.x" (e.g., "1.5" or "1.3")."
+ * - RFC 4253:5
+ */
+ ssh_server = ssh_proto + strspn (ssh_proto, "0123456789.") + 1; /* (+1 for the '-' separating protoversion from softwareversion) */
+
+ /* If there's a space in the version string, whatever's after the space is a comment
+ * (which is NOT part of the server name/version)*/
+ tmp = strchr(ssh_server, ' ');
+ if (tmp) {
+ ssh_server[tmp - ssh_server] = '\0';
+ }
+ if (strlen(ssh_proto) == 0 || strlen(ssh_server) == 0) {
+ printf(_("SSH CRITICAL - Invalid protocol version control string %s\n"), version_control_string);
exit (STATE_CRITICAL);
}
- else {
- strip (output);
- if (verbose)
- printf ("%s\n", output);
- ssh_proto = output + 4;
- ssh_server = ssh_proto + strspn (ssh_proto, "-0123456789. ");
- ssh_proto[strspn (ssh_proto, "0123456789. ")] = 0;
-
- xasprintf (&buffer, "SSH-%s-check_ssh_%s\r\n", ssh_proto, rev_no);
- send (sd, buffer, strlen (buffer), MSG_DONTWAIT);
- if (verbose)
- printf ("%s\n", buffer);
-
- if (remote_version && strcmp(remote_version, ssh_server)) {
- printf
- (_("SSH CRITICAL - %s (protocol %s) version mismatch, expected '%s'\n"),
- ssh_server, ssh_proto, remote_version);
- close(sd);
- exit (STATE_CRITICAL);
- }
-
- if (remote_protocol && strcmp(remote_protocol, ssh_proto)) {
- printf
- (_("SSH CRITICAL - %s (protocol %s) protocol version mismatch, expected '%s'\n"),
- ssh_server, ssh_proto, remote_protocol);
- close(sd);
- exit (STATE_CRITICAL);
- }
+ ssh_proto[strspn (ssh_proto, "0123456789. ")] = 0;
- elapsed_time = (double)deltime(tv) / 1.0e6;
+ xasprintf (&buffer, "SSH-%s-check_ssh_%s\r\n", ssh_proto, rev_no);
+ send (sd, buffer, strlen (buffer), MSG_DONTWAIT);
+ if (verbose)
+ printf ("%s\n", buffer);
+ if (remote_version && strcmp(remote_version, ssh_server)) {
printf
- (_("SSH OK - %s (protocol %s) | %s\n"),
- ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s",
- FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)socket_timeout));
+ (_("SSH CRITICAL - %s (protocol %s) version mismatch, expected '%s'\n"),
+ ssh_server, ssh_proto, remote_version);
close(sd);
- exit (STATE_OK);
+ exit (STATE_CRITICAL);
}
+
+ if (remote_protocol && strcmp(remote_protocol, ssh_proto)) {
+ printf
+ (_("SSH CRITICAL - %s (protocol %s) protocol version mismatch, expected '%s'\n"),
+ ssh_server, ssh_proto, remote_protocol);
+ close(sd);
+ exit (STATE_CRITICAL);
+ }
+ elapsed_time = (double)deltime(tv) / 1.0e6;
+
+ printf
+ (_("SSH OK - %s (protocol %s) | %s\n"),
+ ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s",
+ FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)socket_timeout));
+ close(sd);
+ exit (STATE_OK);
}

View File

@@ -1,139 +0,0 @@
Index: monitoring-plugins-2.3.3/plugins/t/check_ssh.t
===================================================================
--- monitoring-plugins-2.3.3.orig/plugins/t/check_ssh.t
+++ monitoring-plugins-2.3.3/plugins/t/check_ssh.t
@@ -8,34 +8,105 @@ use strict;
use Test::More;
use NPTest;
-# Required parameters
-my $ssh_host = getTestParameter("NP_SSH_HOST", "A host providing SSH service", "localhost");
-my $host_nonresponsive = getTestParameter("NP_HOST_NONRESPONSIVE", "The hostname of system not responsive to network requests", "10.0.0.1" );
-my $hostname_invalid = getTestParameter("NP_HOSTNAME_INVALID", "An invalid (not known to DNS) hostname", "nosuchhost" );
-
-
-plan skip_all => "SSH_HOST must be defined" unless $ssh_host;
-plan tests => 6;
-
-
-my $result = NPTest->testCmd(
- "./check_ssh -H $ssh_host"
- );
-cmp_ok($result->return_code, '==', 0, "Exit with return code 0 (OK)");
-like($result->output, '/^SSH OK - /', "Status text if command returned none (OK)");
+my $res;
-
-$result = NPTest->testCmd(
- "./check_ssh -H $host_nonresponsive -t 2"
- );
-cmp_ok($result->return_code, '==', 2, "Exit with return code 0 (OK)");
-like($result->output, '/^CRITICAL - Socket timeout after 2 seconds/', "Status text if command returned none (OK)");
-
-
-
-$result = NPTest->testCmd(
- "./check_ssh -H $hostname_invalid -t 2"
- );
-cmp_ok($result->return_code, '==', 3, "Exit with return code 0 (OK)");
-like($result->output, '/^check_ssh: Invalid hostname/', "Status text if command returned none (OK)");
+# Required parameters
+my $ssh_host = getTestParameter("NP_SSH_HOST",
+ "A host providing SSH service",
+ "localhost");
+my $host_nonresponsive = getTestParameter("NP_HOST_NONRESPONSIVE",
+ "The hostname of system not responsive to network requests",
+ "10.0.0.1" );
+my $hostname_invalid = getTestParameter("NP_HOSTNAME_INVALID",
+ "An invalid (not known to DNS) hostname",
+ "nosuchhost" );
+
+plan tests => 14 + 6;
+
+SKIP: {
+ skip "SSH_HOST must be defined", 6 unless $ssh_host;
+ my $result = NPTest->testCmd(
+ "./check_ssh -H $ssh_host"
+ );
+ cmp_ok($result->return_code, '==', 0, "Exit with return code 0 (OK)");
+ like($result->output, '/^SSH OK - /', "Status text if command returned none (OK)");
+
+ $result = NPTest->testCmd(
+ "./check_ssh -H $host_nonresponsive -t 2"
+ );
+ cmp_ok($result->return_code, '==', 2, "Exit with return code 0 (OK)");
+ like($result->output, '/^CRITICAL - Socket timeout after 2 seconds/', "Status text if command returned none (OK)");
+
+ $result = NPTest->testCmd(
+ "./check_ssh -H $hostname_invalid -t 2"
+ );
+ cmp_ok($result->return_code, '==', 3, "Exit with return code 0 (OK)");
+ like($result->output, '/^check_ssh: Invalid hostname/', "Status text if command returned none (OK)");
+}
+
+SKIP: {
+ skip "No netcat available", 12 unless (system("which nc > /dev/null") == 0);
+
+ my $nc_flags = "-l 5003 -i 1";
+ #A valid protocol version control string has the form
+ # SSH-protoversion-softwareversion SP comments CR LF
+ #
+ # where `comments` is optional, protoversion is the SSH protocol version and
+ # softwareversion is an arbitrary string representing the server software version
+ open(NC, "echo 'SSH-2.0-nagiosplug.ssh.0.1' | nc ${nc_flags}|");
+ sleep 1;
+ $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" );
+ cmp_ok( $res->return_code, '==', 0, "Got SSH protocol version control string");
+ like( $res->output, '/^SSH OK - nagiosplug.ssh.0.1 \(protocol 2.0\)/', "Output OK");
+ close NC;
+
+ open(NC, "echo 'SSH-2.0-3.2.9.1' | nc ${nc_flags}|");
+ sleep 1;
+ $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" );
+ cmp_ok( $res->return_code, "==", 0, "Got SSH protocol version control string with non-alpha softwareversion string");
+ like( $res->output, '/^SSH OK - 3.2.9.1 \(protocol 2.0\)/', "Output OK for non-alpha softwareversion string");
+ close NC;
+
+ open(NC, "echo 'SSH-2.0-nagiosplug.ssh.0.1 this is a comment' | nc ${nc_flags} |");
+ sleep 1;
+ $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003 -r nagiosplug.ssh.0.1" );
+ cmp_ok( $res->return_code, '==', 0, "Got SSH protocol version control string, and parsed comment appropriately");
+ like( $res->output, '/^SSH OK - nagiosplug.ssh.0.1 \(protocol 2.0\)/', "Output OK");
+ close NC;
+
+ open(NC, "echo 'SSH-' | nc ${nc_flags}|");
+ sleep 1;
+ $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" );
+ cmp_ok( $res->return_code, '==', 2, "Got invalid SSH protocol version control string");
+ like( $res->output, '/^SSH CRITICAL/', "Output OK");
+ close NC;
+
+ open(NC, "echo '' | nc ${nc_flags}|");
+ sleep 1;
+ $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" );
+ cmp_ok( $res->return_code, '==', 2, "No version control string received");
+ like( $res->output, '/^SSH CRITICAL - No version control string received/', "Output OK");
+ close NC;
+
+ open(NC, "echo 'Not a version control string' | nc ${nc_flags}|");
+ sleep 1;
+ $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" );
+ cmp_ok( $res->return_code, '==', 2, "No version control string received");
+ like( $res->output, '/^SSH CRITICAL - No version control string received/', "Output OK");
+ close NC;
+
+ #RFC 4253 permits servers to send any number of data lines prior to sending the protocol version control string
+ open(NC, "{ echo 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'; sleep 1;
+ echo 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB'; sleep 1;
+ echo 'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'; sleep 1;
+ echo 'DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD'; sleep 1;
+ printf 'EEEEEEEEEEEEEEEEEE'; sleep 1;
+ printf 'EEEEEEEEEEEEEEEEEE\n'; sleep 1;
+ echo 'Some\nPrepended\nData\nLines\n'; sleep 1;
+ echo 'SSH-2.0-nagiosplug.ssh.0.2';} | nc ${nc_flags}|");
+ sleep 1;
+ $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" );
+ cmp_ok( $res->return_code, '==', 0, "Got delayed SSH protocol version control string");
+ like( $res->output, '/^SSH OK - nagiosplug.ssh.0.2 \(protocol 2.0\)/', "Output OK");
+ close NC;

View File

@@ -1,44 +0,0 @@
From f3e6c9663369d011b241c6fb2c8fd5312f98cacf Mon Sep 17 00:00:00 2001
From: Jan ONDREJ <ondrejj@salstar.sk>
Date: Thu, 7 Oct 2010 17:28:48 +0400
Subject: [PATCH 6/6] Prevent check_swap from returning OK, if no swap activated
My swap was not activated on boot for unknown reason and nagios does not
report this as a problem. Here is an example:
[root@kecom ~]# rpm -q nagios-plugins
nagios-plugins-1.4.13-11.fc10.i386
[root@kecom ~]# /usr/lib/nagios/plugins/check_swap -w 80% -c 40% -c 1 -w 2
SWAP CRITICAL - 100% free (0 MB out of 0 MB) |swap=0MB;0;0;0;0
If there is no swap and users is trying to test percentage of free swap,
consider 0 MB free swap space as problem, or of free/total raises division
by zero, then set percentage to 0%, not to 100%.
Steps to Reproduce:
1. make sure, your swap is empty or it's usage is not large
2. swapoff -a
3. /usr/lib/nagios/plugins/check_swap -w 80% -c 40%
Actual results:
SWAP OK - 100% free (0 MB out of 0 MB) |swap=0MB;0;0;0;0
Expected results:
SWAP CRITICAL - 0% free (0 MB out of 0 MB) |swap=0MB;0;0;0;0
Additional info:
https://bugzilla.redhat.com/512559
Index: monitoring-plugins-2.3.3/plugins/check_swap.c
===================================================================
--- monitoring-plugins-2.3.3.orig/plugins/check_swap.c
+++ monitoring-plugins-2.3.3/plugins/check_swap.c
@@ -134,7 +134,7 @@ main (int argc, char **argv)
free_swap_mb += dskfree_mb;
if (allswaps) {
if (dsktotal_mb == 0)
- percent=100.0;
+ percent = 0.0;
else
percent = 100 * (((double) dskused_mb) / ((double) dsktotal_mb));
result = max_state (result, check_swap (dskfree_mb, dsktotal_mb));

View File

@@ -1,20 +0,0 @@
--- monitoring-plugins-2.3.5/plugins-root/Makefile.in.orig 2023-11-28 17:23:06.400019507 -0600
+++ monitoring-plugins-2.3.5/plugins-root/Makefile.in 2023-11-28 17:49:03.832492223 -0600
@@ -1960,8 +1960,6 @@
p=$$f; \
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \
- echo " chown root $(DESTDIR)$(libexecdir)/$$p"; \
- chown root $(DESTDIR)$(libexecdir)/$$p; \
echo " chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p"; \
chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \
done
@@ -2484,7 +2482,7 @@
@TMPFILE=$(DESTDIR)$(libexecdir)/.setuid-$$$$; \
rm -f $$TMPFILE; \
echo > $$TMPFILE; \
- can_create_suid_root_executable=no; \
+ can_create_suid_root_executable=yes; \
chown root $$TMPFILE > /dev/null 2>&1 \
&& chmod $(setuid_root_mode) $$TMPFILE > /dev/null 2>&1 \
&& can_create_suid_root_executable=yes; \

BIN
monitoring-plugins-2.3.5.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1 +0,0 @@
fcbe2068cb55aeaca3ebe67b619cb345a6705184 *monitoring-plugins-2.3.5.tar.gz