[tor-commits] [metrics-cloud/master] monitor: Adds http commands with custom ports

irl at torproject.org irl at torproject.org
Thu Oct 3 10:56:23 UTC 2019


commit 263f3b097d3b7730da7ec561934644fd0424fec0
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Thu Oct 3 11:56:16 2019 +0100

    monitor: Adds http commands with custom ports
---
 ansible/roles/metrics-monitor/files/http_commands.cfg | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ansible/roles/metrics-monitor/files/http_commands.cfg b/ansible/roles/metrics-monitor/files/http_commands.cfg
index ecf4b46..ae455b7 100644
--- a/ansible/roles/metrics-monitor/files/http_commands.cfg
+++ b/ansible/roles/metrics-monitor/files/http_commands.cfg
@@ -4,7 +4,16 @@ define command{
 }
 
 define command{
+   command_name    check_https_url_content_port
+   command_line    /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -u '$ARG1$' -s '$ARG2$' -p '$ARG3$'
+}
+
+define command{
    command_name    check_http_redirect
    command_line    /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -e 'HTTP/1.1 301' -u '/' -d 'Location: https:'
 }
 
+define command {
+    command_name check_https_cert_expiry
+    command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -C 10,3 -p '$ARG1$'
+}



More information about the tor-commits mailing list