From e5c04c35b415d9f3897217be87891202b7274ea4 Mon Sep 17 00:00:00 2001 From: MarcusCaepio <7324088+MarcusCaepio@users.noreply.github.com> Date: Mon, 23 Nov 2020 13:50:37 +0100 Subject: [PATCH] Added new options for ipmi-sensor to ITL Regarding my PR at https://github.com/thomas-krenn/check_ipmi_sensor_v3/pull/42 I want to add the new options to the Icinga ITL. --- doc/10-icinga-template-library.md | 2 ++ itl/plugins-contrib.d/ipmi.conf | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index f39793c96..92c531ed6 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -2906,6 +2906,8 @@ ipmi_sensor_id | **Optional.** Include sensor matching ipmi_se ipmi_protocol_lan_version | **Optional.** Change the protocol LAN version. Defaults to "LAN_2_0". ipmi_number_of_active_fans | **Optional.** Number of fans that should be active. Otherwise a WARNING state is returned. ipmi_show_fru | **Optional.** Print the product serial number if it is available in the IPMI FRU data. +ipmi_show_assettag | **Optional.** Print the assettag if it is available in the IPMI FRU data. (--fru is mandatory) +ipmi_show_board | **Optional.** Print additional motherboard informations if it is available in the IPMI FRU data. (--fru is mandatory) ipmi_no_sel_checking | **Optional.** Turn off system event log checking via ipmi-sel. ipmi_no_thresholds | **Optional.** Turn off performance data thresholds from output-sensor-thresholds. ipmi_verbose | **Optional.** Be Verbose multi line output, also with additional details for warnings. diff --git a/itl/plugins-contrib.d/ipmi.conf b/itl/plugins-contrib.d/ipmi.conf index 200d56747..6b72ae682 100644 --- a/itl/plugins-contrib.d/ipmi.conf +++ b/itl/plugins-contrib.d/ipmi.conf @@ -74,6 +74,14 @@ object CheckCommand "ipmi-sensor" { set_if = "$ipmi_show_fru$" description = "Print the product serial number got by ipmi-fru" } + "--assettag" = { + set_if = "$ipmi_show_assettag$" + description = "Print the assettag if it is available in the IPMI FRU data. (--fru is mandatory)" + } + "--board" = { + set_if = "$ipmi_show_board$" + description = "Print additional motherboard information if it is available in the IPMI FRU data. (--fru is mandatory)" + } "--noentityabsent" = { set_if = "$ipmi_noentityabsent$" description = "Skip sensor checks for sensors that have 'noentityabsent' as event state"