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

@ -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