aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-19renew test certificatesGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2019-02-19Merge pull request #1563 from jacobbaungard/ipv6_check_icmpGravatar Sven Nierlein
check_icmp: Add IPv6 support
2019-02-15Merge pull request #1584 from DerDakon/typoGravatar Sven Nierlein
check_dns: fix typo in parameter description
2019-02-15check_dns: fix typo in parameter descriptionGravatar Rolf Eike Beer
2019-02-15Merge pull request #1582 from towolf/show_body_for_http_expect_caseGravatar Sven Nierlein
Also support the --show-body/-B flag when --expect is used
2019-02-15Merge pull request #1545 from DerDakon/dns_orderGravatar Sven Nierlein
check_dns: improve support for checking multiple addresses
2019-02-12Also support the --show-body/-B flag when --expect is usedGravatar Tobias Wolf
2019-02-06Merge branch 'travis-ci-xenial'Gravatar Jan Wagner
2019-02-04travis-ci: Use RSA keys for SSH testsGravatar Jan Wagner
2019-02-02travis-ci: Restart mysqlGravatar Jan Wagner
2019-02-02travis-ci: The package name is now 'squid'Gravatar Jan Wagner
2019-02-02travis-ci: Remove backports ppaGravatar Jan Wagner
2019-02-02travis-ci: Switch over to xenialGravatar Jan Wagner
2019-02-01Merge pull request #1578 from sni/tests_fix_snmp_testGravatar Sven Nierlein
tests: make check_snmp test more reliable
2019-01-21tests: make check_snmp test more reliableGravatar Sven Nierlein
The check_snmp rate tests depend on the exact amount of time spend between the plugin runs and will fail on busy machines, ex. the ci servers. Using faketime mitigates this issue and also removes all the sleeps. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2019-01-20Merge pull request #1574 from waja/check_smtp_custom_command_sslGravatar Jan Wagner
Simply initializes n before it is used
2019-01-18Simply initializes n before it is usedGravatar Iustin Pop
When SSL is enabled, n is assigned the size of the server's second EHLO response (I think in bytes), which will usually be significantly higher than the command passed. As such, no commands are executed and no responses are checked, which - silently - defeats the desired checks and results in a success value.
2019-01-04Merge pull request #1569 from jacobbaungard/check_hpjd_disable_paper_outGravatar Sven Nierlein
check_hpjd: Added -D option to disable warning on 'out of paper'
2019-01-04check_hpjd: Added -D option to disable warning on 'out of paper'Gravatar Kostyantyn Hushchyn
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
2018-12-10check_icmp: Do not overwrite -4,-6 on lookupGravatar Jacob Hansen
In case we needed to do a lookup, we previously overwrote the address_family to IPv6, even if we supplied -4 as a cmd line argument. This commit should ensure the cmd line argument is always followed. Signed-off-by: Jacob Hansen <jhansen@op5.com>
2018-12-10check_icmp: emit error if multiple protocol versionGravatar Jacob Hansen
As we do not support checking both IPv4 and IPv6 hosts in one execution we emit an error if multiple protocol versions are defined in the cmd line args. Signed-off-by: Jacob Hansen <jhansen@op5.com>
2018-12-10check_icmp: move opts string into a variableGravatar Jacob Hansen
This commit moves the opts string into a variable as it is now used twice. Signed-off-by: Jacob Hansen <jhansen@op5.com>
2018-12-07Merge pull request #1564 from jacobbaungard/check_cluster_arg_validationGravatar Sven Nierlein
check_cluster.c: Added data argument validation.
2018-12-07check_icmp: Correctly set address_family on lookupGravatar Jacob Hansen
If a hostname is supplied instead of an IP address, the automatic address family detection would fail to correctly set the IP protocol version (it would always be IPv6). We now supply AF_UNSPEC to getaddrinfo, which should then return the correct address family in the result. Signed-off-by: Jacob Hansen <jhansen@op5.com>
2018-12-07check_icmp: removed outcommented codeGravatar Jacob Hansen
Signed-off-by: Jacob Hansen <jhansen@op5.com>
2018-12-07check_icmp: process protocol version args firstGravatar Jacob Hansen
Detection of protocol version is in the previous patch implemented in the add_target() function, which is called when adding the -H command line argument. That means that if a protocal version argument (-4, -6) is added after the -H then the protocol version might be incorrectly set. This patch ensures that we first process the protocol version arguments, and then we process the rest of the arguments. Signed-off-by: Jacob Hansen <jhansen@op5.com>
2018-12-07check_icmp: Automatically detect IP protocolGravatar Jacob Hansen
This patch automatically detects whether the protocol version is IPv4 or IPv6 All credits to: https://github.com/ghciv6 Signed-off-by: Jacob Hansen <jhansen@op5.com>
2018-12-07Fixed parameter handling after 01efbb2183d49c5082598d4799788fc385342f28Gravatar Lars Michelsen
2018-12-07check_icmp: Add IPv6 supportGravatar Lars Michelsen
This commit adds IPv6 capabilities to check_icmp. It is now possible to specify the address family using the arguments -4 (default) or -6. To make the change possible we had to move the argument parsing previous to creating the socket to be able to create it with the correct address family. This commit also fixes some gcc 4.9.2 compiler warnings. It has been tested with several current linux distributions (debian, ubuntu, rh, sles). This commit fixes monitoring-plugins/monitoring-plugins#1291
2018-12-07Merge pull request #1565 from sni/travis_run_plugin_root_testsGravatar Sven Nierlein
Travis run plugin root tests
2018-12-04tests: rework test parametersGravatar Sven Nierlein
there were 2 variants of calling getTestParameter: - parameter, description, default value - parameter, env value, default value, description, scope While scope was never actually used and having 2 names for the same value led to having 2 different entries in the cache file for the same configuration. This commit removes the variants and simplifies tests parameters by only using the first 3 parameter variant.
2018-12-04NPTest: unify whitespaceGravatar Sven Nierlein
2018-12-04tests: skip some tests if Monitoring::Plugin::Range isn't availableGravatar Sven Nierlein
The check_file_age uses Monitoring::Plugin::Range internally. Skip thoses tests if the module isn't available.
2018-12-04tests: enable plugins-root testsGravatar Sven Nierlein
2018-11-29check_cluster.c: Added data argument validation.Gravatar Kostyantyn Hushchyn
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
2018-11-10Merge remote-tracking branch 'monitoring-plugins/pr/1560'Gravatar Holger Weiss
* monitoring-plugins/pr/1560: Add new flag --show-body/-B to print body
2018-11-09Add new flag --show-body/-B to print bodyGravatar Tobias Wolf
This should help with figuring out ia problem at a glance when enabled for healthz endpoints on web APIs, for example. The content of the body can point to what the problem is and help with diagnostics. Fixes #1559
2018-11-06Merge remote-tracking branch 'monitoring-plugins/pr/1476'Gravatar Holger Weiss
* monitoring-plugins/pr/1476: test: Add proxy tests via proxy Allow user to specify HTTP method after proxy CONNECT
2018-11-06test: Add proxy tests via proxyGravatar Markus Frosch
On Travis with a local squid
2018-11-06Allow user to specify HTTP method after proxy CONNECTGravatar Markus Frosch
Simple format, avoids refactoring the CONNECT feature.
2018-10-22Merge pull request #1552 from madpilot78/Avoid_passing_NULL_to_vprintfGravatar Sven Nierlein
Avoid passing NULL to vprintf().
2018-10-22Merge pull request #1522 from Sp1l/fix-MariaDB10.2Gravatar Sven Nierlein
Fix build issue with MariaDB 10.2
2018-10-13Merge pull request #1556 from TeamOfMonkeysNet/masterGravatar Sven Nierlein
Added a compiled plugin script that was missing from gitignore
2018-10-13Added a compiled plugin script that was missing from gitignoreGravatar Lucas Bussey
2018-09-29Avoid passing NULL to vprintf().Gravatar Guido Falsi
2018-07-26Merge pull request #1538 from wopfel/uptime-pluginGravatar Sven Nierlein
Uptime plugin
2018-07-25check_dns: allow forcing complete match of all addressesGravatar Rolf Eike Beer
2018-07-25check_dns: allow returned addresses to be in any orderGravatar Rolf Eike Beer
2018-07-25check_dns: simplify loopGravatar Rolf Eike Beer
2018-06-17Fixed error message, added commentGravatar Bernd Arnold