Possible additive inheritance?

Shad L. Lords slords at lordsfam.net
Fri Oct 12 23:20:11 CEST 2007


Is it possible to have a situation like the following?

define contact {
        name                            default
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f
        host_notification_options       d,r,f
        register                        0
        }

define contact {
        name                            email
        service_notification_commands   +notify_by_email
        host_notification_commands      +host_notify_by_email
        register                        0
        }

define contact {
        name                            snpp
        service_notification_commands   +notify_by_snpp
        host_notification_commands      +host_notify_by_snpp
        register                        0
        }

And then define a contact as:

define contact{
        use             default,email,snpp
        contact_name    slords
        alias           Shad Lords
        email           an at email.address
        pager           a at pager.address
        }

When I try to do the following all I get is the email notification commands.
What I'd like is for the additive to be applied so that you can define
multiple inheritance that can be additive.

Thanks,

-Shad


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/




More information about the Developers mailing list