Paladox has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/386261 )
Change subject: Add check gerrit ssh to service ...................................................................... Add check gerrit ssh to service This is similar to mutante patch https://gerrit.wikimedia.org/r/#/c/386258/ Change-Id: I62ebb4b5f41f554332a9a3a6268bb8a156af76c9 --- M templates/hosts.conf.erb M templates/services.conf.erb 2 files changed, 12 insertions(+), 0 deletions(-) Approvals: Paladox: Verified; Looks good to me, approved diff --git a/templates/hosts.conf.erb b/templates/hosts.conf.erb index 0e0ec30..6be7825 100644 --- a/templates/hosts.conf.erb +++ b/templates/hosts.conf.erb @@ -128,6 +128,9 @@ object Host "gerrit-test3.git.eqiad.wmflabs" { import "generic-host" address = "gerrit-test3.git.eqiad.wmflabs" + // floating ip + vars.ssh_port = "29418" + vars.address_ip = "208.80.155.149" vars.os = "Linux OS" vars.sla = "24x7" vars.host_name = "gerrit-test3.git.eqiad.wmflabs" diff --git a/templates/services.conf.erb b/templates/services.conf.erb index 87f9c46..40bfbc9 100644 --- a/templates/services.conf.erb +++ b/templates/services.conf.erb @@ -52,6 +52,15 @@ assign where (host.address || host.address6) && (host.vars.os == "Linux" || host.vars.os == "Linux OS") && host.vars.ssh_check != "disable" } +apply Service "check gerrit ssh" { + import "generic-service" + check_command = "nrpe-check-1arg" + vars.port = host.vars.ssh_port + vars.host = host.vars.address_ip + vars.check = "check_ssh" + assign where host.address === "gerrit-test3.git.eqiad.wmflabs" +} + apply Service for (http_vhost => config in host.vars.http_vhosts) { import "generic-service" -- To view, visit https://gerrit.wikimedia.org/r/386261 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I62ebb4b5f41f554332a9a3a6268bb8a156af76c9 Gerrit-PatchSet: 3 Gerrit-Project: labs/icinga2 Gerrit-Branch: master Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com> Gerrit-Reviewer: Dzahn <dz...@wikimedia.org> Gerrit-Reviewer: Paladox <thomasmulhall...@yahoo.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits