check_command: 'by_ssh'
vars:
'original_check_command': check_command
- check_command: 'by_ssh'
+ 'by_ssh_address': host.name
+ 'by_ssh_logname': 'monitoring'
+ 'by_ssh_identity': '/opt/pixelpark-monitoring-checks/monitoring.key'
'active-directory':
target: '/etc/icinga2/conf.d/services.conf'
import:
assign:
- 'host.address && (host.name == dev-monitoring-client.pixelpark.com || host.name == dev-monitoring.pixelpark.com) && host.vars.os == Linux'
notes: 'This checks whether there is enough local disk space left'
- 'solaris-disk':
+ 'service-system-log':
target: '/etc/icinga2/conf.d/default-services.conf'
import:
- 'generic-service'
- 'check-by-ssh-service'
- check_command: 'disk'
vars:
- 'warning': 85
- 'critical': 95
- 'by_ssh_command': '{{ get_check_command("disk").command }}'
- 'by_ssh_arguments': '{{ get_check_command("disk").arguments }}'
+ 'by_ssh_command': '/opt/pixelpark-monitoring-checks system-log'
apply: true
assign:
- 'host.address && (host.name == test-slave01-bmas-gsb6-de.pixelpark.net) && host.vars.os == Solaris'