steve stoltz
2013-09-05 16:05:24 UTC
steve stoltz [http://community.zenoss.org/people/sstoltz] created the discussion
"Zope Script(Python) error"
To view the discussion, visit: http://community.zenoss.org/message/74578#74578
--------------------------------------------------------------
I am trying to setup dynamic filesystem checks using the example from the link below.
http://wiki.zenoss.org/Per-Filesystem_Thresholds http://wiki.zenoss.org/Per-Filesystem_Thresholds
When I run the first line in the scirpt I get an error.
 File "<console>", line 1, in <module>
 File "/opt/zenoss/lib/python/Shared/DC/Scripts/Bindings.py", line 322, in __call__
   return self._bindAndExec(args, kw, None)
 File "/opt/zenoss/lib/python/Shared/DC/Scripts/Bindings.py", line 359, in _bindAndExec
   return self._exec(bound_data, args, kw)
 File "/opt/zenoss/lib/python/Products/PythonScripts/PythonScript.py", line 344, in _exec
   result = f(*args, **kw)
 File "Script (Python)", line 1, in MountThresholds
 File "/opt/zenoss/lib/python/Shared/DC/Scripts/Bindings.py", line 193, in __getattr__
   return guarded_getattr(self._wrapped, name, default)
Unauthorized: You are not allowed to access 'getZ' in this context
What do I need to change to gain authoriziation for this fuction call to work?
This is on Zenoss 4.2.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74578#74578]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Zope Script(Python) error"
To view the discussion, visit: http://community.zenoss.org/message/74578#74578
--------------------------------------------------------------
I am trying to setup dynamic filesystem checks using the example from the link below.
http://wiki.zenoss.org/Per-Filesystem_Thresholds http://wiki.zenoss.org/Per-Filesystem_Thresholds
When I run the first line in the scirpt I get an error.
d.getFileSystemThreshold()
Traceback (most recent call last):Â File "<console>", line 1, in <module>
 File "/opt/zenoss/lib/python/Shared/DC/Scripts/Bindings.py", line 322, in __call__
   return self._bindAndExec(args, kw, None)
 File "/opt/zenoss/lib/python/Shared/DC/Scripts/Bindings.py", line 359, in _bindAndExec
   return self._exec(bound_data, args, kw)
 File "/opt/zenoss/lib/python/Products/PythonScripts/PythonScript.py", line 344, in _exec
   result = f(*args, **kw)
 File "Script (Python)", line 1, in MountThresholds
 File "/opt/zenoss/lib/python/Shared/DC/Scripts/Bindings.py", line 193, in __getattr__
   return guarded_getattr(self._wrapped, name, default)
Unauthorized: You are not allowed to access 'getZ' in this context
What do I need to change to gain authoriziation for this fuction call to work?
This is on Zenoss 4.2.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74578#74578]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]