This commit is contained in:
mwiegand 2022-08-16 22:39:42 +02:00
parent ad579d79a6
commit 3c0960766c
3 changed files with 3 additions and 10 deletions

View file

@ -2,5 +2,5 @@ const PluginDir = "/usr/lib/nagios/plugins"
const ManubulonPluginDir = "/usr/lib/nagios/plugins" const ManubulonPluginDir = "/usr/lib/nagios/plugins"
const PluginContribDir = "/usr/lib/nagios/plugins" const PluginContribDir = "/usr/lib/nagios/plugins"
const NodeName = "${hostname}" const NodeName = "${hostname}"
const ZoneName = "${hostname}" const ZoneName = NodeName
const TicketSalt = "" const TicketSalt = ""

View file

@ -3,12 +3,5 @@ object Endpoint NodeName {
} }
object Zone ZoneName { object Zone ZoneName {
endpoints = [ NodeName, "server.home.ckn.li" ] endpoints = [ NodeName ]
}
# WHY?????
object Endpoint "server.home.ckn.li" {
host = NodeName
} }

View file

@ -62,7 +62,7 @@ files = {
'group': 'nagios', 'group': 'nagios',
'mode': '0640', 'mode': '0640',
'context': { 'context': {
'hostname': node.metadata.get('icinga2/hostname') 'hostname': node.metadata.get('hostname')
}, },
'triggers': [ 'triggers': [
'svc_systemd:icinga2.service:restart', 'svc_systemd:icinga2.service:restart',