Archived community.zenoss.org | full text search
Skip navigation
15647 Views 4 Replies Latest reply: Jun 24, 2009 12:11 PM by dwanek RSS
dwanek Rank: White Belt 23 posts since
Nov 7, 2008
Currently Being Moderated

Jun 18, 2009 2:35 PM

Chained relationships through subcomponents

I have a 1-to-many relationship established between a device and components. Is it possible to then have a 1-to-many relationship between each component and subcomponents? How does the modeler tie each subcomponent back to each component.

At a high level you can think of it like so: a host can have multiple volume groups and each volume group can in turn have multiple logical volumes. When modeling the logical volumes how do I tie them to the individual volume group components?


Thanks!
  • privateip Rank: White Belt 13 posts since
    Jul 19, 2007
    Currently Being Moderated
    1. Jun 23, 2009 10:41 PM (in response to dwanek)
    RE: Chained relationships through subcomponents
    The short answer to your question is yes, this can be accomplished. You can tie subcomponents to a single aggregate component that could itself be a subcomponent of a device thus developing a pseudo-hierarchical relationship.

    In regards to doing it in the modeler are you meaning you want to build the entire relationship at once (read single modeler) or in multiple steps (read multiple modelers)? The later doesn't seem like it would be very hard to achieve. The former, while doable, would require a little more logical to handle it.
  • privateip Rank: White Belt 13 posts since
    Jul 19, 2007
    Currently Being Moderated
    3. Jun 24, 2009 12:03 AM (in response to dwanek)
    RE: Chained relationships through subcomponents
    Check how IpInterface and IpAddress are related. I think this is very similar to what you are attempting to accomplish. (Device -> OperatingSystem -> IpInterface -> IpAddress). This should provide you a good guide.

    You might also check the ifconfig (DataCollector/plugins/zenoss/cmd/linux/ifconfig.py) to see how to implement this from modeler.

    Hope that helps.

More Like This

  • Retrieving data ...