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