Skip navigation
1 ... 4 5 6 7 8 Previous Next 450053 Views 107 Replies Latest reply: Oct 23, 2012 10:56 PM by Gowrish SS RSS Go to original post
  • rebelinux Rank: Green Belt 108 posts since
    Jun 6, 2008
    Currently Being Moderated
    90. Aug 9, 2010 8:42 PM (in response to rians)
    Re: Help with Custom Map Zenpack

    when i try to add a node i cant set it position on the map. it always stay on the cursor. see screens

    Attachments:
  • eangel Rank: White Belt 16 posts since
    Feb 1, 2010
    Currently Being Moderated
    91. Aug 12, 2010 8:14 AM (in response to rebelinux)
    Re: Help with Custom Map Zenpack

    Hi,

     

    Sorry for interrupting, but I'm struggeling with trying to remove this ZenPack.

     

    I think I managed to mess this up quite badly as I upgraded Zenoss to 3.0 when this ZenPack was marked as broken.

    Now I'm unable to remove it.

     

    Is there something short of reinstalling that I can do to remove this Zenpack and recover?

     

    Best regards

    mario;

  • rebelinux Rank: Green Belt 108 posts since
    Jun 6, 2008
    Currently Being Moderated
    94. Aug 12, 2010 7:39 PM (in response to rians)
    Re: Help with Custom Map Zenpack

    I thank you for your effort of developing a feature that’s zenoss core lack.

  • eangel Rank: White Belt 16 posts since
    Feb 1, 2010
    Currently Being Moderated
    95. Aug 13, 2010 2:10 AM (in response to rians)
    Re: Help with Custom Map Zenpack

    Thanks for the reply.

     

    I have tried to do what you outlined in the earlier message but it does not work for me. (And I'm not sure I did it right )

     

    If I try:

    zenpack --remove=ZenPacks.USU.Map

    I get:

    ERROR:zen.ZenPackCmd:zenpack command failed
    Traceback (most recent call last):
      File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in <module>
        zp.run()
      File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 168, in run
        self.options.removePackName)
      File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 812, in RemoveZenPack
        zp.remove(dmd, leaveObjects)
      File "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.USU.Map-0.1.2010.08.06-py2.6.egg/ZenPacks/USU/Map/__init__.py", line 95, in remove
        ZenPackBase.remove(self, app)
      File "/usr/local/zenoss/zenoss/Products/ZenModel/ZenPack.py", line 291, in remove
        loader.unload(self, app, leaveObjects)
      File "/usr/local/zenoss/zenoss/Products/ZenModel/ZenPackLoader.py", line 113, in unload
        objs = pack.packables()
    AttributeError: packables

     

    I originally had an earlier version of your plugin installed. I tried upgrading it in the hope that it would fix my problem, but unfortunately it did not.

     

    Possibly as a side effect of this problem I cannot get at my locations in the GUI. Is there a way to delete the added tab from zendmd?

  • eangel Rank: White Belt 16 posts since
    Feb 1, 2010
    Currently Being Moderated
    97. Aug 24, 2010 3:44 AM (in response to rians)
    Re: Help with Custom Map Zenpack

    Hi,

     

    I finally found the time to try your code. I tried to understand it, but unfortunately it's a bit over my head :-)

    I decided to give it a shot anyway and pasted it in. Unfortunately it gives me an error when I get down near the end of it:

     

    ...   for c in l.children():
    ...     procLoc(c)
    ... procLoc(dmd.Locations)
      File "<console>", line 15
        procLoc(dmd.Locations)
              ^
    SyntaxError: invalid syntax

     

     

    I'm using version 3 of Zenoss.

     

    The infrastructure tab shows 'Locations', but it has no '+' sign in front of it, so I cannot expand it.

     

    How do I find the dmd.factory_type_information value that you requested? (and what is it?)

     

    Thanks for being patient with me.

  • eangel Rank: White Belt 16 posts since
    Feb 1, 2010
    Currently Being Moderated
    98. Aug 24, 2010 3:58 AM (in response to eangel)
    Re: Help with Custom Map Zenpack

    Sorry about my last post.

    I didn't realize that the blank line of code was significant. What can I say, I'm used to perl :-)

     


    Unfortunately, 'zenpack --list' still show:

    ZenPacks.USU.Map (broken)

     

    and it does nothing to my locations problem.

  • rebelinux Rank: Green Belt 108 posts since
    Jun 6, 2008
    Currently Being Moderated
    99. Aug 24, 2010 8:35 AM (in response to eangel)
    Re: Help with Custom Map Zenpack

    try:

     

    i also manage to test the uninstall process using your recommendations and it work using the bogusarg in _init_.py.

     

    def remove(self, app, bogusarg):
            if hasattr(ZentinelPortal, 'customMapRPC'):
                del ZentinelPortal.customMapRPC
            ZenPackBase.remove(self, app)
            self._unregisterCustomMapTab(app)
            zpm = app.zport.ZenPortletManager
            zpm.unregister_portlet('MapPortlet')

     

    also using ths _delObject property the objects of the zenpack can be removed using zendmd. With this i manage to reinstall the zenpack.

     

    dmd.ZenPackManager.packs._delObject('ZenPacks.USU.Map')

  • etiennel Rank: White Belt 7 posts since
    Jan 15, 2010
    Currently Being Moderated
    100. Sep 9, 2010 10:25 AM (in response to rians)
    Re: Help with Custom Map Zenpack

    I hope you still get time to work on this!!! I did not try your last attachment yet but this is one functionality which I find lacking in Zenoss which I would like!!

  • skamionek Newbie 4 posts since
    Sep 8, 2010
    Currently Being Moderated
    101. Sep 9, 2010 1:59 PM (in response to rians)
    Re: Help with Custom Map Zenpack

    How do I use or add the custom maps?  I'm running 3.0.1 of Fedora 13.

     

    Steve

  • prin_cesa Rank: White Belt 27 posts since
    Jun 29, 2011
    Currently Being Moderated
    103. Jul 13, 2011 6:27 AM (in response to rians)
    Re: Help with Custom Map Zenpack

    hello,

    I'm a new user of zenoss and I'm very interested on creating custom map, specially with integration of google earth

    Is it possible with your zenpack

    Really, I dont understand very well the functionality of your zenpack!!!

    for example, is the custom map able to draw links and change color automatically like google maps when an event occur??

    thks for help

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    104. Jul 31, 2011 1:47 PM (in response to prin_cesa)
    Re: Help with Custom Map Zenpack

    This pack is complex and buggy. I'm not sure it even works under v3. What are you looking to do?

     

    Best,
    --Shane

1 ... 4 5 6 7 8 Previous Next

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points