1
0
Commit Graph

44 Commits

Author SHA256 Message Date
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
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
Dirk Stoecker
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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