# Monitoring
if !defined(Class['nodo::subsystem::monitor']) {
- class { 'nodo::subsystem::monitor':
- type => 'host',
- }
+ class { 'nodo::subsystem::monitor': }
}
# Munin configuration
class nodo::subsystem::monitor(
- $type = 'vserver',
$use_nagios = hiera('nodo::subsystem::monitor::use_nagios', True),
$check_ping = hiera('nodo::subsystem::monitor::check_ping', present),
$check_ssh = hiera('nodo::subsystem::monitor::check_ssh', absent),
) {
if $use_nagios != false {
-
- if $type == 'vserver' {
- include nagios::target::fqdn
- }
-
- if $type == 'host' {
- class{ 'nagios::target':
- address => $address,
- }
+ class{ 'nagios::target':
+ address => $address,
}
nagios::service::ping { "${::fqdn}":