Move SSH check into YAML declaration of services
This commit is contained in:
parent
8e845b5f4e
commit
2a7d343ef1
@ -42,12 +42,6 @@ define hostgroup {
|
||||
hostgroup_name ansible
|
||||
alias Ansible-managed Hosts
|
||||
}
|
||||
define service {
|
||||
use ansible-generic-service
|
||||
service_description SSH
|
||||
check_command check_ssh
|
||||
hostgroup_name ansible
|
||||
}
|
||||
|
||||
# Commands
|
||||
define command {
|
||||
|
@ -13,6 +13,9 @@
|
||||
- name: HTTPS
|
||||
command: check_http!--ssl
|
||||
hostgroup: nagios-checkhttp
|
||||
- name: SSH
|
||||
command: check_ssh
|
||||
hostgroup: ansible
|
||||
# Agented checks
|
||||
- name: CPU Load
|
||||
command: check_nrpe!check_load
|
||||
|
Loading…
Reference in New Issue
Block a user