Issue #1420 has been updated by johnf.

I've just posted a revised patch for this. Also it should be 
http://git.inodes.org/puppet

----------------------------------------
Bug #1420: nagios_serviceescalation not allowing host_name more than one type
http://projects.reductivelabs.com/issues/show/1420

Author: lludwig
Status: Accepted
Priority: Normal
Assigned to: luke
Category: nagios
Target version: 
Complexity: Medium
Patch: None
Affected version: 0.24.4
Keywords: nagios


this is valid nagios configuration:

<pre>
define serviceescalation {
        host_name               empoweri00
        service_description     LOAD
        first_notification      3
        last_notification       0
        notification_interval   60
        contact_groups          escalated-admins
}

define serviceescalation {
        host_name               empoweri00
        service_description     MYSQL
        first_notification      3
        last_notification       0
        notification_interval   60
        contact_groups          escalated-admins
}
</pre>

Yet does not allow when in a puppet config:

<pre>
# load escalation
nagios_serviceescalation { "${host_name}-load-escalation":
       ensure                => present,
        host_name             => "${host_name}",
       service_description   => "LOAD",
       first_notification    => 3,
        last_notification     => 0,
        notification_interval => 120,
        contact_groups        => "escalated-admins",
       target                => $target,
       require               => Nagios_service["${host_name}-load"],
}

# mysql escalation
nagios_serviceescalation { "${host_name}-mysql-escalation":
        ensure                => present,
        host_name             => "${host_name}",
        service_description   => "MYSQL",
        first_notification    => 3,
        last_notification     => 0,
        notification_interval => 60,
        contact_groups        => "escalated-admins",
        target                => $target,
        require               => Nagios_service["${host_name}-mysql"],
}
</pre>

I get this error.

<pre>
err: Could not create affiniti08-disk-/-escalation: affiniti08-load-escalation 
already exists with name affiniti08
affiniti08-load-escalation already exists with name affiniti08
</pre>

If I have a unique host_name option for each type the error goes away but then 
generates an invalid nagios configuration.

I believe I've checked out the latest puppet code for nagios and still have 
this issue.


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to