Eric,
 
I tried to query on of our softswitches, trying to populate the software map 
with corect releases and patches installed on the platform. Would be happy to 
get them sorted under the "Software" Tab.
 
Somehow the code below does not work (actually used the procedures you 
described below)- It keeps saying there is no relation for "software" under 
device. 
 
Also do you have any guidance how to best integrate the softswitch components. 
I would love to see it as separate tab (to see # of calls active, #of processes 
etc...) but not really sure how this can be achieved. I wnt also some sort of 
"reaosnable" way where the plugins will be in "dedicated" directory (maybe a 
sym link) so when zenoss will get updated I will be able to keep my plugins...
 
Can you pls help?
 
P.
 

________________________________

Od: [EMAIL PROTECTED] za uživatele Erik A. Dahl
Odesláno: po 23.10.2006 21:18
Komu: General discussion of using zenoss system
Předmět: Re: [zenoss-users] DataCollector Docs



Pavel,

Take a look a the plugins in $ZENHOME/Products/DataCollector/plugins/
zenoss/snmp/HRSWInstalledMap.py for and example.  Here are some high 
level points though:

Define the type map you will be using the target class type the 
relationship name and the component name. here we are populating the 
relation dev.os.software with Sofware objects.  This is most likely 
what you want.

     maptype = "YourSoftwareMap"
     modname = "Products.ZenModel.Software"
     relname = "software"
     compname = "os"


To get a table returned with named columns defined a tuple of 
GetTableMap objects at the class level.

     snmpGetTableMaps = (
         GetTableMap('swTableOid', '.1.3.6.1.2.1.25.6.3.1',
                 {'.1': 'snmpindex',
                  '.2': 'setProductKey',
                  #'.4': 'type',
                  '.5': 'setInstallDate',
                  }
         ),
     )

In the method process you will be building a list of ObjectMaps that 
go into a RelMap.  One confusing thing in this method is the way a 
software instance is stored.  Most of the data (ie the name) goes 
into the class object.  This is found by the zenoss backend using the 
setProductKey method.  This key is used to find the software product 
for the instance you have collected (the product is under a 
manufacturer in the /Manufacturers root).  If none is found a new one 
is created in the /Unknown manufacturer.

-EAD



On Oct 21, 2006, at 1:49 PM, Chlupáček Pavel wrote:

> I need to write custom data collector plugin.
>
> I found that doc on wiki si in fact just skeleton. Can you at least 
> provide some high-level steps? I just need to query the system for 
> software installed (i.e. patches, versions etc) which are populated 
> over enterprise mib. Therefore need to use custom one.
>
> I tried to undestand code, but maybe providing some guidance with 
> reference to code will help.
>
> Thx. p.
>
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users


<<winmail.dat>>

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to