How to create a egg file from your ZenPack

December 2nd, 2008


cd
python setup.py bdist_egg

This creates the egg file in the dist directory.

Ref: Section 3.5 Zenoss Dev Guide (V2.3.0)

How to add a zProperty in your ZenPack

December 2nd, 2008

Define it in the class in __init__.py in the ZenPack’s home directory.

Ref: Section 3.4.1 “Base ZenPack Class” of the Zenoss Developers Guide. (V2.3)

Debugging ZenPacks: why isn’t an event being generated?

November 29th, 2008

Check the zenhub.log file to make sure that there isn’t a syntax error in the code

How to see the Software Inventory

November 27th, 2008

Install the HRSWInstalledMap.

How to add collectors to a device class

November 27th, 2008

In the device class, go More>Collector Plugins; or go to the zProperties screen, then click the edit button next to the zCollectorPlugins field.

To add a new collector, click the very faint “Add Fields” link and a box will pop up with all the available ones.

How to convert a PKCS#12 cert into PEM

November 19th, 2008

openssl pkcs12 -in .p12 -out .pem

And if you want to take the password off, add -nodes

How to burn a CD from an ISO in OSX

October 29th, 2008

Open Disk Utility. Open Finder. Drag the ISO from the Finder window into the Disk Utility window. Select ISO in Disk Utility and click Burn.

How to undelete a file in svn

October 16th, 2008

Look in the .svn/entries file for the URL of the repo.

Get the number of the last revision the file was in before you deleted (or if you don’t know, start from the current one and work backwards)

svn cp -r <rev> <repourl>/<filename> ./<filename>

Then commit.

Asus Eee 900 won’t boot from USB drive

September 4th, 2008

Make sure the USB drive is listed as the first drive in the hard drive list, as well as being first in the list of devices to boot from.

Migrating sequences to Postgres

August 17th, 2008

When moving a database from mysql to postgres, it’s often necessary to reset the sequences (.i.e. autoupdated row ids)

Find out what the largest one is with select max (id) from mytable;

Set the sequence with select setval('mytable_id_seq',x+1) ;