Faidon Liambotis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/95972
Change subject: base: add check_disk check exception for Varnish
......................................................................
base: add check_disk check exception for Varnish
Varnish caches are purposefully at 99% full, since we fill the
partitions up with cache data. This makes check_disk unhappy, which in
turn makes us unhappy by having a huge list of cp* boxes CRITICAL (it'll
also make us ignore any real disk full checks for their /).
Add a gross hack with /srv/sd[a-b][0-3] as an exception and hope there
isn't any other class of boxes that matches this regexp.
Change-Id: I72a0b98f1bd5c4521ecef281fd2f0be8f52f8f3c
---
M modules/base/manifests/monitoring/host.pp
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/72/95972/1
diff --git a/modules/base/manifests/monitoring/host.pp
b/modules/base/manifests/monitoring/host.pp
index 31a2069..3142480 100644
--- a/modules/base/manifests/monitoring/host.pp
+++ b/modules/base/manifests/monitoring/host.pp
@@ -63,10 +63,13 @@
nrpe_command => '/usr/bin/sudo /usr/local/bin/check-raid.py',
}
+ # the -A -i ... part is a gross hack to workaround Varnish partitions
+ # that are purposefully at 99%. Better ideas are welcome.
nrpe::monitor_service { 'disk_space':
description => 'Disk space',
- nrpe_command => '/usr/lib/nagios/plugins/check_disk -w 6% -c 3% -l
-e',
+ nrpe_command => '/usr/lib/nagios/plugins/check_disk -w 6% -c 3% -l
-e -A -i "/srv/sd[a-b][1-3]"',
}
+
nrpe::monitor_service { 'dpkg':
description => 'DPKG',
nrpe_command => '/usr/local/lib/nagios/plugins/check_dpkg',
--
To view, visit https://gerrit.wikimedia.org/r/95972
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I72a0b98f1bd5c4521ecef281fd2f0be8f52f8f3c
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits