nagios: Added support for tftp service target.

This commit is contained in:
Timo Makinen 2015-03-25 12:31:17 +02:00
parent f9ba1455d0
commit a4282b0400
4 changed files with 64 additions and 0 deletions

View file

@ -294,6 +294,15 @@ class nagios::server::manual inherits nagios::common {
require => Package["nagios"],
before => Service["nagios"],
}
file { "${nagios::common::libdir}/check_tftp":
ensure => present,
mode => "0755",
owner => "root",
group => "root",
source => "puppet:///modules/nagios/check_tftp",
require => Package["nagios"],
before => Service["nagios"],
}
}

View file

@ -313,6 +313,23 @@ class nagios::target::submission inherits nagios::target {
}
# Configure tftp service target.
#
# === Parameters
#
# $file:
# Filename to fetch from TFTP server
#
class nagios::target::tftp($file) inherits nagios::target {
@@nagios::service { "${::homename}_tftp":
command => "check_tftp!${file}",
description => "TFTP",
}
}
# Configure tcp connect service target.
#
# === Parameters