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
|
hostgroup_name ansible
|
||||||
alias Ansible-managed Hosts
|
alias Ansible-managed Hosts
|
||||||
}
|
}
|
||||||
define service {
|
|
||||||
use ansible-generic-service
|
|
||||||
service_description SSH
|
|
||||||
check_command check_ssh
|
|
||||||
hostgroup_name ansible
|
|
||||||
}
|
|
||||||
|
|
||||||
# Commands
|
# Commands
|
||||||
define command {
|
define command {
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
- name: HTTPS
|
- name: HTTPS
|
||||||
command: check_http!--ssl
|
command: check_http!--ssl
|
||||||
hostgroup: nagios-checkhttp
|
hostgroup: nagios-checkhttp
|
||||||
|
- name: SSH
|
||||||
|
command: check_ssh
|
||||||
|
hostgroup: ansible
|
||||||
# Agented checks
|
# Agented checks
|
||||||
- name: CPU Load
|
- name: CPU Load
|
||||||
command: check_nrpe!check_load
|
command: check_nrpe!check_load
|
||||||
|
Loading…
Reference in New Issue
Block a user