From a9fd44cfdd2853058fb4375518acc22b9967c08c Mon Sep 17 00:00:00 2001 From: Tyler Griffiths Date: Thu, 7 Nov 2019 13:19:34 +0000 Subject: [PATCH 1/3] Added example commands.conf with CheckCommand --- commands.conf | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 commands.conf 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" + } + } +} + From c3c6b45c9330799bb61f415ac5886c0721531454 Mon Sep 17 00:00:00 2001 From: Tyler Griffiths Date: Thu, 7 Nov 2019 13:23:00 +0000 Subject: [PATCH 2/3] Added example services.conf with Service object --- services.conf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 services.conf diff --git a/services.conf b/services.conf new file mode 100644 index 0000000..83f0dde --- /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 +} \ No newline at end of file From b57cdb7ef266c27ee8339a57f38a5207e907b92d Mon Sep 17 00:00:00 2001 From: Tyler Griffiths Date: Thu, 7 Nov 2019 13:31:37 +0000 Subject: [PATCH 3/3] Added newline at EOF --- services.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services.conf b/services.conf index 83f0dde..849d5f7 100644 --- a/services.conf +++ b/services.conf @@ -5,4 +5,4 @@ object Service "example SSL scan" { check_timeout = 5m vars.domain_check = "example.com" vars.max_cache_age = 1 -} \ No newline at end of file +}