May 13, 2010 9:35 PM
Using / setting up / activating a zenpack template
-
Like (0)
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
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.
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
Well I appreciate the reply. I did on my initial post did explain a time factor and would continue to read, and the fact I saw the dependency didn't realize I needed to resolve (my fault), but in all my replies to people, I also help. So to take the time to comment and not simply say "you may need a simple apt-get install module" I wasn't thrilled to see.
But alas, I did install the module;
i python-pgsql - A Python DB-API 2.0 interface to PostgreSQ
Error importing pgsql module. This is a pre-requisite. |
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
and then you lost me! And I think I was so close
"did you install the python api into the python Zenoss uses"
is where you got me. I only did an apt- install as root, is that what you meant?
Which shows;
Tnx again....
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
okay, still not any closer (and it's just us). I am a little unclear on how to install it if you cant 'apt' it. I can download the .deb package, but there are alot of conflicting things, I am thinking part due to the versions. There are only 2 other threads about this module, both http://zenpacks.zenoss.org/trac-zenpacks/browser/zenpacks/ZenPacks.LearningObjects.PostgresqlMonitor/ZenPacks and thread/10822?start=0&tstart=0 and both showing them fail.
They both show the pack being installed via python setup.py but I don't think I need to do that since it's now a self installing .egg file, right? I am looking at the file structure and do see the server side has /var/lib/dpkg/info/python-pgsql. BUT more important as you said zenoss uses it seems;
/usr/local/zenoss/python as it's location.
I am looking around and just cant see how/where to download the python-pgsql module, then can either install it or just put it in that folder to just work. I am sure I am close, but wondering on both that as well as maybe a clean install (not sure why), but looking and not sure if I did the correct or best one. I looked at docs/DOC-3240?noregister and trying to see what is best.
I have a clean ESXi 4 server that I can stage ANY OS on, but had the U9-server CD on the system already, so did that with the slack install. That I assume is fine, so it really looks like I am left with just that da!! module holding me back. I did re-look at the forums about installing python-stuf but nothing in depth, and the ones that show command line python setup.py don't factor as the .egg I thought did that. I did try the src link also which had a setup.py file, but you cant download the folder, so it's 100+ clicks for each file/folder so don't think that is right either.
I am really seeing more python-2.4 dependencies, so it may really be a benefit if I install an older OS or figure out how to install python and such as that other user in that folder. I did try the .deb with the folllwing;
So it looks like it will be a nasty mess of dependencies, etc if I continue this way, but really stuck now.
Thanks again
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||