Jan Wagner
2dcfbbcad0
travis-ci: Use RSA keys for SSH tests
2019-02-04 14:24:29 +01:00
Jan Wagner
2416aaadd8
travis-ci: Restart mysql
2019-02-02 17:26:01 +01:00
Jan Wagner
0ca6c28ebf
travis-ci: The package name is now 'squid'
2019-02-02 16:56:37 +01:00
Jan Wagner
a8d96ce2c6
travis-ci: Remove backports ppa
2019-02-02 16:47:07 +01:00
Jan Wagner
0ec21334c3
travis-ci: Switch over to xenial
2019-02-02 16:36:47 +01:00
Sven Nierlein
da02bfe3ca
Merge pull request #1578 from sni/tests_fix_snmp_test
...
tests: make check_snmp test more reliable
2019-02-01 18:07:13 +01:00
Sven Nierlein
22f47fc0c5
tests: make check_snmp test more reliable
...
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-21 17:41:02 +01:00
Jan Wagner
eb8ca01be9
Merge pull request #1574 from waja/check_smtp_custom_command_ssl
...
Simply initializes n before it is used
2019-01-20 15:07:58 +01:00
Iustin Pop
8520c643dd
Simply initializes n before it is used
...
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-18 22:52:54 +01:00
Sven Nierlein
5237395433
Merge pull request #1569 from jacobbaungard/check_hpjd_disable_paper_out
...
check_hpjd: Added -D option to disable warning on 'out of paper'
2019-01-04 22:56:36 +01:00
Kostyantyn Hushchyn
f79f016238
check_hpjd: Added -D option to disable warning on 'out of paper'
...
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
2019-01-04 15:01:28 +01:00
Sven Nierlein
ac6f101f05
Merge pull request #1564 from jacobbaungard/check_cluster_arg_validation
...
check_cluster.c: Added data argument validation.
2018-12-07 17:35:58 +01:00
Sven Nierlein
c7c4be2ad1
Merge pull request #1565 from sni/travis_run_plugin_root_tests
...
Travis run plugin root tests
2018-12-07 10:34:45 +01:00
Sven Nierlein
d7dcca22ae
tests: rework test parameters
...
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-04 15:20:19 +01:00
Sven Nierlein
b69eb5afed
NPTest: unify whitespace
2018-12-04 14:54:12 +01:00
Sven Nierlein
660e0cf4e2
tests: skip some tests if Monitoring::Plugin::Range isn't available
...
The check_file_age uses Monitoring::Plugin::Range internally. Skip thoses tests
if the module isn't available.
2018-12-04 14:54:12 +01:00
Sven Nierlein
19be129ff8
tests: enable plugins-root tests
2018-12-04 09:48:45 +01:00
Kostyantyn Hushchyn
910894a4e2
check_cluster.c: Added data argument validation.
...
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
2018-11-29 16:37:59 +01:00
Holger Weiss
c285edd2f3
Merge remote-tracking branch 'monitoring-plugins/pr/1560'
...
* monitoring-plugins/pr/1560:
Add new flag --show-body/-B to print body
2018-11-10 19:22:05 +01:00
Tobias Wolf
9966ebcd84
Add new flag --show-body/-B to print body
...
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-09 23:48:56 +01:00
Holger Weiss
0863a4cb93
Merge remote-tracking branch 'monitoring-plugins/pr/1476'
...
* monitoring-plugins/pr/1476:
test: Add proxy tests via proxy
Allow user to specify HTTP method after proxy CONNECT
2018-11-06 12:49:18 +01:00
Markus Frosch
198611a3c2
test: Add proxy tests via proxy
...
On Travis with a local squid
2018-11-06 12:33:24 +01:00
Markus Frosch
d659f8d99f
Allow user to specify HTTP method after proxy CONNECT
...
Simple format, avoids refactoring the CONNECT feature.
2018-11-06 11:32:27 +01:00
Sven Nierlein
82a634f7bf
Merge pull request #1552 from madpilot78/Avoid_passing_NULL_to_vprintf
...
Avoid passing NULL to vprintf().
2018-10-22 16:22:54 +02:00
Sven Nierlein
1c0a48bc6b
Merge pull request #1522 from Sp1l/fix-MariaDB10.2
...
Fix build issue with MariaDB 10.2
2018-10-22 16:21:05 +02:00
Sven Nierlein
26d84632b8
Merge pull request #1556 from TeamOfMonkeysNet/master
...
Added a compiled plugin script that was missing from gitignore
2018-10-13 20:16:49 +02:00
Lucas Bussey
ec4ef097c2
Added a compiled plugin script that was missing from gitignore
2018-10-13 07:44:39 -07:00
Guido Falsi
c76f59bcc0
Avoid passing NULL to vprintf().
2018-09-29 16:22:44 +02:00
Sven Nierlein
22f13aa2f1
Merge pull request #1538 from wopfel/uptime-plugin
...
Uptime plugin
2018-07-26 07:31:37 +02:00
Bernd Arnold
6a8564fb44
Fixed error message, added comment
2018-06-17 09:42:25 +02:00
Bernd Arnold
37f9b45266
Drop uptime binary call
...
No need to call /bin/uptime, since the string can be generated with strftime(...).
2018-06-17 09:36:13 +02:00
Bernd Arnold
28f4d144f2
Added help text for range support
2018-06-17 09:20:16 +02:00
Bernd Arnold
b40d660bb3
Remove useless (empty) print
2018-06-17 09:19:55 +02:00
Sven Nierlein
0b9c85109b
fix typo in check_uptime
2018-06-13 20:23:21 +02:00
Sven Nierlein
ae7c16306c
add check_uptime to makefile
2018-06-13 20:23:07 +02:00
Bernd Arnold
cf157ef845
Refactoring
...
Better alignment.
Avoid duplications ("Exceeds ... threshold").
2018-06-13 17:28:53 +02:00
Bernd Arnold
558090a7d8
Added tests for range values
2018-06-13 17:26:51 +02:00
Bernd Arnold
db499b6f5b
Introducing ranges for warning and critical
...
Works as before:
-w 1w -c 2w
New (as before, but also warn if uptime < 5m, and crit if uptime < 2m):
-w 5m:1w -c 2m:2w
(idea by @sni)
Also refactored the time calculation, if a suffix is present:
New sub calc_as_seconds($)
2018-06-13 16:56:22 +02:00
Bernd Arnold
a784b19d6f
Modified alignment
2018-06-13 16:10:17 +02:00
Bernd Arnold
9ee884b3de
Fix: Use macro for perl binary
...
I've messed that up in the previous commit 554b702f9d .
2018-06-13 15:57:16 +02:00
Bernd Arnold
5a73671ec6
Fix: Initialize values
...
Otherwise, there's a warning about unitialized values:
Use of uninitialized value $hours in numeric gt (>) at ...
Use of uninitialized value $days in numeric gt (>) at ...
2018-06-09 10:02:23 +02:00
Bernd Arnold
554b702f9d
Fix: uptime_file variable was declared too late
...
When called with --help, the following error was shown:
Use of uninitialized value $uptime_file in concatenation (.) or string at
2018-06-03 20:55:42 +02:00
Bernd Arnold
250adb31ef
Added test file
2018-06-03 16:51:43 +02:00
Bernd Arnold
d5fbf8ae93
Added suffix "s" for seconds in perfdata output
2018-06-03 16:42:34 +02:00
Bernd Arnold
44816b4979
Rename to .pl
...
All other check script also have the .pl ending
2018-06-03 16:05:54 +02:00
Bernd Arnold
de0872e2d7
Replaced my values with macros
2018-05-30 19:11:06 +02:00
Bernd Arnold
96c8dd8935
My version of check_uptime
...
Derived from check_mailq
2018-05-30 19:03:43 +02:00
Bernard Spil
399cc14152
Fix build issue with MariaDB 10.2
...
As of 10.2 MariaDB no longer defines MYSQL_PORT.
2017-11-06 17:31:44 +01:00
Sven Nierlein
9661ee7488
Merge pull request #1505 from m-kraus/patch-1
...
Output plugin's stderr to stderr
2017-09-04 16:56:56 +02:00
Michael Kraus
6e67b638f8
Output plugin's stderr to stderr
...
Output plugin's stderr to stderr and do not exit with WARNING in that case
2017-09-04 16:36:19 +02:00