icinga2: add pretty_name for status page
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
efd2875b17
commit
fc7655469f
8 changed files with 29 additions and 4 deletions
|
@ -4,11 +4,17 @@ object Host "${monitored_node.name}" {
|
|||
|
||||
address = "${monitored_node.metadata.get('icinga_options/hostname', monitored_node.hostname)}"
|
||||
|
||||
vars.os = "${monitored_node.os}"
|
||||
vars.sla = "${monitored_node.metadata.get('sla', '24x7')}"
|
||||
vars.period = "${sla_info[monitored_node.metadata.get('sla', '24x7')]}"
|
||||
vars.location = "${monitored_node.metadata.get('location', 'unknown')}"
|
||||
# used for determining service groups
|
||||
vars.bw_groups = [ "${'", "'.join(sorted({group.name for group in monitored_node.groups}))}" ]
|
||||
vars.location = "${monitored_node.metadata.get('location', 'unknown')}"
|
||||
vars.os = "${monitored_node.os}"
|
||||
|
||||
# used for status page
|
||||
vars.pretty_name = "${monitored_node.metadata.get('icinga_options/pretty_name', monitored_node.name)}"
|
||||
|
||||
vars.period = "${sla_info[monitored_node.metadata.get('sla', '24x7')]}"
|
||||
vars.sla = "${monitored_node.metadata.get('sla', '24x7')}"
|
||||
|
||||
vars.notification.sms = ${str(monitored_node.metadata.get('icinga_options/vars.notification.sms', True)).lower()}
|
||||
vars.notification.mail = true
|
||||
}
|
||||
|
|
|
@ -22,6 +22,9 @@ nodes['gce.bind01'] = {
|
|||
},
|
||||
},
|
||||
'external_ipv4': '34.89.208.78',
|
||||
'icinga_option': {
|
||||
'pretty_name': 'ns-1.kunbox.net',
|
||||
},
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
'ns-1.kunbox.net': {
|
||||
|
|
|
@ -18,6 +18,9 @@ nodes['gce.dns02'] = {
|
|||
},
|
||||
},
|
||||
'external_ipv4': '35.187.109.249',
|
||||
'icinga_option': {
|
||||
'pretty_name': 'ns-2.kunbox.net',
|
||||
},
|
||||
'backups': {
|
||||
'exclude_from_backups': True,
|
||||
},
|
||||
|
|
|
@ -18,6 +18,9 @@ nodes['gce.dns03'] = {
|
|||
},
|
||||
},
|
||||
'external_ipv4': '35.228.143.71',
|
||||
'icinga_option': {
|
||||
'pretty_name': 'ns-3.kunbox.net',
|
||||
},
|
||||
'backups': {
|
||||
'exclude_from_backups': True,
|
||||
},
|
||||
|
|
|
@ -23,6 +23,9 @@ nodes['htz-cloud.pirmasens'] = {
|
|||
'gateway6': 'fe80::1',
|
||||
},
|
||||
},
|
||||
'icinga_options': {
|
||||
'pretty_name': 'kunsmann.info',
|
||||
},
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
'mail.kunsmann.info': {
|
||||
|
|
|
@ -19,6 +19,9 @@ nodes['htz-cloud.pleroma'] = {
|
|||
'gateway6': 'fe80::1',
|
||||
},
|
||||
},
|
||||
'icinga_options': {
|
||||
'pretty_name': 'cybert-media.net',
|
||||
},
|
||||
'cron': {
|
||||
'auto-authorize-sm-users': '* * * * * root echo "UPDATE users SET approval_pending=false WHERE email LIKE \'\\%@seibert-media.net\' AND approval_pending=true;" | psql pleroma >/dev/null',
|
||||
},
|
||||
|
|
|
@ -38,6 +38,7 @@ nodes['htz-cloud.sewfile'] = {
|
|||
},
|
||||
},
|
||||
'icinga_options': {
|
||||
'pretty_name': 'sewfile.franzi.business',
|
||||
'vars.notification.sms': False,
|
||||
},
|
||||
'nginx': {
|
||||
|
|
|
@ -31,6 +31,9 @@ nodes['voc.pretalx'] = {
|
|||
'gateway6': '2a01:a700:48d1::1',
|
||||
},
|
||||
},
|
||||
'icinga_options': {
|
||||
'pretty_name': 'pretalx.c3voc.de',
|
||||
},
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
'pretalx': {
|
||||
|
|
Loading…
Reference in a new issue