class nodo::subsystem::monitor(
$type = 'vserver',
$use_nagios = hiera('nodo::subsystem::monitor::use_nagios', True),
- $use_fqdn = hiera('nodo::subsystem::monitor::use_nagios_fqdn', false),
+ $addresss = hiera('nodo::subsystem::monitor::address', $::ipaddress),
$ping_rate = hiera('nodo::subsystem::monitor::ping_rate', '!100.0,20%!500.0,60%')
) {
}
if $type == 'host' {
- if $use_fqdn == true {
- include nagios::target::fqdn
+ class{ 'nagios::target':
+ address => $address,
}
- else {
- include nagios::target
- }
- nagios::service::ping { "${::fqdn}":
+
+ nagios::service::ping { "$address":
ping_rate => $ping_rate,
}
}
class nodo::utils {
package { [ 'screen', 'less', 'bzip2', 'openssl', 'lynx', 'wget', 'unzip',
'nmap', 'telnet', 'tree', 'whois', 'dosfstools', 'dnsutils', 'logcheck-database',
- 'bc', 'lsof', 'wipe', 'vrms', 'nsca-client', 'logcheck', 'vim-nox' ]:
+ 'bc', 'lsof', 'wipe', 'vrms', 'nsca-client', 'logcheck', 'vim-nox',
+ 'multitail' ]:
ensure => installed,
}