bundles/icinga2: re-add statusmonitor
This commit is contained in:
parent
e64ae3aef7
commit
bbc69dfd25
2 changed files with 27 additions and 5 deletions
|
@ -275,6 +275,27 @@ files = {
|
||||||
'mode': '0660',
|
'mode': '0660',
|
||||||
'group': 'icingaweb2',
|
'group': 'icingaweb2',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
# monitoring
|
||||||
|
'/etc/icinga2/icinga_statusmonitor.py': {
|
||||||
|
'triggers': {
|
||||||
|
'svc_systemd:icinga_statusmonitor:restart',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'/usr/local/lib/systemd/system/icinga_statusmonitor.service': {
|
||||||
|
'triggers': {
|
||||||
|
'action:systemd-reload',
|
||||||
|
'svc_systemd:icinga_statusmonitor:restart',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
svc_systemd['icinga_statusmonitor'] = {
|
||||||
|
'needs': {
|
||||||
|
'file:/etc/icinga2/icinga_statusmonitor.py',
|
||||||
|
'file:/usr/local/lib/systemd/system/icinga_statusmonitor.service',
|
||||||
|
'pkg_apt:python3-flask',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
actions = {
|
actions = {
|
||||||
|
@ -316,15 +337,12 @@ for name in files:
|
||||||
for name in symlinks:
|
for name in symlinks:
|
||||||
icinga_run_deps.add(f'symlink:{name}')
|
icinga_run_deps.add(f'symlink:{name}')
|
||||||
|
|
||||||
svc_systemd = {
|
svc_systemd['icinga2'] = {
|
||||||
'icinga2': {
|
'needs': icinga_run_deps,
|
||||||
'needs': icinga_run_deps,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# The actual hosts and services management starts here
|
# The actual hosts and services management starts here
|
||||||
bundles = set()
|
bundles = set()
|
||||||
downtimes = []
|
downtimes = []
|
||||||
|
|
|
@ -19,6 +19,7 @@ defaults = {
|
||||||
'icingaweb2': {},
|
'icingaweb2': {},
|
||||||
'icingaweb2-module-monitoring': {},
|
'icingaweb2-module-monitoring': {},
|
||||||
'python3-easysnmp': {},
|
'python3-easysnmp': {},
|
||||||
|
'python3-flask': {},
|
||||||
'snmp': {},
|
'snmp': {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -131,6 +132,9 @@ def nginx(metadata):
|
||||||
'/api/': {
|
'/api/': {
|
||||||
'target': 'https://127.0.0.1:5665/',
|
'target': 'https://127.0.0.1:5665/',
|
||||||
},
|
},
|
||||||
|
'/statusmonitor/': {
|
||||||
|
'target': 'http://127.0.0.1:5000/',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'extras': True,
|
'extras': True,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue