Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/icinga2/objects/agent_checks.pp
# Checks that need to be supported on icinga2 agents | # Checks that need to be supported on icinga2 agents | ||||
class profile::icinga2::objects::agent_checks { | class profile::icinga2::objects::agent_checks { | ||||
$prometheus_host = lookup('prometheus::server::fqdn') | |||||
$prometheus_port = lookup('prometheus::server::listen_port') | $prometheus_port = lookup('prometheus::server::listen_port') | ||||
$prometheus_url = "pergamon.internal.softwareheritage.org:${prometheus_port}" | $prometheus_url = "http://${prometheus_host}:${prometheus_port}" | ||||
$plugins = { | $plugins = { | ||||
'check_journal' => { | 'check_journal' => { | ||||
arguments => { | arguments => { | ||||
'-f' => { | '-f' => { | ||||
'value' => '$journal_cursor_file$', | 'value' => '$journal_cursor_file$', | ||||
'set_if' => '{{ var filename = macro("$journal_cursor_file$"); return len(filename) > 0 }}', | 'set_if' => '{{ var filename = macro("$journal_cursor_file$"); return len(filename) > 0 }}', | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |