Age | Commit message (Collapse) | Author | Files | Lines |
|
include -P switch in help
|
|
|
|
|
|
check_swap: repaired "-n" behaviour
|
|
improve command examples for 'at least' processes
|
|
check_mysql: Allow sockets to be specified to -H
|
|
|
|
The help text says that -H accepts a "unix socket (must be an absolute
path)". Now that actually corresponds to reality.
Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
|
|
Adding packages-warning option to check_apt plugin
|
|
Adding print top consuming processes option to check_load
|
|
check_snmp: make calcualtion of timeout value in help output more clear
|
|
[check_disk] add support to display inodes usage in perfdata
|
|
check_by_ssh: fix child process leak on timeouts
|
|
renew test certificates
|
|
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
check_icmp: Add IPv6 support
|
|
check_dns: fix typo in parameter description
|
|
|
|
When check_by_ssh runs into a timeout it simply exits keeping all child processes running.
Simply adopting the kill loop from runcmd_timeout_alarm_handler() fixes this.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
Also support the --show-body/-B flag when --expect is used
|
|
check_dns: improve support for checking multiple addresses
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
|
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.
|
|
check_hpjd: Added -D option to disable warning on 'out of paper'
|
|
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
|
|
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>
|
|
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>
|
|
This is not enabled by default
It can be enabled with the -P (--iperfdata) option
|
|
check_cluster.c: Added data argument validation.
|
|
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.
|
|
|