ssl_cert.conf 459 B

12345678910111213141516171819
  1. #
  2. # Old Icinga2 doesn't ship with check command for ssl_cert check
  3. # and new version have a different arguments definitions, so we
  4. # hack this by adding our own CheckCommand \o/
  5. #
  6. object CheckCommand "ssl_host_cert" {
  7. import "plugin-check-command"
  8. command = [ PluginDir + "/check_ssl_cert" ]
  9. arguments = {
  10. "-H" = "$ssl_cert_host$"
  11. "-f" = "$ssl_cert_file$"
  12. "-w" = "$ssl_cert_warn$"
  13. "-c" = "$ssl_cert_crit$"
  14. }
  15. vars.ssl_cert_host = "localhost"
  16. }