Menu

Linking CIs together

Kellogs
2014-09-30
2014-10-30
  • Kellogs

    Kellogs - 2014-09-30

    Hello alltogether,

    I am hard working on customising my iTop and have been integrating allmost my whole Network into itop. Now, that i have the PCs linked to switches, i would like to link the monitor to a pc. I tried sucessfully to implement the sample Monitor from the wiki, but i cannot link the monitor to a pc.

    Is there any dokumetation on how to manage this, something like a step b step howto, on how to add the dependencies in the datamodel?

    greetings from germany

     
  • Marco Lima

    Marco Lima - 2014-09-30

    Considering that we live in a day and age when it's quite common to have multiple monitors per CPU, you might want to go for the more complete solution:

    • Create a class which will have a database table associated to it (lnkMonitorToPC)

    • Add two fields (external key and External field) to the Monitor Class to let you select the PC.

    If you look at some of the program code that shows how different classes are linked together using a junction table/class you should be able to get it done.

     
  • Kellogs

    Kellogs - 2014-10-04

    Hi Marco,

    thanks for your reply. You are right, i want to add more than one Monitor to a PC. My problems are the following: How do i create a class and where do i find the program code, you are talking about.

    Thanks Markus

     
  • Marco Lima

    Marco Lima - 2014-10-04

    The iTop Wiki shows you how to create the Monitor Class in the tutorial (I'm assuming that you just downloaded the Extension file and installed it without going through the step by step process).

    In this case you're creating a "linkage" class that will basically store the relationships between Monitors and PCs.

    The code I'm referring two you can find in the Configuration Management XML file in the iTOP installation. There you will see examples of LNK Classes used to link Different objects. You're basically going to do the same thing only tweak the code so that you're connecting monitors to PCs.

    It really isn't that hard to do. If you can't make any headway, drop me a message.

     
  • Kellogs

    Kellogs - 2014-10-30

    Hi Marco,

    probably I am to stupid to solve the problem. As discribed in this threat: https://sourceforge.net/p/itop/discussion/922360/thread/43e601c4/#73c5
    I followed the tutorial and tried to make the monitor linkeable.

    I had a look a the datamodel.itop-config.mgmt.xml and searched within vi for "lnk". I found <field id="user-content-cis_list" xsi:typer="AttributeLinkedSetIndirect"> and copied everything between <field ...=""> and </field> into my monitor datamodel.monitor.xml</field>

    It did not work, I dont know why. I also had a look at some other threats with code inside, but I cant make it work. Even, if i run setup again, there are noch changes to be made.

    Do youknow, where I am stuck?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.