From f3ae3594c24701254be692a4bb565505d40256a7 Mon Sep 17 00:00:00 2001 From: Pascal Mathis Date: Sat, 29 Jun 2019 16:15:40 +0200 Subject: [PATCH] various: Update Icinga2 check commands --- commands.conf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/commands.conf b/commands.conf index a26ac2b..7934286 100644 --- a/commands.conf +++ b/commands.conf @@ -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" @@ -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 + { + "" = { + 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$" + } + } +}