summaryrefslogtreecommitdiff
path: root/puppet/modules/site_nagios
diff options
context:
space:
mode:
authorMicah Anderson <micah@leap.se>2014-08-21 17:12:55 -0400
committerMicah Anderson <micah@leap.se>2014-08-21 17:12:55 -0400
commitaa2645c97d0e983e21e271c7cab26f36609e85fe (patch)
tree44f01fb23d1053d44c55d35f95255bb42341a880 /puppet/modules/site_nagios
parentc62c9c2e63cfc82fc57f321609e407cfeabd9cdf (diff)
parent271c37a151d8e786b29ef7f5c13217693ec65401 (diff)
Merge tag '0.5.3'
Tagging 0.5.3 release
Diffstat (limited to 'puppet/modules/site_nagios')
-rw-r--r--puppet/modules/site_nagios/manifests/add_service.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_nagios/manifests/add_service.pp b/puppet/modules/site_nagios/manifests/add_service.pp
index 8d2a310b..1b67d14e 100644
--- a/puppet/modules/site_nagios/manifests/add_service.pp
+++ b/puppet/modules/site_nagios/manifests/add_service.pp
@@ -1,9 +1,17 @@
define site_nagios::add_service (
$hostname, $ip_address, $openvpn_gw = '', $service) {
+ $ssh = hiera_hash('ssh')
+ $ssh_port = $ssh['port']
+
case $service {
'webapp': {
nagios_service {
+ "${name}_ssh":
+ use => 'generic-service',
+ check_command => "check_ssh_port!$ssh_port",
+ service_description => 'SSH',
+ host_name => $hostname;
"${name}_cert":
use => 'generic-service',
check_command => 'check_https_cert',