Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
make use of the computed_host in the default icinga checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mburger committed Mar 12, 2015
1 parent 44c316b commit 4961415
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/url.pp
Expand Up @@ -73,9 +73,9 @@
}

$default_check_command = $username ? {
undef => "${real_check}!${computed_target}!${port}!${url}!${pattern}!${useragent}" ,
'' => "${real_check}!${computed_target}!${port}!${url}!${pattern}!${useragent}" ,
default => "${real_check}!${computed_target}!${port}!${url}!${pattern}!${username}:${password}!${useragent}" ,
undef => "${real_check}!${computed_target}!${computed_host}!${port}!${url}!${pattern}!${useragent}" ,
'' => "${real_check}!${computed_target}!${computed_host}!${port}!${url}!${pattern}!${useragent}" ,
default => "${real_check}!${computed_target}!${computed_host}!${port}!${url}!${pattern}!${username}:${password}!${useragent}" ,
}

$check_command = $checksource ? {
Expand Down

0 comments on commit 4961415

Please sign in to comment.