Franziska Kunsmann
2d42e5f7dd
All checks were successful
bundlewrap/pipeline/head This commit looks good
42 lines
1,009 B
Python
42 lines
1,009 B
Python
defaults = {
|
|
'backups': {
|
|
'paths': {
|
|
'/opt/octoprint',
|
|
},
|
|
},
|
|
'users': {
|
|
'octoprint': {
|
|
'home': '/opt/octoprint',
|
|
'sudo_commands': {
|
|
'/usr/bin/vcgencmd',
|
|
'/opt/octoprint/systemd-wrapper',
|
|
},
|
|
'groups': {
|
|
'dialout',
|
|
'gpio',
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
|
|
@metadata_reactor.provides(
|
|
'icinga2_api/octoprint/services',
|
|
)
|
|
def icinga(metadata):
|
|
if 'api_key' not in metadata.get('octoprint', {}):
|
|
return {}
|
|
|
|
return {
|
|
'icinga2_api': {
|
|
'octoprint': {
|
|
'services': {
|
|
'OCTOPRINT UPDATE': {
|
|
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_octoprint_update',
|
|
'vars.notification.mail': True,
|
|
'retry_interval': '60m',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|