Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/icinga2/objects/common_checks.pp
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | vars => { | ||||
file_age_warning_time => '14400', # in seconds, warning after 4h | file_age_warning_time => '14400', # in seconds, warning after 4h | ||||
file_age_critical_time => '86400', # in seconds, critical after 24h | file_age_critical_time => '86400', # in seconds, critical after 24h | ||||
file_age_ignoremissing => 'true', | file_age_ignoremissing => 'true', | ||||
}, | }, | ||||
assign => ['host.vars.os == Linux'], | assign => ['host.vars.os == Linux'], | ||||
ignore => ['host.vars.noagent'], | ignore => ['host.vars.noagent'], | ||||
target => '/etc/icinga2/zones.d/global-templates/services.conf', | target => '/etc/icinga2/zones.d/global-templates/services.conf', | ||||
} | } | ||||
::icinga2::object::service {'logstash_errors': | |||||
import => ['generic-service'], | |||||
apply => true, | |||||
ardumont: Isn't it better to full qualify the path to the script?
or is it just a command name? (i… | |||||
Done Inline Actionsit's the command name as declared in static_checks.pp... so there is an inconsistency :) vsellier: it's the command name as declared in `static_checks.pp`... so there is an inconsistency :) | |||||
check_command => 'check_logstash_errors.sh', | |||||
command_endpoint => 'host.name', | |||||
assign => ['"check_logstash_errors.sh" in host.vars.plugins'], | |||||
ignore => ['host.vars.noagent'], | |||||
target => '/etc/icinga2/zones.d/global-templates/services.conf', | |||||
} | |||||
} | } |
Isn't it better to full qualify the path to the script?
or is it just a command name? (i think that's it).