TECHZEN Zenoss User Community ARCHIVE  

zenpython fails to applyDatamaps() - connection refused error

Subject: zenpython fails to applyDatamaps() - connection refused error
Author: [Not Specified]
Posted: 2014-12-15 06:54

> /usr/local/zenoss/ZenPacks/ZenPacks.zenoss.PythonCollector-1.6.0.egg/ZenPacks/zenoss/PythonCollector/zenpython.py(298)applyMaps()
-> changed = yield remoteProxy.callRemote(
(Pdb) cont
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
Failure: twisted.python.failure.DefaultException: Connection was refused by other side: 111: Connection refused.

I am trying to model a component, through zenpython.
When I pass a maps key, with a dictionary, it fails with the remoteProxy call failing as above.
Can anyone point me to the root cause of this problem
I am running zenoss 4.2.5.

Your comments are much appreciated.
Thanks,
LN



Subject: Presumably your modeler
Author: Jane Curry
Posted: 2014-12-15 11:01

Presumably your modeler plugin attempts to connect to a remote system - with a userid and password Or is this windows and you are using wmi or winrm Either way, the authentication is failing so either you haven't configured the appropriate userid and password (zCommandUsername / zCommandPassword or corresponding Windows ones) or the target system is not configured to accept these credentials.
Cheers,
Jane

Email: jane.curry@skills-1st.co.uk    Web: https://www.skills-1st.co.uk



Subject: Thanks Jane for your response
Author: [Not Specified]
Posted: 2014-12-16 05:19

Thanks Jane for your response.

My setup is Linux.
I am using zenpython daemon to push metrics which works fine.
But zenpython can also update the model, if the result have 'maps' key in dictionary.
When I provide this, the python collector tries applying this data to the model by invoking callRemote(_applyDataMaps. args). This function fails with the connection refused.

So, if you follow me, then the collection from a remote monitored device has happened already.
The result is being processed and submitted to the Pythoncollector as a dictionary, with 'values', 'maps' and 'events' as keys. 'values' and 'events' work as expected, that is rrd is updated and events are posted.
It is only when I try to update the model, it fails.

I run single node local collector zenoss system. So the communication is from PythonCollector to ZenHub both running in the same machine.

Given the above background, can you please provide more insights into this issue
Is there any reference to open python zenpack that I can use to check the flow and validate in my setup.

Thanks,
LN



Subject: Resolved
Author: [Not Specified]
Posted: 2014-12-23 01:31

With zenpython, result['maps'] dictionary item is a list of ObjectMaps or RelationshipMaps(). I gave a plain dictionary which caused all sort of weirdness.



< Previous
OpenStack (Tenent) ZenPack SSL Issue
  Next
zenwinsrvsnmp heartbeat failure event problem
>