diff --git a/commands.conf b/commands.conf new file mode 100644 index 0000000..144c0b4 --- /dev/null +++ b/commands.conf @@ -0,0 +1,29 @@ +object CheckCommand "check_sslscan" { + import "plugin-check-command" + + command = [ PluginDir + "check_sslscan" ] + + arguments = { + "-H" = { + value = "$domain_check$" + description = "Domain to test" + } + "-w" = { + value = "$grade_warning$" + description = "Grade at which to warn" + } + "-c" = { + value = "$grade_critical$" + description = "Grade to consider critical" + } + "-a" = { + value = "$max_cache_age$" + description = "Maximum cache age in days" + } + "-ip" = { + value = "$ip_address$" + description = "IP address to test" + } + } +} + diff --git a/services.conf b/services.conf new file mode 100644 index 0000000..849d5f7 --- /dev/null +++ b/services.conf @@ -0,0 +1,8 @@ +object Service "example SSL scan" { + host_name = "localhost" + check_command = "check_sslscan" + check_interval = 1d + check_timeout = 5m + vars.domain_check = "example.com" + vars.max_cache_age = 1 +}