Quantcast
Channel: Zenoss Community: Message List
Viewing all articles
Browse latest Browse all 1097

Zope Script(Python) error

$
0
0

I am trying to setup dynamic filesystem checks using the example from the link below.

 

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.


Viewing all articles
Browse latest Browse all 1097

Trending Articles