What does the nrpe configuration on the client look like ?
On 15/10/14 15:44, Shaw, Brian wrote:
Hello All,
I am using Icinga2 with nrpe and keep running into a strange
situation when passing parameters. For example, this memory test; the
exact command is taken from the Icinga debug log.
'/usr/lib64/nagios/plugins/check_nrpe' '-4' '-H' '10.4.2.15' '-c'
'icinga_check_mem_used' '-a' '90 95'
The remote script is Perl using GetOpt::Std and it doesn’t appear to
decode the parameters correctly. It seems to think only one is being
passed to it. (Stock Nagios plugins written in C fall into this
category also) However, I have another Perl script that uses $ARGV[0]
& $ARGV[1], etc. and it can decode the parameters correctly.
The nrpe configuration in Icinga2 is:
object CheckCommand "nrpe_remote_check" {
import "plugin-check-command"
command = ["/usr/lib64/nagios/plugins/check_nrpe"]
arguments = {
"-n" = {
set_if = "$nrpe_no_ssl$"
description = "Do no use SSL"
}
"-u" = {
set_if = "$nrpe_timeout_unknown$"
description = "Make socket timeouts return an UNKNOWN
state instead of CRITICAL"
}
"-H" = {
value = "$nrpe_address$"
description = "The address of the host running the NRPE
daemon"
}
"-b" = {
value = "$nrpe_binding_addr$"
description = "bind to local address"
}
"-4" = {
set_if = "$nrpe_ipv4$"
description = "use ipv4 only"
}
"-6" = {
set_if = "$nrpe_ipv6$"
description = "use ipv6 only"
}
"-p" = {
value = "$nrpe_port$"
description = "The port on which the daemon is running
(default=5666)"
}
"-t" = {
value = "$nrpe_timeout$"
description = "Number of seconds before connection times
out (default=10)"
}
"-c" = {
value = "$nrpe_command$"
description = "The name of the command that the remote
daemon should run"
}
"-a" = {
value = "$nrpe_remote_arglist$"
description = "Optional arguments that should be passed
to the command. Multiple arguments should be separated by a space.
If provided, this must be the last option supplied on the command line."
order = 10
}
}
vars.nrpe_address = "$address$"
vars.nrpe_ipv4 = true
}
Am I doing something wrong, a configuration problem or calling
problem, or is there a bug here?
Any help would be appreciated.
Brian
NOTICE:
This message, and any attachments, contain(s) information that may be
confidential or protected by privilege from disclosure and is intended
only for the individual or entity named above. No one else may
disclose, copy, distribute or use the contents of this message for any
purpose. Its unauthorized use, dissemination or duplication is
strictly prohibited and may be unlawful. If you receive this message
in error or you otherwise are not an authorized recipient, please
immediately delete the message and any attachments and notify the sender.
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users