coren has uploaded a new change for review.
https://gerrit.wikimedia.org/r/188814
Change subject: Labs: Make sure manage-nfs-volumes is running
......................................................................
Labs: Make sure manage-nfs-volumes is running
Make the service ensure => running and add an Icinga check that
it actually is.
Bug: T88669
Bug: T88664
Change-Id: I49eabc7e240d852e25c3564c403152a331d7f186
---
M modules/openstack/manifests/project-nfs-storage-service.pp
1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/14/188814/1
diff --git a/modules/openstack/manifests/project-nfs-storage-service.pp
b/modules/openstack/manifests/project-nfs-storage-service.pp
index e8b7c8e..27cbd98 100644
--- a/modules/openstack/manifests/project-nfs-storage-service.pp
+++ b/modules/openstack/manifests/project-nfs-storage-service.pp
@@ -10,7 +10,12 @@
}
service { 'manage-nfs-volumes':
- enable => true,
+ ensure => running,
+ }
+
+ nrpe::monitor_service { 'manage-nfs-volumes':
+ description => 'manage_nfs_volumes_running',
+ nrpe_command => "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1
--ereg-argument-array '^/usr/bin/python /usr/local/sbin/manage-nfs-volumes'"
}
$sudo_privs = [ 'ALL = NOPASSWD: /bin/mkdir -p /srv/*',
--
To view, visit https://gerrit.wikimedia.org/r/188814
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I49eabc7e240d852e25c3564c403152a331d7f186
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: coren <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits