Add new check_nrpe parameter -D to disable logging to syslog

This commit is contained in:
Napsty 2021-09-29 09:46:55 +02:00
parent 8a704fb0f0
commit 57bea5e3c4
2 changed files with 5 additions and 0 deletions

View File

@ -887,6 +887,7 @@ nrpe_key | **Optional.** The client key file to use for PKI. Defaults to none.
nrpe_ssl_version | **Optional.** The SSL/TLS version to use. Defaults to TLSv1+.
nrpe_cipher_list | **Optional.** The list of SSL ciphers to use. Default depends on check_nrpe version.
nrpe_dh_opt | **Optional.** Anonymous Diffie Hellman use: 0 = deny, 1 = allow, 2 = force. Default depends on check_nrpe version.
nrpe_no_logging | **Optional.** Disable logging of check_nrpe to syslog facilities (requires check_nrpe >= 4.0).
### nscp <a id="plugin-check-command-nscp"></a>

View File

@ -2345,6 +2345,10 @@ object CheckCommand "nrpe" {
value = "$nrpe_dh_opt$"
description = "Anonymous Diffie Hellman use: 0 = deny, 1 = allow, 2 = force"
}
"-D" = {
set_if = "$nrpe_no_logging$"
description = "Disable check_nrpe plugin from logging to syslog (requires check_nrpe >= 4.0)"
}
}
vars.nrpe_address = "$check_address$"