Skip to content
Snippets Groups Projects
Commit e3cf967f authored by François Tigeot's avatar François Tigeot
Browse files

icinga2: Monitor the Elasticsearch cluster

parent 5d8ae7f3
No related branches found
No related tags found
No related merge requests found
......@@ -23,4 +23,23 @@ class profile::icinga2::objects::static_checks {
http_string => '<title>Software Heritage</title>',
},
}
::icinga2::object::host {'swh-logging-prod':
check_command => 'hostalive4',
address => '127.0.0.1',
target => $checks_file,
}
::icinga2::object::service {'swh-logging-prod cluster':
host_name => 'swh-logging-prod',
check_command => 'check_escluster',
target => $checks_file,
}
::icinga2::object::checkcommand {'check_escluster':
import => ['plugin-check-command'],
command => '/usr/lib/nagios/plugins/icinga_check_elasticsearch.sh',
target => $checks_file,
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment