On May 5, 2008, at 4:12 PM, gilm wrote:

Here goes:

1. I open up http://192.168.0.20:8080/zport/dmd/Devices

2. Click on the little down array, More -> Custom Schema

3. Fill the Add Property form with:

   Label: cTestFoo
   Name: cTestFoo
   Type: String
   Default:
   Visible: true

* EDIT * While doing this, it actually worked. It seems that there's a problem doing it under Devices -> Server. If you do it on root of Devices, then it works. Anything underneath that in the tree, says it's created but doesn't show it. Moreover, trying to create that same field again, results in a duplicate id exception. Seems that there's a bug in 2.1.3.

Now can you please help me to add that to the Device Status page?
I want to display this custom field underneath the OS value. I figure I need to edit a .pt file, but I don't understand what's that "here/" prefix.

You're right that adding custom properties only works from the root of Devices. The menu options to do so elsewhere will be removed in the future.

Here's how you'd add your property to the status tab:
        1. Go to 
http://yourzenoss:8080/zport/portal_skins/zenmodel/deviceStatus/manage
        2. Click the Customize button
3. Find "OS Version" in the template. It will have it's own "dt" section
        4. Create your own "dt" section between the OS Version and Rack Slot
5. It should look like the one below (change parenthesis to proper XML brackets)

                (dt)TestFoo(/dt)
                (dd)
                        (div tal:content="here/cTestFoo"/>
                (/dd)

        6. Save Changes
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to