Archived community.zenoss.org | full text search
Skip navigation
13294 Views 7 Replies Latest reply: May 14, 2010 4:59 PM by xlancealot RSS
xlancealot Rank: White Belt 69 posts since
May 13, 2010
Currently Being Moderated

May 13, 2010 9:35 PM

Using / setting up / activating a zenpack template

Thanks to getting it installed, but a little lost on using it.  I installed the postgres monitor zenpack template (docs/DOC-3389) and now see it under;

Management -> settings -> ZenPacks;

ZenPacks.LearningObjects.PostgresqlMonitor

 

The doc's simply say " When you're ready to monitor hit the "Create Local Copy" under your More->Device ->Templates for Postgresql. Enter your own values for PostgreSQL Username, PostgreSQL Database, and PostgreSQL Password. "

 

I did the tests they say and do see the data so know the data collector is working, just not sure how to add that template to the existing server (device).  I am sorry as some terminology for zen is new for me, but currently I have 2 webservers and our primary database server running snmp, and showing green under Main View -> Device list.  I can click the DB server, click the perf tab and see the general items like system load, etc. which is perfect.  Now I need to add the pgsql graphs to this page but that is where I am stuck.

 

Looking at the doc I don't see a 'create local copy' as there is no more-> device, etc. so I need a little clarity.  If I select that server, then hit the down arrow, select templates, then the down arrow and select 'add template' I just get a popup, add template ID.  I don't see where I can say add the template for postgresql to that existing server.


Thanks for any help / clarrification.


Lr

 

###########  Update ##############

 

Playing more on that DB server / device, a downarrow, bind template option showed both the default and the pgsql one.  So I selected both and now they both show.  I did the Create local copy, was able to select postgresql and update the database info (username, ip, etc.)  After that, save, a yellow 1 error occured.

 

Event Class /

and the show details shows;

 

Error importing pgsql module. This is a pre-requisite.

 

but I can't get more info, I will google around as well ... Thanks.

 

Message was edited by: xlancealot

  • chitambira Rank: Brown Belt 711 posts since
    Oct 15, 2008

    you obviously will do better with a little more reading each time. Your first struggling could have been avoided by reading quickstart guide and videos. pgsl issues are also clearly documented in the zenpack info:

         Installation:

    The PostgreSQL ZenPack has a dependency on the Python pgsql module. It was tested against a 8.3.x Postgres server and partially works with 8.2.x.

     

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007

    I think you need to bind the template. Look in the zProperties for zDeviceTemplates and see, but I'm betting it's not there. Switch to the templates view, and there should be a Bind Templates option in the menu. Make sure you control-click so you don't unbind the existing templates like Device, and select the appropriate postgres template. You should be able to then click a button on the Performance Templates page that says create local copy... Then go into the template itself (well the copy) by clicking on the name, and adjust settings appropriately...

     

    As chitambira implies, part one of docs/DOC-2445#Ivepostedintheforumswhyisnooneishelpingme may be instructive on how to get the best help from these forums.

     

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007

    I haven't used that particular zenpack, but did you install the python api into the python Zenoss uses? You want to log into the zenoss user and do a which python

    I think it is using python 2.4, so make sure you get that version, and you install it into the zenoss python. A big mistake made by new users is to try and work on Zenoss as root, that usually doesn't work.

     

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    6. May 14, 2010 11:07 AM (in response to xlancealot)
    Re: Using / setting up / activating a zenpack template

    Yea, see, doing this as root is installing into the system python. Zenoss uses as you saw its own python install, so you need to install it there. I'm not a python expert, but I don't think you can use apt-get for that... If you search the forums, you should see some examples of installing python stuffs...

     

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

More Like This

  • Retrieving data ...

Legend

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