Alexandros Kosiaris has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/364415 )

Change subject: monitoring: Check mgmt SSH availability as well
......................................................................

monitoring: Check mgmt SSH availability as well

We would also like to make sure we have working access via SSH to all
management interfaces.

Bug: T169321
Change-Id: I9c6f31a2b0646cc687f79f4d9daf597691d248b2
---
M modules/monitoring/manifests/host.pp
1 file changed, 9 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/15/364415/1

diff --git a/modules/monitoring/manifests/host.pp 
b/modules/monitoring/manifests/host.pp
index 10b1d1e..8eeb971 100644
--- a/modules/monitoring/manifests/host.pp
+++ b/modules/monitoring/manifests/host.pp
@@ -120,11 +120,19 @@
         create_resources($rtype, $mgmt_host)
         monitoring::service { "dns_${title}.mgmt.${::site}.wmnet":
             description    => "DNS ${title}.mgmt.${::site}.wmnet",
-            host           =>  "${title}.mgmt.${::site}.wmnet",
+            host           => "${title}.mgmt.${::site}.wmnet",
             check_command  => "check_fqdn!${facts['ipmi_lan']['ipaddress']}",
             group          => 'mgmt',
             check_interval => 60,
             retry_interval => 60,
         }
+        monitoring::service { "ssh_${title}.mgmt.${::site}.wmnet":
+            description    => "SSH ${title}.mgmt.${::site}.wmnet",
+            host           => "${title}.mgmt.${::site}.wmnet",
+            check_command  => 'check_ssh',
+            group          => 'mgmt',
+            check_interval => 60,
+            retry_interval => 60,
+        }
     }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/364415
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c6f31a2b0646cc687f79f4d9daf597691d248b2
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

Reply via email to