123456789101112131415161718192021222324252627282930 |
- #
- # Old Icinga2 doesn't ship with check command for ssl_cert check
- #
- {%- if grains['oscodename'] == 'jessie' or grains['oscodename'] == 'stretch' %}
- object CheckCommand "ssl_cert" {
- import "plugin-check-command"
- command = [ PluginDir + "/check_ssl_cert" ]
- arguments = {
- "-H" = "$ssl_cert_H$"
- "-A" = "$ssl_cert_A$"
- "-C" = "$ssl_cert_C$"
- "-e" = "$ssl_cert_e$"
- "-f" = "$ssl_cert_f$"
- "-i" = "$ssl_cert_i$"
- "-n" = "$ssl_cert_n$"
- "-N" = "$ssl_cert_N$"
- "-o" = "$ssl_cert_o$"
- "-p" = "$ssl_cert_p$"
- "-P" = "$ssl_cert_P$"
- "-s" = "$ssl_cert_s$"
- "-S" = "$ssl_cert_S$"
- "-r" = "$ssl_cert_r$"
- "-t" = "$ssl_cert_t$"
- "-w" = "$ssl_cert_w$"
- "-d" = "$ssl_cert_d$"
- }
- }
- {%- endif %}
|