nagios check for checking docker containers
This commit is contained in:
parent
29302b9a54
commit
ecebd86da3
2 changed files with 10 additions and 0 deletions
|
@ -963,6 +963,7 @@ log-1.sveidas.se:
|
|||
eid::dockerhost:
|
||||
version: '5:20.10.9~3-0~ubuntu-bionic'
|
||||
sunet::frontend::load_balancer:
|
||||
fe_servers:
|
||||
|
||||
web-1.qa.sveidas.se:
|
||||
openstack_dockerhost:
|
||||
|
|
|
@ -130,6 +130,9 @@ class https_server {
|
|||
|
||||
}
|
||||
|
||||
class fe_servers {
|
||||
}
|
||||
|
||||
class eidas_log {
|
||||
ensure_resource('file','/etc/logrotate.d',{
|
||||
ensure => 'directory',
|
||||
|
@ -1157,6 +1160,12 @@ class nagios_monitor {
|
|||
description => 'Processes need restart',
|
||||
contact_groups => ['alerts']
|
||||
}
|
||||
nagioscfg::service {'check_docker_containers':
|
||||
hostgroup_name => ['fe_servers'],
|
||||
check_command => 'check_nrpe_1arg!check_docker_containers',
|
||||
description => 'Check Docker Containers',
|
||||
contact_groups => ['alerts']
|
||||
}
|
||||
nagioscfg::command {'check_ssl_cert_3':
|
||||
command_line => "/usr/lib/nagios/plugins/check_ssl_cert -A -H '\$HOSTNAME\$' -c '\$ARG2\$' -w '\$ARG1\$' -p '\$ARG3\$'"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue