summaryrefslogtreecommitdiff
path: root/puppet/modules/site_nagios
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-28 16:14:26 +0100
committervarac <varacanero@zeromail.org>2013-01-28 16:14:26 +0100
commitf8e3cf9aa8362c5ec36d3b0d33477898a2fd5c0c (patch)
treea8a8897174b570db093df50a7162f5973c1cead0 /puppet/modules/site_nagios
parent4a2091518a9b68e53de556bebd98d992e42b8910 (diff)
deploy openvpn check
Diffstat (limited to 'puppet/modules/site_nagios')
-rw-r--r--puppet/modules/site_nagios/manifests/add_service.pp2
-rw-r--r--puppet/modules/site_nagios/manifests/server.pp8
2 files changed, 9 insertions, 1 deletions
diff --git a/puppet/modules/site_nagios/manifests/add_service.pp b/puppet/modules/site_nagios/manifests/add_service.pp
index 1a69e068..a1f99cc9 100644
--- a/puppet/modules/site_nagios/manifests/add_service.pp
+++ b/puppet/modules/site_nagios/manifests/add_service.pp
@@ -2,7 +2,7 @@ define site_nagios::add_service ($hostname, $ip_address, $service) {
case $service {
'openvpn': {
- $check_command = 'check_openvpn'
+ $check_command = "check_openvpn_server_ip_port!$ip_address!1194"
$service_description = 'Openvpn'
}
'webapp': {
diff --git a/puppet/modules/site_nagios/manifests/server.pp b/puppet/modules/site_nagios/manifests/server.pp
index a8ebeaf4..fe3ab542 100644
--- a/puppet/modules/site_nagios/manifests/server.pp
+++ b/puppet/modules/site_nagios/manifests/server.pp
@@ -13,5 +13,13 @@ class site_nagios::server {
#before => Class ['nagios::defaults']
}
+ # deploy serverside plugins
+ file { '/usr/lib/nagios/plugins/check_openvpn_server.pl':
+ source => 'puppet:///modules/nagios/plugins/check_openvpn_server.pl',
+ mode => '0755',
+ owner => 'nagios',
+ group => 'nagios',
+ }
+
site_nagios::add_host {$hosts:}
}