Skip to content

Commit

Permalink
Improve CheckCommand for Icinga2
Browse files Browse the repository at this point in the history
- Add default values
- Add apiserver var
  • Loading branch information
phibos committed Nov 18, 2021
1 parent 82e93cc commit e7ca9c8
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,21 @@ Command:
command = [ PluginDir + "/check_kubernetes.sh" ]

arguments = {
"-H" = "$kube_scheme$://$host.address$:$kube_port$"
"-m" = "$kube_mode$"
"-o" = "$kube_timeout$"
"-T" = "$kube_pass$"
"-t" = "$kube_tokenfile$"
"-K" = "$kube_config$"
"-N" = "$kube_ns$"
"-n" = "$kube_name$"
"-w" = "$kube_warn$"
"-c" = "$kube_crit$"
"-H" = "$kube_apiserver$"
"-m" = "$kube_mode$"
"-o" = "$kube_timeout$"
"-T" = "$kube_pass$"
"-t" = "$kube_tokenfile$"
"-K" = "$kube_config$"
"-N" = "$kube_ns$"
"-n" = "$kube_name$"
"-w" = "$kube_warn$"
"-c" = "$kube_crit$"
}
vars.kube_host = "$host.address$"
vars.kube_port = 6443
vars.kube_scheme = "https"
vars.kube_apiserver = "$kube_scheme$://$kube_host$:$kube_port$"
}

Services:
Expand Down

0 comments on commit e7ca9c8

Please sign in to comment.