Issue #1180 has been updated by James Turnbull.

Assigned to deleted (Puppet Community)


----------------------------------------
Feature #1180: nagios types should be able to generate /template definitions/ 
in nagios
http://projects.reductivelabs.com/issues/1180

Author: ben potts
Status: Accepted
Priority: Low
Assigned to: 
Category: nagios
Target version: unplanned
Complexity: Unknown
Patch: None
Affected version: 0.24.7
Keywords: 


I've been building a Nagios configuration with the new built-in types and just 
noticed that there seems to be no way to create template definitions in Nagios. 
I've only tried to do (nagios) templates with the *nagios_host* and 
*nagios_service* types but it's likely to affect some of the others, if not all 
of the nagios types.

heres an example:

<pre>

    # template definition
    define host {
        name           generic-host
        contact_groups admins
    }
    # host definition that uses the template above
    define host {
        host_name    foo
        use          generic-host
    }

</pre>

The problem with the nagios_host type is that the namevar is host_name and 
there's no parameter called "name"

Same problem with nagios_server{}, except in that case the namevar is 
service_description.

In both cases, you need to leave the parameter that maps to the namevar out 
(which is impossible) and you need a parameter in the nagios config called 
'name'.

I don't know how difficult this would be to implement but the ideal interface 
would be a template=>true parameter on the nagios types that changes 
service_description or host_name or whatever the namevar maps to to 'name'.



-- 
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