max_check_attempts: '5'
check_interval: '1m'
retry_interval: '30s'
- check_command: 'hostalive'
vars:
notification:
mail:
groups:
- 'icingaadmins'
+ 'check-by-ssh-service':
+ target: '/etc/icinga2/conf.d/service-templates.conf'
+ template: true
+ check_command: 'by_ssh'
+ vars:
+ 'original_check_command': check_command
+ check_command: 'by_ssh'
'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)'
notes: 'This is a load check'
- 'disk':
+ 'linux-disk':
target: '/etc/icinga2/conf.d/default-services.conf'
import:
- 'generic-service'
command_endpoint: 'host.name'
apply: true
assign:
- - 'host.address && (host.name == dev-monitoring-client.pixelpark.com || host.name == dev-monitoring.pixelpark.com)'
+ - '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':
+ 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 }}'
+ command_endpoint: 'host.name'
+ apply: true
+ assign:
+ - 'host.address && (host.name == aurora.pixelpark.net) && host.vars.os == Solaris'
+ notes: 'This checks whether there is enough local disk space left (check runs via SSH)'
'systemd-status':
target: '/etc/icinga2/conf.d/default-services.conf'
import: