bundles/octoprint: add update check
This commit is contained in:
parent
91f2fd839b
commit
4f5e462c94
4 changed files with 70 additions and 0 deletions
|
@ -18,3 +18,22 @@ defaults = {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
def icinga(metadata):
|
||||
if not metadata.get('octoprint/api_key', None):
|
||||
return {}
|
||||
|
||||
return {
|
||||
'icinga2_api': {
|
||||
'octoprint': {
|
||||
'services': {
|
||||
'OCTOPRINT UPDATE': {
|
||||
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_octoprint_update',
|
||||
'retry_interval': '60m',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue