Question

How do I can install ZenPack using WEB UI ?

Asked by: nushahid

How do I can install ZenPack using WEB UI ? I got this error [
Output:zenpack --install /tmp/tmp6-Bx2E
/bin/sh: zenpack: command not found
Done installing ZenPack. ]

i am also unable to run zenpack & zenbackup commands from shell as a zenoss user.please guide me...

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-05-08 at 10:17:26ID23386870
Tags

Zenoss

,

Zenoss Core

,

Zenoss 2.1.2

,

OS=>FC8

Topics

Content Management

,

Unix Networking

,

Network Analysis Software

Participating Experts
1
Points
500
Comments
20

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Tweak UI Desktop Folder Icons.
    Does anyone know how Tweak UI determines the list of Icons that show up in the Desktop folders list? I assume that the Shell Namespace is enumerated somehow, but I don't know exactly how it's done. What criteria is used to determine which entries go into the list and which on...
  2. Solaris /bin/sh shell prompts and aliases
    I was use to /bin/csh for a shell, but now forced to use /bin/sh. I can't figure out how to set a custom prompt, one that will always display the hostname and current working directory. In /bin/csh it was like this; set prompt="[! ] `hostname`:`echo $user` `{/bin/pwd}...
  3. About 'UI'
    Anybody can tell me what's 'UI'? Or tell me what's it all to call? Sorry,I'm a Chinese.I ususlly don't get new reference ! Please help me.
  4. UI for chat
    I've sort of been able to create a UI for a chat client, just don't know how to hook the two together.. package ui; import java.awt.*; class UserInterface extends Frame { TextArea strTextArea = new TextArea(); Button btnSubmit = new Button( "Send" ); ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: that1guy15Posted on 2008-05-08 at 10:27:24ID: 21526703

The only why i have ever been able to load zenpacks was from the Command line logged in as zenoss user.

Are you using the full path when trying the commands or are you in the directory? IF you are logged in as the zenoss user you should have $ZENHOME in your path.

Try this

su zenoss
$ZENHOME/bin/zenpack --install <zenpack file>

 

by: nushahidPosted on 2008-05-08 at 10:58:59ID: 21526957

[zenoss@it bin]$ su root
Password:
[root@it bin]# su zenoss
[zenoss@it bin]$ $ZENHOME/bin/zenpack --install /home/zenoss/packs/Printer.zip
bash: /bin/zenpack: No such file or directory
[zenoss@it bin]$ $ZENHOME
[zenoss@it bin]$ env
SHELL=/bin/bash
TERM=vt100
SSH_CLIENT=172.16.14.99 1377 22
QTDIR=/usr/lib/qt-3.3
QTINC=/usr/lib/qt-3.3/include
SSH_TTY=/dev/pts/1
USER=zenoss
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=0

1;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.ar

j=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=0

1;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
CCACHE_DIR=/var/cache/ccache
PATH=/usr/kerberos/sbin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/

bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/zenoss/bin:.
MAIL=/var/mail/root
PWD=/usr/local/zenoss/bin
CCACHE_UMASK=002
LANG=en_US.UTF-8
KDE_IS_PRELINKED=1
KDEDIRS=/usr
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HOME=/home/zenoss
SHLVL=4
LOGNAME=zenoss
QTLIB=/usr/lib/qt-3.3/lib
CVS_RSH=ssh
SSH_CONNECTION=172.16.14.99 1377 172.16.10.99 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env
[zenoss@it bin]$ ZENHOME=/usr/local/zenoss/
[zenoss@it bin]$ $ZENHOME
bash: /usr/local/zenoss/: is a directory
[zenoss@it bin]$ $ZENHOME/bin/zenpack --install /home/zenoss/packs/Printer.zip
ERROR: $ZENHOME is not set.
This is usually caused by executing this command as root rather than as the zenoss user. Either define $ZENHOME or run this command as a different user.
[zenoss@it bin]$

 

by: nushahidPosted on 2008-05-08 at 11:14:01ID: 21527064

Sir please reply me as soon as possible, actually i am Graduate student and this is my final project.....
i am also unable to run zenbackup command from shell as a zenoss user. ..
i can only run this command zenoss {start|stop|restart|status|list}...

 

by: that1guy15Posted on 2008-05-08 at 11:16:40ID: 21527094

Are zenpack and Zenbackup located in the /bin directory?
Is the zenpack you are trying to install in the directory you listed in the command? Does Zenoss own it or have permission to it?

 

by: nushahidPosted on 2008-05-08 at 11:46:21ID: 21527361

YES:zenpack and zenbackup located in the /bin directory and i am sending you full list of files under /bin directory.
you are right. zenoss did not have permissions to /home/zenoss/packs/Printer.zip.
i have issued follwoing commands
       chown -R zenoss:zenoss /home/zenoss/packs
       chmod 755 /home/zenoss/packs

[zenoss@it bin]$ cd /home/zenoss/packs/
[zenoss@it packs]$ ll
total 4
-rwxr-xr-x 1 zenoss zenoss 1195 2008-07-07 05:42 Printer.zip

[[zenoss@it packs]$ cd /usr/local/zenoss/bin/
[zenoss@it bin]$ $ZENHOME
bash: /usr/local/zenoss/: is a directory
[zenoss@it bin]$ $ZENHOME/bin/zenpack --install /home/zenoss/packs/Printer.zip
ERROR: $ZENHOME is not set.
This is usually caused by executing this command as root rather than as the zenoss user. Either define $ZENHOME or run this command as a different user.
[zenoss@it bin]$

  • list-bin-files.txt
    • 7 KB

    this file contains list of all files under /usr/local/zenoss/bin directory....

 

by: that1guy15Posted on 2008-05-08 at 11:50:02ID: 21527396

If you are already in the /bin directory you do not need to put the full path in. From the bin directory run:
zenpack --install /home/zenoss/packs/Printer.zip

 

by: nushahidPosted on 2008-05-08 at 12:06:23ID: 21527530

[zenoss@it bin]$ su root
Password:
[root@it bin]# chown -R zenoss:zenoss /usr/local/zenoss/bin/zenpack
[root@it bin]# chmod 755 /usr/local/zenoss/bin/zenpack
[root@it bin]# chown -R zenoss:zenoss /usr/local/zenoss/bin/zenbackup
[root@it bin]# chmod 755 /usr/local/zenoss/bin/zenbackup
[root@it bin]# ll
total 18764
-rwxr-xr-x 1 zenoss zenoss    4215 2008-05-02 17:08 analyze.py
-rwxrwxr-x 1 zenoss zenoss    1470 2008-05-02 20:15 apirst2html.py
-rwxrwxr-x 1 zenoss zenoss     597 2008-05-02 20:13 bookify
-rwxrwxr-x 1 zenoss zenoss     595 2008-05-02 20:13 cftp
-rwxr-xr-x 1 zenoss zenoss    3092 2008-05-02 17:08 checkbtrees.py
-rwxr-xr-x 1 zenoss zenoss    4441 2008-05-02 17:08 check_catalog.py
-rwxrwxr-x 1 zenoss zenoss     598 2008-05-02 20:13 ckeygen
-rwxr-xr-x 1 zenoss zenoss    2067 2008-05-02 17:08 compilezpy.py
-rwxrwxr-x 1 zenoss zenoss     596 2008-05-02 20:13 conch
-rwxr-xr-x 1 zenoss zenoss    9379 2008-05-02 17:08 copyzopeskel.py
-rw-rw-r-- 1 zenoss zenoss    7952 2008-05-02 20:24 copyzopeskel.pyc
-rwxr-xr-x 1 zenoss zenoss    1029 2008-05-02 17:08 decompilezpy.py
-rwxrwxr-x 1 zenoss zenoss     317 2008-05-02 20:15 epydoc
-rwxrwxr-x 1 zenoss zenoss     115 2008-05-02 20:15 epydocgui
-rwxr-xr-x 1 zenoss zenoss     207 2008-05-02 17:08 fsdump.py
-rwxrwxr-x 1 zenoss zenoss     696 2007-12-20 00:39 fsrecover
-rwxr-xr-x 1 zenoss zenoss    5989 2008-05-02 17:08 fsrefs.py
-rwxr-xr-x 1 zenoss zenoss    1534 2008-05-02 17:08 fstail.py
-rwxr-xr-x 1 zenoss zenoss    6687 2008-05-02 17:08 fstest.py
-rwxr-xr-x 1 zenoss zenoss     103 2008-05-02 15:37 idle
-rwxrwxr-x 1 zenoss zenoss     593 2008-05-02 20:13 im
-rwxr-xr-x 1 zenoss zenoss    8454 2008-05-02 17:08 load_site.py
-rwxrwxr-x 1 zenoss zenoss     595 2008-05-02 20:13 lore
-rwxrwxr-x 1 zenoss zenoss     652 2008-05-02 20:13 mailmail
-rwxr-xr-x 1 zenoss zenoss     642 2008-05-02 17:09 manhole
-rwxr-xr-x 1 zenoss zenoss   11258 2008-05-02 17:08 migrate.py
-rwxr-xr-x 1 zenoss zenoss     656 2008-05-02 17:09 mktap
-rwxr-xr-x 1 zenoss zenoss    1012 2008-05-02 17:08 mkzeoinstance.py
-rwxr-xr-x 1 zenoss zenoss    6031 2008-05-02 17:08 mkzopeinstance.py
-rwxr-xr-x 1 zenoss zenoss    3293 2008-05-02 17:08 netspace.py
-rwxr-xr-x 1 zenoss zenoss    3399 2008-05-02 17:08 parsezeolog.py
-rwxr-xr-x 1 zenoss zenoss    1195 2008-07-07 05:42 Printer.zip
-rwxr-xr-x 1 zenoss zenoss      88 2008-05-02 15:37 pydoc
-rwxr-xr-x 2 zenoss zenoss 3218711 2008-05-02 15:38 python
-rwxr-xr-x 2 zenoss zenoss 3218711 2008-05-02 15:38 python2.4
-rwxr-xr-x 1 zenoss zenoss     950 2004-05-16 20:26 README.txt
-rwxr-xr-x 1 zenoss zenoss    4079 2005-03-28 21:34 reindex_catalog.py
-rwxrwxr-x 1 zenoss zenoss     736 2007-12-20 00:39 reportmail
-rwxr-xr-x 1 zenoss zenoss   17042 2008-05-02 17:08 repozo.py
-rwxr-xr-x 1 zenoss zenoss   27337 2008-05-02 17:08 requestprofiler.py
-rwxr-xr-x 1 zenoss zenoss    5103 2008-05-02 20:15 rrdtool
-rwxr-xr-x 1 zenoss zenoss  138089 2008-05-02 20:15 rrdupdate
-rwxrwxr-x 1 zenoss zenoss     350 2008-05-02 20:24 runzeo
-rwxr-xr-x 1 zenoss zenoss     381 2008-05-02 20:24 runzope
-rwxr-xr-x 1 zenoss zenoss     358 2008-05-02 20:24 runzope.bat
-rwxr-xr-x 1 zenoss zenoss    1342 2008-05-02 20:18 smicache
-rwxr-xr-x 1 zenoss zenoss   95186 2008-05-02 20:18 smidiff
-rwxr-xr-x 1 zenoss zenoss  762294 2008-05-02 20:18 smidump
-rwxr-xr-x 1 zenoss zenoss   27168 2008-05-02 20:18 smilint
-rwxr-xr-x 1 zenoss zenoss   37488 2008-05-02 20:18 smiquery
-rwxr-xr-x 1 zenoss zenoss    4138 2008-05-02 20:18 smistrip
-rwxr-xr-x 1 zenoss zenoss   18024 2008-05-02 15:37 smtpd.py
-rwxr-xr-x 1 zenoss zenoss    1576 2008-05-02 17:08 space.py
-rwxr-xr-x 1 zenoss zenoss     590 2008-05-02 17:09 tap2deb
-rwxr-xr-x 1 zenoss zenoss     552 2008-05-02 17:09 tap2rpm
-rwxr-xr-x 1 zenoss zenoss     660 2008-05-02 17:09 tapconvert
-rwxr-xr-x 1 zenoss zenoss   32733 2008-05-02 17:08 test.py
-rwxr-xr-x 1 zenoss zenoss    1716 2008-05-02 17:08 timeout.py
-rwxrwxr-x 1 zenoss zenoss     598 2008-05-02 20:13 tkconch
-rwxr-xr-x 1 zenoss zenoss     735 2008-05-02 17:09 trial
-rwxr-xr-x 1 zenoss zenoss     672 2008-05-02 17:09 twistd
-rwxrwxr-x 1 zenoss zenoss 3953427 2008-05-02 20:24 winexe
-rwxrwxr-x 1 zenoss zenoss 6961968 2008-05-02 20:24 wmic
-rwxrwxr-x 1 zenoss zenoss    4151 2008-05-02 20:15 yapps2
-rwxrwxr-x 1 zenoss zenoss   11425 2007-12-20 00:39 zen2load.py
-rwxrwxr-x 1 zenoss zenoss     705 2007-12-20 00:39 zenactions
-rwxr-xr-x 1 zenoss zenoss     629 2007-12-20 00:39 zenbackup
-rwxrwxr-x 1 zenoss zenoss     636 2007-12-20 00:39 zenbatchload
-rwxrwxr-x 1 zenoss zenoss     632 2007-12-20 00:39 zenbuild
-rwxrwxr-x 1 zenoss zenoss     335 2007-12-20 00:39 zencheckrrd
-rwxrwxr-x 1 zenoss zenoss     634 2007-12-20 00:39 zenchkrels
-rwxrwxr-x 1 zenoss zenoss     625 2007-12-20 00:39 zenchkschema
-rwxrwxr-x 1 zenoss zenoss     703 2007-12-20 00:39 zencommand
-rwxrwxr-x 1 zenoss zenoss    4945 2007-12-20 00:39 zenctl
-rwxrwxr-x 1 zenoss zenoss     637 2007-12-20 00:39 zendevicedump
-rwxrwxr-x 1 zenoss zenoss     637 2007-12-20 00:39 zendeviceload
-rwxrwxr-x 1 zenoss zenoss     785 2007-12-20 00:39 zendisc
-rwxrwxr-x 1 zenoss zenoss     733 2007-12-20 00:39 zendmd
-rwxrwxr-x 1 zenoss zenoss     875 2007-12-20 00:39 zendoc
-rwxrwxr-x 1 zenoss zenoss     632 2007-12-20 00:39 zendump
-rwxrwxr-x 1 zenoss zenoss    1468 2007-12-20 00:39 zeneventbuild
-rwxrwxr-x 1 zenoss zenoss     704 2007-12-20 00:39 zeneventlog
-rwxrwxr-x 1 zenoss zenoss    1212 2007-12-20 00:39 zeneventsdump
-rw-rw-r-- 1 zenoss zenoss    4222 2007-12-20 00:39 zenfunctions
-rwxrwxr-x 1 zenoss zenoss     694 2007-12-20 00:39 zenhub
-rwxrwxr-x 1 zenoss zenoss     632 2007-12-20 00:39 zenload
-rwxrwxr-x 1 zenoss zenoss     967 2007-12-20 00:39 zenmail
-rwxrwxr-x 1 zenoss zenoss     724 2007-12-20 00:39 zenmib
-rwxrwxr-x 1 zenoss zenoss     742 2007-12-20 00:39 zenmigrate
-rwxrwxr-x 1 zenoss zenoss     710 2007-12-20 00:39 zenmodeler
-rwxrwxr-x 1 zenoss zenoss    2791 2007-12-20 00:39 zenoss
-rwxrwxr-x 1 zenoss zenoss    1301 2007-12-20 00:39 zenoss_init_post
-rwxrwxr-x 1 zenoss zenoss    1800 2007-12-20 00:39 zenoss_init_pre
-rwxrwxr-x 1 zenoss zenoss    1323 2007-12-20 00:39 zenoss_upgrade_post
-rwxrwxr-x 1 zenoss zenoss    1475 2007-12-20 00:39 zenoss_upgrade_pre
-rwxr-xr-x 1 zenoss zenoss     878 2007-12-20 00:39 zenpack
-rwxrwxr-x 1 zenoss zenoss     786 2007-12-20 00:39 zenpass
-rwxrwxr-x 1 zenoss zenoss     705 2007-12-20 00:39 zenperfsnmp
-rwxrwxr-x 1 zenoss zenoss     780 2007-12-20 00:39 zenping
-rwxrwxr-x 1 zenoss zenoss     707 2007-12-20 00:39 zenpop3
-rwxrwxr-x 1 zenoss zenoss     703 2007-12-20 00:39 zenprocess
-rwxrwxr-x 1 zenoss zenoss     932 2007-12-20 00:39 zenprodrm
-rwxrwxr-x 1 zenoss zenoss     700 2007-12-20 00:39 zenrender
-rwxrwxr-x 1 zenoss zenoss     630 2007-12-20 00:39 zenrestore
-rwxrwxr-x 1 zenoss zenoss     641 2007-12-20 00:39 zenschamadoc
-rwxrwxr-x 1 zenoss zenoss    1951 2007-12-20 00:39 zensendevent
-rwsr-x--- 1 root   zenoss   15413 2008-05-02 20:13 zensocket
-rwxrwxr-x 1 zenoss zenoss     703 2007-12-20 00:39 zenstatus
-rwxrwxr-x 1 zenoss zenoss     621 2007-12-20 00:39 zenstep
-rwxrwxr-x 1 zenoss zenoss     847 2007-12-20 00:39 zensyslog
-rwxrwxr-x 1 zenoss zenoss     668 2007-12-20 00:39 zentestcommand
-rwxrwxr-x 1 zenoss zenoss     867 2007-12-20 00:39 zentrap
-rwxrwxr-x 1 zenoss zenoss     694 2007-12-20 00:39 zenwin
-rwxrwxr-x 1 zenoss zenoss     708 2007-12-20 00:39 zenwinmodeler
-rwxrwxr-x 1 zenoss zenoss     632 2008-05-02 20:24 zeoctl
-rwxr-xr-x 1 zenoss zenoss    3194 2008-05-02 17:08 zeopack.py
-rwxr-xr-x 1 zenoss zenoss   11110 2008-05-02 17:08 zeoqueue.py
-rwxr-xr-x 1 zenoss zenoss    8504 2008-05-02 17:08 zeoreplay.py
-rwxr-xr-x 1 zenoss zenoss   14817 2008-05-02 17:08 zeoserverlog.py
-rwxr-xr-x 1 zenoss zenoss    4115 2008-05-02 17:08 zeoup.py
-rwxrwxr-x 1 zenoss zenoss     614 2007-12-20 00:39 zipzenpack
-rwxr-xr-x 1 zenoss zenoss   31000 2008-05-02 17:08 zodbload.py
-rwxr-xr-x 1 zenoss zenoss     379 2008-05-02 20:24 zopectl
-rwxr-xr-x 1 zenoss zenoss    4667 2008-05-02 20:24 zopeservice.py
-rwxr-xr-x 1 zenoss zenoss    6277 2008-05-02 17:08 zpasswd.py
-rwxrwxr-x 1 zenoss zenoss     715 2007-12-20 00:39 zproprmlocal
[root@it bin]# su zenoss
[zenoss@it bin]$ $ZENHOME
[zenoss@it bin]$ ZENHOME=/usr/local/zenoss/
[zenoss@it bin]$ $ZENHOME
bash: /usr/local/zenoss/: is a directory
[zenoss@it bin]$ zenpack run --install Printer.zip
ERROR: $ZENHOME is not set.
This is usually caused by executing this command as root rather than as the zenoss user. Either define $ZENHOME or run this command as a different user.
[zenoss@it bin]$

 

by: nushahidPosted on 2008-05-08 at 12:11:12ID: 21527566

[zenoss@it bin]$ $ZENHOME
[zenoss@it bin]$ ZENHOME=/usr/local/zenoss/
[zenoss@it bin]$ $ZENHOME
bash: /usr/local/zenoss/: is a directory
[zenoss@it bin]$ zenpack run --install Printer.zip
ERROR: $ZENHOME is not set.
This is usually caused by executing this command as root rather than as the zenoss user. Either define $ZENHOME or run this command as a different user.
[zenoss@it bin]$ zenpack --install /home/zenoss/packs/Printer.zip
ERROR: $ZENHOME is not set.
This is usually caused by executing this command as root rather than as the zenoss user. Either define $ZENHOME or run this command as a different user.
[zenoss@it bin]$ $ZENHOME
bash: /usr/local/zenoss/: is a directory
[zenoss@it bin]$
********************************************************************
i am agian and again creating ZENHOME=/usr/local/zenoss but when i run "su root" and after some time when
i returned back to "su zenoss" then" $ZENHOME" does not show its value...
Please tell me how to create Permanent ZENHOME environmental variable for zenoss user...

 

by: that1guy15Posted on 2008-05-08 at 12:15:10ID: 21527597

 

by: nushahidPosted on 2008-05-08 at 12:34:29ID: 21527747

i am sending you /etc/profile file which contains all environmental variables ...
Please let me know that how to modify this or how i can avoid
"ERROR: $ZENHOME is not set.
This is usually caused by executing this command as root rather than as the zenoss user. Either define $ZENHOME or run this command as a different user".


Still, i am unable to determine that how to solve this issue......???
Please Guide me ... !!!
Thanks......

 

by: that1guy15Posted on 2008-05-08 at 13:15:33ID: 21528071

Remove what yo added to the profile. Zenoss if correctly installed should have made all the proper entries in your profile

#Zenoss
ZENHOME=/usr/local/zenoss
Export ZENHOME
PYTHONPATH=$ZENHOME/lib/python
Export PYTHONPATH
Export PATH=$ZENHOME/bin:$PATH


Then try

echo $ZENHOME

Does it error out? If it does then type:

export ZENHOME=/usr/local/zenoss
echo $ZENHOME

After that try the zenpack install again

 

by: nushahidPosted on 2008-05-08 at 14:00:10ID: 21528429

First Time zanpack did not generate previous single error but now list of new errors !!! See
**************************************************************************
[zenoss@it ~]$ su root
Password:
[root@it zenoss]# vi /etc/profile
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
        if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
           if [ "$2" = "after" ] ; then
              PATH=$PATH:$1
           else
              PATH=$1:$PATH
           fi
        fi
}

# ksh workaround
if [ -z "$EUID" -a -x /usr/bin/id ]; then
        EUID=`id -u`
        UID=`id -ru`
fi

# Path manipulation
if [ "$EUID" = "0" ]; then
        pathmunge /sbin
        pathmunge /usr/sbin
        pathmunge /usr/local/sbin
fi

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

if [ -x /usr/bin/id ]; then
        USER="`id -un`"
        LOGNAME=$USER
        MAIL="/var/spool/mail/$USER"
fi

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
    INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
        . $i
    fi
done

unset i
unset pathmunge
#Zenoss
#ZENHOME=/usr/local/zenoss
#Export ZENHOME
#PYTHONPATH=$ZENHOME/lib/python
#Export PYTHONPATH
#Export PATH=$ZENHOME/bin:$PATH
"/etc/profile" [dos] 60L, 1131C written
[root@it zenoss]# su zenoss
[zenoss@it ~]$ cd /usr/local/zenoss/bi
bash: cd: /usr/local/zenoss/bi: No such file or directory
[zenoss@it ~]$ cd /usr/local/zenoss/bin/

[zenoss@it bin]$ echo $ZENHOME

[zenoss@it bin]$ export ZENHOME=/usr/local/zenoss
[zenoss@it bin]$ echo $ZENHOME
/usr/local/zenoss
[zenoss@it bin]$ zenpack --install Printer.zip
INFO:zen.ZPLoader:Loading /usr/local/zenoss/Products/Printer/objects/objects.xml
WARNING:zen.AddToPack:Object /zport/dmd/Devices/Printer/rrdTemplates/Printer already exists skipping
Traceback (most recent call last):
  File "/usr/local/zenoss/Products/ZenUtils/zenpack.py", line 287, in ?
    zp.run()
  File "/usr/local/zenoss/Products/ZenUtils/zenpack.py", line 55, in run
    self.install(packName)
  File "/usr/local/zenoss/Products/ZenUtils/zenpack.py", line 129, in install
    zp.install(self.app)
  File "/usr/local/zenoss/Products/ZenModel/ZenPack.py", line 109, in install
    loader.load(self, app)
  File "/usr/local/zenoss/Products/ZenModel/ZenPackLoader.py", line 95, in load
    importer.loadObjectFromXML(xmlfile=f)
  File "/usr/local/zenoss/Products/ZenRelations/ImportRM.py", line 239, in loadObjectFromXML
    parser.parse(self.infile)
  File "/usr/local/zenoss/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/zenoss/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/local/zenoss/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/local/zenoss/lib/python2.4/xml/sax/expatreader.py", line 300, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/usr/local/zenoss/Products/ZenRelations/ImportRM.py", line 69, in startElement
    self.objstack.append(self.context()._getOb(attrs['id']))
  File "usr/local/zenoss/lib/python/OFS/CopySupport.py", line 67, in _getOb
AttributeError: datasources
[zenoss@it bin]$
****************************************************************************
i am sending you zenpack.py & zenBackup.py fileS which are located under /usr/local/zenoss/Products/ZenUtils directory

 

by: that1guy15Posted on 2008-05-08 at 14:36:30ID: 21528686

It looks like it is already installed. Do you see it listed in the zenpacks on the Web interface? also you can look in /opt/zenoss/Products to see if its listed there

 

by: nushahidPosted on 2008-05-08 at 15:19:12ID: 21528940

/opt directory is empty. but in /usr/local/zenoss/Products i found one folder named "Printer" i think you are agin right Printer.zip is already installed....... Soooooooory !!! my fault....
But if it is true than tell me how to check its functionaltiy.......... ? and why WEB UI not showing installed ZenPack
should i restart zenoss server or reboot my machine....
I am going to download one more ZenPack... plz suggest me what should i try now ?
now zenpack command is running !!!!!!!!!!! See
******************************************************************************
[zenoss@it bin]$ zenpack --help
usage: zenpack.py [options]

options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --install=INSTALLPACKNAME
                        name of the pack to install
  --remove=REMOVEPACKNAME
                        name of the pack to remove
  --list                list installed zenpacks and associated files
  --link                symlink the zenpack dir instead of copying to
                        $ZENHOME/Products
  -v LOGSEVERITY, --logseverity=LOGSEVERITY
                        Logging severity threshold
  --logpath=LOGPATH     override default logging path
  -C CONFIGFILE, --configfile=CONFIGFILE
                        config file must define all params (see man)
  --host=HOST           hostname of zeo server
  --port=PORT           port of zeo server
  -R DATAROOT, --dataroot=DATAROOT
                        root object for data load (i.e. /zport/dmd)
  --cachesize=CACHESIZE
                        in memory cachesize default: 1000
  --pcachename=PCACHENAME
                        persistent cache file name default:None
  --pcachedir=PCACHEDIR
                        persistent cache file directory
  --pcachesize=PCACHESIZE
                        persistent cache file size in MB
  --genconf             Generate a template configuration file
  --genxmltable         Generate a Docbook table showing command-line
                        switches.
*******************************
[zenoss@it bin]$ zenbackup --help
usage: ZenBackup.py [options]

options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -C CONFIGFILE, --configfile=CONFIGFILE
                        config file must define all params (see man)
  -v, --verbose         Send progress messages to stdout.
  --temp-dir=TEMPDIR    Directory to use for temporary storage.
  --dbname=DBNAME       MySQL events database name. By default this will be
                        fetched from zenoss unless --dont-fetch-args is set.
  --dbuser=DBUSER       MySQL username. By default this will be fetched from
                        zenoss unless --dont-fetch-args is set.
  --dbpass=DBPASS       MySQL password. By default this will be fetched from
                        zenoss unless --dont-fetch-args is set.
  --dont-fetch-args     By default dbname, dbuser and dbpass are retrieved
                        from zenoss if not specified and if zenoss is
                        available. This disables fetching of these values from
                        zenoss.
  --file=FILE           File to backup to. Backups will by default be placed
                        in $ZENHOME/backups/
  --no-eventsdb         Do not include the events database in the backup.
  --stdout              Send backup to stdout instead of a file
  --save-mysql-access   Include dbname, dbuser and dbpass in backup file for
                        use during restore.
  --genconf             Generate a template configuration file
  --genxmltable         Generate a Docbook table showing command-line
                        switches.
[zenoss@it bin]$

*********************************************************
also guide me that how to create Backup of zenoss so that i can install fresh zenoss
and i don't have to add Device one by one instead this process should be done using backup file.
In Zenoss Administration Guide they have mentionded.......these commands should i try these ?
zenbackup --save-mysql-access --file=BACKUPFILEPATH
zenrestore --file=BACKUPFILEPATH



now i got smile on my face......... Thanks !!!!!!

 

by: that1guy15Posted on 2008-05-08 at 15:37:46ID: 21529045

I have not had much luck with the zenbackup.py script and have created a script to tar the Zenoss directory and do a mysql dump of the DB.

You might check the zenoss forums to see if anyone has had any luck with it.
http://community.zenoss.com/forums/

Usually to use a zenpack you need to add a data source in a device template that utilizes that zenpack. I have not seen a printer zenpack on the zenoss web site so im not familiar with it. Check with the creator to see if you can get any insight on how to use it.

 

by: nushahidPosted on 2008-05-08 at 16:10:01ID: 21529202

Printer Zenpack url is given below:
http://www.zenoss.com/community/projects/zenpacks/generic-printer

I just wrote this line in order to see what zenbackup.py will response....
I think this is some kind of syntax error.......
well, i run zenbackup command and got follwoing lines........See
********************************************************
[zenoss@it bin]$ zenbackup --save-mysql-access --file=/home/zenoss/
tar: /home/zenoss/: Cannot open: Is a directory
tar: Error is not recoverable: exiting now

gzip: stdout: Broken pipe
tar: /home/zenoss/: Cannot write: Broken pipe
tar: Error is not recoverable: exiting now
[zenoss@it bin]$
************************************************************
Please tell me what is the correct use of this command
[zenoss@it bin]$ zenbackup --help
in previous post all available options are listed......may this time our luck will be with us.......


 

by: nushahidPosted on 2008-05-08 at 16:23:19ID: 31456238

I really would like to appreciate your attention towards my problem especially your in time response to my all comments...
That was step by step process and i am really satisfy with your professional knowledge....
may GOD bless you...
Thanks

 

by: that1guy15Posted on 2008-05-08 at 16:26:28ID: 21529294

You need a file name at the end of your line. Zenoss will then append the date to your file name

[zenoss@it bin]$ zenbackup --save-mysql-access --file=/home/zenoss/<file name>

 

by: that1guy15Posted on 2008-05-08 at 16:27:14ID: 21529300

No problem.

 

by: nushahidPosted on 2008-05-08 at 18:00:29ID: 21529715


i used your suggestion and run this command result was Fantastic......!!!

zenbackup --save-mysql-access --file=/home/zenoss/firstZenossBackup

after some seconds delay i got command prompt again and when i checked /home/zenoss directory
then i found a file named firstZenossBackup with size of approximately 19Mb. Actually, currently i am monitoring
more then 100 Window device and few Linux Machines and 1 Switch....
I am very happy........

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...