1) The individual ATM machines will belong to Locations, so if you need their unique addresses, you'll need to add further Locations (i.e. "/Locations/Moscow/Kremlin/ATM0001"). Don't forget that you can use latitude/longitude if Google has trouble resolving the locations, or they're close together and you still want them separated.
2) I'm not exactly sure what the stack trace is caused by, but I believe you have to have your groups already defined for the script to work. So make sure that 'ATMS' is defined as a group. Thanks, Matt Ray Zenoss Community Manager community.zenoss.com [email protected] On Jan 16, 2009, at 12:59 AM, kris wrote: > Hi, thank you very much for your answer! > But I have some questions because scripts don't work:((. Please, > help me! This task is very important for me. > > 1)About format of the file > Devices are ATMs (bankomats) with the simple names, not DNS And > they are not servers > > ATM0001, 172.12.6.82, "", "", "/Locations/Moscow", ['/ATMS'] > > Is it right? > And where can I write the address of the ATM? > > 2) I have the nest error while trying to add this device. > > > Code: > r...@nagios:/usr/local/zenoss/loadevice>./add-device-2.py devices-to- > add.txt > > Traceback (most recent call last): > File "/usr/local/zenoss/loadevice/add-device.py", line 5, in ? > dmd = ZenScriptBase(connect=True).dmd > File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenScriptBase.py", > line 37, in __init__ > self.connect() > File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenScriptBase.py", > line 51, in connect > self.getDataRoot() > File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenScriptBase.py", > line 118, in getDataRoot > self.dataroot = getObjByPath(self.app, self.options.dataroot) > File "/usr/local/zenoss/zenoss/Products/ZenUtils/Utils.py", line > 213, in getObjByPath > next=obj[name] > TypeError: unsubscriptable object > > > > > > > > -------------------- m2f -------------------- > > Read this topic online here: > http://forums.zenoss.com/viewtopic.php?p=30114#30114 > > -------------------- m2f -------------------- > > > > _______________________________________________ > 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
