Add check command for x509's host check

The refererred PR: https://github.com/Icinga/icingaweb2-module-x509/pull/47
This commit is contained in:
Johannes Meyer 2019-05-13 14:36:27 +02:00 committed by GitHub
parent 66df1e9542
commit 7403139622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,3 +85,36 @@ object CheckCommand "icingacli-elasticsearch" {
}
object CheckCommand "icingacli-x509" {
import "icingacli"
command += [ "x509", "check", "host" ]
arguments = {
"--ip" = {
value = "$icingacli_x509_ip$"
description = "A hosts IP address"
}
"--host" = {
value = "$icingacli_x509_host$"
description = "A hosts name"
}
"--port" = {
value = "$icingacli_x509_port$"
description = "The port to check in particular"
}
"--warning" = {
value = "$icingacli_x509_warning$"
description = "Less remaining time results in state WARNING"
}
"--critical" = {
value = "$icingacli_x509_critical$"
description = "Less remaining time results in state CRITICAL"
}
"--allow-self-signed" = {
set_if = "$icingacli_x509_allow_self_signed$"
description = "Ignore if a certificate or its issuer has been self-signed"
}
}
}