From 4b37fd605b01850227a13653b1e1ed87c1f692f2 Mon Sep 17 00:00:00 2001 From: caelebfi Date: Wed, 10 Nov 2021 06:25:03 +0100 Subject: [PATCH] daily autocommit --- .etckeeper | 3 ++- check_mk/nginx_status.cfg | 5 +++++ cmk-update-agent.state | 2 +- nginx/conf.d/status.conf | 10 ++++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 check_mk/nginx_status.cfg create mode 100644 nginx/conf.d/status.conf diff --git a/.etckeeper b/.etckeeper index d66dc7d5..7d4c2fa4 100755 --- a/.etckeeper +++ b/.etckeeper @@ -26,7 +26,6 @@ mkdir -p './kernel/install.d' mkdir -p './libpaper.d' mkdir -p './mysql/mariadb.conf.d' mkdir -p './network/interfaces.d' -mkdir -p './nginx/conf.d' mkdir -p './nginx/conf.mail.d' mkdir -p './nginx/conf.stream.d' mkdir -p './nginx/modules-available' @@ -164,6 +163,7 @@ maybe chmod 0770 'check_mk' maybe chmod 0640 'check_mk/cmk-update-agent.cfg' maybe chmod 0640 'check_mk/docker.cfg' maybe chmod 0640 'check_mk/mk_inventory.cfg' +maybe chmod 0640 'check_mk/nginx_status.cfg' maybe chmod 0755 'cifs-utils' maybe chmod 0600 'cmk-update-agent.state' maybe chmod 0755 'console-setup' @@ -880,6 +880,7 @@ maybe chmod 0644 'networks' maybe chmod 0755 'nginx' maybe chmod 0644 'nginx/.htpasswd' maybe chmod 0755 'nginx/conf.d' +maybe chmod 0644 'nginx/conf.d/status.conf' maybe chmod 0755 'nginx/conf.mail.d' maybe chmod 0755 'nginx/conf.stream.d' maybe chmod 0644 'nginx/fastcgi.conf' diff --git a/check_mk/nginx_status.cfg b/check_mk/nginx_status.cfg new file mode 100644 index 00000000..a83ef6e9 --- /dev/null +++ b/check_mk/nginx_status.cfg @@ -0,0 +1,5 @@ +# Created by Check_MK Agent Bakery. +# This file is managed via WATO, do not edit manually or you +# lose your changes next time when you update the agent. + +servers = [{'address': '127.0.0.1', 'port': 80, 'protocol': 'http'}] diff --git a/cmk-update-agent.state b/cmk-update-agent.state index 59ecc4e4..ef9d4766 100644 --- a/cmk-update-agent.state +++ b/cmk-update-agent.state @@ -1 +1 @@ -{'protocol': 'http', 'installed_aghash': '5e6b5d10eb8b65e5', 'last_error': None, 'site': 'realm', 'last_check': 1636439366.2851403, 'host_name': 'serviceraspi.realm.local', 'server': '192.168.0.99', 'last_update': 1635436382.4816952, 'host_secret': 'pntxhkgisefetedlluhmbneceelnviymvmrfcsaezocoirlcjurakqmfhjuunxlv', 'user': 'caelebfi'} +{'protocol': 'http', 'installed_aghash': '0ff70cf619e2260e', 'last_error': None, 'site': 'realm', 'last_check': 1636521418.6336987, 'host_name': 'serviceraspi.realm.local', 'server': '192.168.0.99', 'last_update': 1636456021.7186606, 'host_secret': 'pntxhkgisefetedlluhmbneceelnviymvmrfcsaezocoirlcjurakqmfhjuunxlv', 'user': 'caelebfi'} diff --git a/nginx/conf.d/status.conf b/nginx/conf.d/status.conf new file mode 100644 index 00000000..605840d7 --- /dev/null +++ b/nginx/conf.d/status.conf @@ -0,0 +1,10 @@ +server { + listen 127.0.0.1:80; + listen [::1]:80; + location /nginx_status { + stub_status on; + access_log off; + allow 127.0.0.1; + deny all; + } +}