Added prowl contact define for nagios

This commit is contained in:
Ossi Salmi 2012-10-31 14:31:15 +02:00
parent 0f4bbae2e9
commit 684c1c4474
2 changed files with 33 additions and 0 deletions

View file

@ -243,6 +243,30 @@ define nagios::contact::email($confdir=$nagios::server::confdir) {
}
define nagios::contact::prowl($confdir=$nagios::server::confdir) {
file { "${confdir}/contact_${name}.cfg":
ensure => present,
mode => "0644",
owner => "root",
group => "root",
before => Nagios_Contact[$name],
}
nagios_contact { $name:
target => "${confdir}/contact_${name}.cfg",
host_notification_commands => "notify-host-by-prowl",
host_notification_options => "d,r",
host_notification_period => "24x7",
service_notification_commands => "notify-service-by-prowl",
service_notification_options => "w,u,c,r",
service_notification_period => "24x7",
address1 => $name,
notify => Service["nagios"],
}
}
define nagios::host($confdir, $operatingsystem) {
file { "${confdir}/host_${name}.cfg":