Hello,

I am writing a script to automate the creation of a machine along with a 
template and datasources/graphs.

When I use manage_addRRDDataSource('evt','COMMAND') on the template I have 
created, I got a "need more than 1 value to unpack" error.

Is it the right way to create a datasource on a template? 

Thank you.


Code:

dl = context.DeviceLoader
dl.loadDevice('10.68.140.141',"/Server/Linux","","","","","",0,1000,"", 
'','','','','',['/Metier/Machine'],[],['localhost'],'localhost','none')

myDevices = context.Devices.getSubDevices()

for device in myDevices :
  if device.id == '10.68.140.141':
     device.addLocalTemplate('CheckCompteur')
     templates = device.getRRDTemplates()
     for template in templates:
       if template.id == 'CheckCompteur': 
         template.manage_addRRDDataSource('evt','COMMAND')







-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=15037#15037

-------------------- m2f --------------------



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

Reply via email to