From 6d8898f6bca47626db17ec9dd76f679698b08351 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 23 Jun 2017 18:41:42 +0000 Subject: [PATCH] ok let us try getting collectd to work --- roles/nagios_server/templates/httpd/nagios.conf.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/nagios_server/templates/httpd/nagios.conf.j2 b/roles/nagios_server/templates/httpd/nagios.conf.j2 index 2c78ab2a13..a08b8b0823 100644 --- a/roles/nagios_server/templates/httpd/nagios.conf.j2 +++ b/roles/nagios_server/templates/httpd/nagios.conf.j2 @@ -23,12 +23,14 @@ ScriptAlias /tac.cgi /usr/lib64/nagios/cgi-bin/tac.cgi Options ExecCGI -{% if vars['nagios_location'] == 'external' %} SetHandler server-status +{% if vars['nagios_location'] == 'external' %} Require ip 2610:28:3090:3001:dead:beef:cafe:fed9 - +{% else %} + Require ip 127.0.0.1 {% endif %} + RewriteEngine on RewriteRule ^/$ /nagios/ [R]