Skip to content

Commit

Permalink
various: Update Icinga2 check commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ppmathis committed Jun 29, 2019
1 parent 2f08b36 commit f3ae359
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions commands.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ object CheckCommand "nc_system_load" {
vars.nc_system_load_per_cpu = true
}

object CheckCommand "nc_system_mdraid" {
import "plugin-check-command"

command = [ nagocheck_bin, "system", "mdraid" ]
arguments = nagocheck_args
}

object CheckCommand "nc_system_memory" {
import "plugin-check-command"

Expand Down Expand Up @@ -111,3 +118,31 @@ object CheckCommand "nc_system_uptime" {
vars.nc_system_uptime_warning = "60:"
vars.nc_system_uptime_critical = ""
}

object CheckCommand "nc_system_zfs" {
import "plugin-check-command"

command = [ nagocheck_bin, "system", "zfs" ]
arguments = nagocheck_args
}

object CheckCommand "nc_frr_bgp_neighbor" {
import "plugin-check-command"

command = [ nagocheck_bin, "frrouting", "bgp-neighbor" ]
arguments = nagocheck_args + {
"<neighbor>" = {
value = "$nc_frr_bgp_neighbor_address$"
required = true
skip_key = true
}

"--mode" = "$nc_frr_bgp_neighbor_mode$"
"--vtysh-cmd" = "$nc_frr_bgp_neighbor_vtysh_cmd$"
"--prefix-limit" = "$nc_frr_bgp_neighbor_prefix_limit$"
"--uptime" = "$nc_frr_bgp_neighbor_uptime$"
"--critical" = {
set_if = "$nc_frr_bgp_neighbor_critical$"
}
}
}

0 comments on commit f3ae359

Please sign in to comment.