Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
|
|
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
|
|
Travis run plugin root tests
|
|
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.
|
|
|
|
The check_file_age uses Monitoring::Plugin::Range internally. Skip thoses tests
if the module isn't available.
|
|
|
|
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
|
|
* monitoring-plugins/pr/1560:
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
|
|
* monitoring-plugins/pr/1476:
test: Add proxy tests via proxy
Allow user to specify HTTP method after proxy CONNECT
|
|
On Travis with a local squid
|
|
Simple format, avoids refactoring the CONNECT feature.
|
|
Avoid passing NULL to vprintf().
|
|
Fix build issue with MariaDB 10.2
|
|
Added a compiled plugin script that was missing from gitignore
|
|
|
|
|
|
Uptime plugin
|
|
|
|
|
|
|
|
|
|
No need to call /bin/uptime, since the string can be generated with strftime(...).
|
|
|
|
|
|
|
|
|
|
Better alignment.
Avoid duplications ("Exceeds ... threshold").
|
|
|
|
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($)
|
|
|
|
I've messed that up in the previous commit 554b702f9d65fdfe640f20633543e00cd79d64ac.
|
|
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 ...
|
|
When called with --help, the following error was shown:
Use of uninitialized value $uptime_file in concatenation (.) or string at
|
|
|
|
|
|
All other check script also have the .pl ending
|
|
|
|
Derived from check_mailq
|
|
remove unnecessary brackets in help text
|
|
|
|
As of 10.2 MariaDB no longer defines MYSQL_PORT.
|
|
Disable sorting of procs by CPU usage on check_load if procpcpu is not present on PS_VARLIST
|
|
|
|
|
|
-W, --print-top-warning
Print top consuming processes on WARNING status
-C, --print-top-critical
Print top consuming processes on CRITICAL status
-n, --procs-to-show=NUMBER_OF_PROCS
Number of processes to show when printing top consuming
processes. Not useful without -W or -C. Default value is 5
|
|
This option specifies the minumum number of packages available for upgrade to return WARNING status. Default is 1 package.
|