nagios: Added support for tftp service target.
This commit is contained in:
parent
f9ba1455d0
commit
a4282b0400
4 changed files with 64 additions and 0 deletions
|
@ -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"],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue