[Pkg-nagios-devel] Bug#851991: icinga2: Please support nrpe-ng in icinga2 commands
John Lines
john+reportbug-juno at paladyn.org
Fri Jan 20 16:10:19 UTC 2017
Package: icinga2
Version: 2.6.0-2
Severity: wishlist
Tags: patch
Dear Maintainer,
The nrpe-ng package is useful for system managers migrating from jessie
to stretch, as it is available in jessie-backports, as well as stretch.
Please provide a CheckCommand definition, similar to that for nrpe, for
nrpe-ng
I attach one I have hacked together. Note that the specification of the
target by name is important, as otherwise certificate checks are likely
to fail, and the explicit specification of the command file also appears
to be required.
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: armel (armv5tel)
Kernel: Linux 4.8.0-2-marvell
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages icinga2 depends on:
ii icinga2-bin 2.6.0-2
ii icinga2-common 2.6.0-2
Versions of packages icinga2 recommends:
ii icinga2-doc 2.6.0-2
ii libreadline6 6.3-9
ii monitoring-plugins-basic 2.2-2
Versions of packages icinga2 suggests:
pn icinga2-studio <none>
ii vim-icinga2 2.6.0-2
-- no debconf information
-------------- next part --------------
object CheckCommand "nrpe-ng" {
import "ipv4-or-ipv6"
command = [ PluginDir + "/check_nrpe_ng" ]
arguments = {
# "-H" = "$nrpe_address$"
"-H" = "$nrpe_ng_hostname$"
"-p" = "$nrpe_port$"
"-c" = "$nrpe_command$"
"-C" = "$nrpe_ng_config$"
"-n" = {
set_if = "$nrpe_no_ssl$"
description = "Do not use SSL."
}
"-u" = {
set_if = "$nrpe_timeout_unknown$"
description = "Make socket timeouts return an UNKNOWN state instead of CRITICAL"
}
"-t" = "$nrpe_timeout$"
"-a" = {
value = "$nrpe_arguments$"
repeat_key = false
order = 1
}
"-4" = {
set_if = "$nrpe_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$nrpe_ipv6$"
description = "Use IPv6 connection"
}
}
vars.nrpe_address = "$check_address$"
vars.nrpe_no_ssl = false
vars.nrpe_timeout_unknown = false
vars.check_ipv4 = "$nrpe_ipv4$"
vars.check_ipv6 = "$nrpe_ipv6$"
vars.nrpe_ng_config = "/etc/nagios/check_nrpe_ng.cfg"
vars.nrpe_ng_hostname = "$host_name$"
timeout = 5m
}
More information about the Pkg-nagios-devel
mailing list