Hi to everybody. I want to add nagios plugin to zenoss fo execution. I read it http://www.zenoss.com/community/docs/howtos/create-modify-nagios-templates/ and I think that it is out of date, but i understood how to do it. I want to check some site with check_http plugin, plugin work in command line, but want to add this plugin to execute at regular time for some device(somesite.com) I did the next: 1. Go to the device /Devices /WEB /somesite.com 2. Execute More/Templates 3. Then execute AddTemplate 4. I give the ID for Template ( "aa" for examle) 5. Click on "aa" 6 Field "Description" - some description 7. Save 8. But when i try ot Add Data source , i had this error in event.log
2007-11-06T19:11:25 ERROR Zope.SiteErrorLog http://10.1.1.200:8080/zport/dmd/Devices/WEB/devices/somesite.com/aa/dialog_addDataSource Traceback (most recent call last): File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 114, in publish request, bind=1) File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 88, in mapply if debug is not None: return debug(object,args,context) File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 40, in call_object result=apply(object,args) # Type s<cr> to step into published object. File "/opt/zenoss/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__ return self._bindAndExec(args, kw, None) File "/opt/zenoss/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec return self._exec(bound_data, args, kw) File "/opt/zenoss/Products/CMFCore/FSPageTemplate.py", line 195, in _exec result = self.pt_render(extra_context=bound_names) File "/opt/zenoss/Products/CMFCore/FSPageTemplate.py", line 134, in pt_render result = FSPageTemplate.inheritedAttribute('pt_render')( File "/opt/zenoss/lib/python/Products/PageTemplates/PageTemplate.py", line 104, in pt_render tal=not source, strictinsert=0)() File "/opt/zenoss/lib/python/TAL/TALInterpreter.py", line 206, in __call__ self.interpret(self.program) File "/opt/zenoss/lib/python/TAL/TALInterpreter.py", line 250, in interpret handlers[opcode](self, args) File "/opt/zenoss/lib/python/TAL/TALInterpreter.py", line 651, in do_loop_tal iterator = self.engine.setRepeat(name, expr) File "/opt/zenoss/lib/python/Products/PageTemplates/TALES.py", line 206, in setRepeat expr = self.evaluate(expr) File "/opt/zenoss/lib/python/Products/PageTemplates/TALES.py", line 221, in evaluate return expression(self) File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 185, in __call__ return self._eval(econtext) File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 180, in _eval return render(ob, econtext.vars) File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 85, in render ob = ob() File "/opt/zenoss/Products/ZenModel/RRDTemplate.py", line 338, in getDataSourceOptions for dsClass in self.getDataSourceClasses(): File "/opt/zenoss/Products/ZenModel/RRDTemplate.py", line 329, in getDataSourceClasses dsClasses += zp.getDataSourceClasses() AttributeError: getDataSourceClasses Any Ideas ????????, Colud somebody help me, please !!! -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=12800#12800 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
