bundles/octoprint: add update check

This commit is contained in:
Franzi 2020-11-21 20:35:29 +01:00
parent 91f2fd839b
commit 4f5e462c94
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 70 additions and 0 deletions

View file

@ -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',
},
},
},
},
}