wip
This commit is contained in:
parent
ad579d79a6
commit
3c0960766c
3 changed files with 3 additions and 10 deletions
|
@ -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 = ""
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue