Fix nagios service configuration
When nagios 4.0.8 is used it needs the host_name and service_description to be properly set. Change-Id: I83d8a504409c464ffeff6e0e9822316a0156759f
This commit is contained in:
@@ -37,21 +37,25 @@ define packstack_nagios_services {
|
|||||||
seltype => 'nagios_unconfined_plugin_exec_t',
|
seltype => 'nagios_unconfined_plugin_exec_t',
|
||||||
content => template("packstack/${name}.erb"),
|
content => template("packstack/${name}.erb"),
|
||||||
}
|
}
|
||||||
|
|
||||||
nagios_command { $name:
|
nagios_command { $name:
|
||||||
command_line => "/usr/lib64/nagios/plugins/${name}",
|
command_line => "/usr/lib64/nagios/plugins/${name}",
|
||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
}
|
}
|
||||||
|
|
||||||
nagios_service { $name:
|
nagios_service { $name:
|
||||||
host_name => $packstack::nagios_configs::controller_host,
|
host_name => $packstack::nagios_config_wrapper::controller_host,
|
||||||
normal_check_interval => '5',
|
normal_check_interval => '5',
|
||||||
check_command => $name,
|
check_command => $name,
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
|
service_description => "$name service",
|
||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class packstack::nagios_config_wrapper (
|
class packstack::nagios_config_wrapper (
|
||||||
|
Reference in New Issue
Block a user