Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
This commit moves the opts string into a variable as it is now used
twice.
Signed-off-by: Jacob Hansen <jhansen@op5.com>
|
|
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>
|
|
Signed-off-by: Jacob Hansen <jhansen@op5.com>
|
|
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.
|
|
|
|
* 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
|
|
As of 10.2 MariaDB no longer defines MYSQL_PORT.
|
|
Output plugin's stderr to stderr
|
|
Output plugin's stderr to stderr and do not exit with WARNING in that case
|
|
Added tests for virtual port behaviour. Separated from all other test…
|
|
plugins: check_dig: Fix spelling
|
|
|
|
Enable check_file_age to test for maximum file size
|
|
|