mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
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:
parent
66df1e9542
commit
7403139622
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user