Move SSH check into YAML declaration of services

This commit is contained in:
Salt 2021-09-07 13:29:19 -05:00
parent 8e845b5f4e
commit 2a7d343ef1
2 changed files with 3 additions and 6 deletions

View File

@ -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 {

View File

@ -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