Fix Nagios service names for GSEs

Change-Id: If62ee95acda21eb9979b65b071626a2ed257fd79
This commit is contained in:
Swann Croiset 2016-09-22 13:39:09 +02:00
parent c3daf0333f
commit 58ebfac2a4
2 changed files with 3 additions and 3 deletions

View File

@ -51,6 +51,6 @@ define lma_infra_alerting::nagios::vhost_cluster_status(
hostname => $hostname,
notifications_enabled => $notifications_enabled,
contact_group => $contact_group,
services => prefix($services, "${title} "),
services => prefix($services, "${title}-"),
}
}

View File

@ -28,8 +28,8 @@ describe 'lma_infra_alerting::nagios::vhost_cluster_status' do
describe 'with 2 services' do
it { should contain_nagios__host('foohost') }
it { should contain_lma_infra_alerting__nagios__services('footitle for foohost') }
it { should contain_nagios__service('footitle a') }
it { should contain_nagios__service('footitle b') }
it { should contain_nagios__service('footitle-a') }
it { should contain_nagios__service('footitle-b') }
end
end