update bw to 4.3, add .provides() to metadata reactors
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
7f0fb7a6e2
commit
2d42e5f7dd
29 changed files with 158 additions and 47 deletions
|
@ -37,7 +37,9 @@ defaults = {
|
|||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
@metadata_reactor.provides(
|
||||
'icinga2_api',
|
||||
)
|
||||
def autogenerate_sshmon_command(metadata):
|
||||
result = {
|
||||
'icinga2_api': {},
|
||||
|
@ -59,7 +61,9 @@ def autogenerate_sshmon_command(metadata):
|
|||
return result
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
@metadata_reactor.provides(
|
||||
'icinga2_api/basic/services',
|
||||
)
|
||||
def default_checks(metadata):
|
||||
disk_space_warning = metadata.get('sshmon/disk_space/warning', 15)
|
||||
disk_space_critical = metadata.get('sshmon/disk_space/critical', 5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue