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
alias Ansible-managed Hosts
}
define service {
use ansible-generic-service
service_description SSH
check_command check_ssh
hostgroup_name ansible
}
# Commands
define command {

View File

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