add new status page to icinga

This commit is contained in:
Franzi 2023-09-10 09:48:20 +02:00
parent b38bc67a60
commit 563735d31a
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 107 additions and 43 deletions

View file

@ -2,6 +2,7 @@ hostname = "217.160.71.39"
bundles = [
"bird",
"icinga2",
"icinga2-statuspage",
"php",
"postgresql",
# 'simple-icinga-dashboard',
@ -15,6 +16,7 @@ groups = [
[metadata]
location = "ionos"
icinga_options.pretty_name = "icinga.franzi.business"
[metadata.interfaces.ens192]
ips = [
@ -49,53 +51,17 @@ permissions = [
"objects/query/Service",
]
# 'icinga2_api': {
# 'custom': {
# # redundant monitoring of services/hosts
# 'services': {
# 'flauschekatze.space CERTIFICATE': {
# 'check_command': 'check_https_cert_at_url',
# 'vars.domain': 'flauschekatze.space',
# },
# 'matrix.flauschekatze.space CERTIFICATE': {
# 'check_command': 'check_https_cert_at_url',
# 'vars.domain': 'matrix.flauschekatze.space',
# },
# },
# },
# },
# 'nginx': {
# 'vhosts': {
# 'statuspage': {
# 'domain': 'status.franzi.business',
# 'ssl': '_.franzi.business',
# 'webroot': '/opt/simple-icinga-dashboard/out',
# },
# },
# },
[metadata.icinga2-statuspage]
DOMAIN = "status.franzi.business"
SERVICEGROUP_ID = 80
[metadata.icinga2-statuspage.NAME_REPLACEMENTS]
" PROCESS$" = " SERVICE"
".+ VHOST (.+) CONTENT" = "WEB ACCESS \\1"
[metadata.postgresql]
version = 15
# 'simple-icinga-dashboard': {
# 'icinga2_api': {
# 'baseurl': 'https://127.0.0.1:5665',
# 'username': 'dashboard',
# 'password': vault.password_for('ovh.icinga2 icinga2 api_user dashboard'),
# },
# 'filters': {
# 'services': '"statuspage" in service.groups',
# },
# 'output': {
# 'page_title': 'franzi.business Service Status',
# },
# 'prettify': {
# 'CONTENT': '',
# 'NGINX': 'WEBSERVER',
# 'PROCESS': 'SERVICE',
# },
# },
[metadata.wireguard.peers.'home.router']
snat_to = "172.19.136.4"