Dzahn has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/348976 )
Change subject: base: add icinga check for CPU frequency on Dell R320
..
base: add icinga check for CPU frequency on Dell R320
Add an Icinga monitoring service that checks for
CPU frequency lower than 600MHz and is only added on
Dell R320 servers. Since we had several cases of unexpected
throttling to 200MHz in the past and we would like to detect
those earlier.
Bug: T163220
Change-Id: Ia0ffce19b110439efad5b269fde0b946c8218e0e
---
R modules/base/files/monitoring/check_cpufreq
M modules/base/manifests/monitoring/host.pp
2 files changed, 16 insertions(+), 0 deletions(-)
Approvals:
jenkins-bot: Verified
Dzahn: Looks good to me, approved
diff --git a/modules/icinga/files/check_cpufreq
b/modules/base/files/monitoring/check_cpufreq
similarity index 100%
rename from modules/icinga/files/check_cpufreq
rename to modules/base/files/monitoring/check_cpufreq
diff --git a/modules/base/manifests/monitoring/host.pp
b/modules/base/manifests/monitoring/host.pp
index c30050c..1966f14 100644
--- a/modules/base/manifests/monitoring/host.pp
+++ b/modules/base/manifests/monitoring/host.pp
@@ -136,4 +136,20 @@
nrpe_command =>
'/usr/local/lib/nagios/plugins/check_systemd_state',
}
}
+
+if $::productname == 'PowerEdge R320' {
+
+file { '/usr/local/lib/nagios/plugins/check_cpufreq':
+ensure => present,
+source => 'puppet:///modules/base/check_cpufreq',
+owner => 'root',
+group => 'root',
+mode => '0555',
+}
+
+::nrpe::monitor_service { 'check_cpufreq':
+description => 'CPU frequency',
+nrpe_command => '/usr/local/lib/nagios/plugins/check_cpufreq 600',
+}
+}
}
--
To view, visit https://gerrit.wikimedia.org/r/348976
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia0ffce19b110439efad5b269fde0b946c8218e0e
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn
Gerrit-Reviewer: Dzahn
Gerrit-Reviewer: Gehel
Gerrit-Reviewer: Giuseppe Lavagetto
Gerrit-Reviewer: jenkins-bot <>
___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits