Dzahn has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/310383 )

Change subject: monitoring/base: add temperature monitoring via NRPE
......................................................................


monitoring/base: add temperature monitoring via NRPE

Adds an Icinga check on all non-virtual hosts, to check the
temperature via IPMI and NRPE.

The check_ipmi_sensors plugin can check different IPMI sensor
types. This limits it to temperature.

  [-T <sensor type>]
       limit sensors to query based on IPMI sensor type.
       Examples for IPMI sensor types are 'Fan', 'Temperature', 'Voltage', ...
       See the output of the FreeIPMI command 'ipmi-sensors -L' and chapter
       '42.2 Sensor Type Codes and Data' of the IPMI 2.0 spec for a full list
       of possible sensor types. The available types depend on your particular
       server and the available sensors there.

Bug: T125205
Change-Id: Iefd4e699302a7adc15537cdbdb71bcaa0dced18c
---
M modules/base/manifests/monitoring/host.pp
1 file changed, 8 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Dzahn: Looks good to me, approved



diff --git a/modules/base/manifests/monitoring/host.pp 
b/modules/base/manifests/monitoring/host.pp
index 6d19fe1..8cc3e64 100644
--- a/modules/base/manifests/monitoring/host.pp
+++ b/modules/base/manifests/monitoring/host.pp
@@ -155,4 +155,12 @@
             nrpe_command => '/usr/local/lib/nagios/plugins/check_cpufreq 600',
         }
     }
+
+    # check temperature sensors via IPMI, unless VM (T125205)
+    if str2bool($facts['is_virtual']) == false {
+        nrpe::monitor_service { 'check_ipmi_temp':
+            description  => 'IPMI Temperature',
+            nrpe_command => '/usr/local/lib/nagios/plugins/check_ipmi_sensor 
--noentityabsent -T Temperature -ST Temperature',
+        }
+    }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/310383
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iefd4e699302a7adc15537cdbdb71bcaa0dced18c
Gerrit-PatchSet: 8
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: Ema <e...@wikimedia.org>
Gerrit-Reviewer: Gehel <guillaume.leder...@wikimedia.org>
Gerrit-Reviewer: Paladox <thomasmulhall...@yahoo.com>
Gerrit-Reviewer: Volans <rcocci...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to