Alexandros Kosiaris has uploaded a new change for review.
https://gerrit.wikimedia.org/r/125989
Change subject: Introduce check to test if dhclient is running
......................................................................
Introduce check to test if dhclient is running
There have been cases with machines being network configured via dhcp
and not statically. The reason for those was either human error or
misconfiguration of autoinstall. However, these situations were never
caught and would cause outages under certain conditions. Introducing
this check to catch exactly that
Change-Id: I04f10ff7839c38714db8f3828973d017ceab86a9
---
M modules/base/manifests/monitoring/host.pp
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/89/125989/1
diff --git a/modules/base/manifests/monitoring/host.pp
b/modules/base/manifests/monitoring/host.pp
index 9f20517..d5b6e2f 100644
--- a/modules/base/manifests/monitoring/host.pp
+++ b/modules/base/manifests/monitoring/host.pp
@@ -106,4 +106,7 @@
description => 'check configured eth',
nrpe_command => '/usr/local/lib/nagios/plugins/check_eth',
}
+ nrpe::monitor_service { 'check_dhclient',
+ description => 'check if dhclient is running',
+ nrpe_command => '/usr/lib/nagios/plugins/check_procs -w 0:0 -c 0:0 -C
dhclient',
}
--
To view, visit https://gerrit.wikimedia.org/r/125989
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I04f10ff7839c38714db8f3828973d017ceab86a9
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits