zenoss / zenpacks.chudler.xmppbot Goto Github PK
View Code? Open in Web Editor NEWZenPacks.chudler.xmppBot ZenPack
License: GNU General Public License v2.0
ZenPacks.chudler.xmppBot ZenPack
License: GNU General Public License v2.0
Running the latest head of the ZenPack, with Zenoss 3.2.1.
Whenever a plugin instantiates a new ZenAdapter (which happens for every plugin.call), a dmd object is initialized but it is never discarded(ZenAdapter.py:18). After each new ZenAdapter instance, the xmppbot daemon will create a new socket to Zeo, and two temporary files in /tmp. These handles are never closed, which eventually results in the daemon reaching max-open-files.
A successful workaround was to pass the dmd object from the daemon to initPluginSystem, and then use it in ZenAdapter instead of instantiating a new dmd. It works, but it is ugly as sin.
After the daemon hits the max-open-files limit, the daemon ceases to function normally, and has to be kill -9'd. The xmppbot.log will fill with this:
2012-02-10 12:40:39,038 ERROR ZEO.zrpc: (18972) CW: connect_ex(('localhost', 8100)) failed: [Errno -2] Name or service not known
When running the bot in the foreground, the error generated is more obvious:
2012-02-10 15:23:48,268 ERROR ZEO.zrpc: (3334) CW: can't create socket, domain=2: [Errno 24] Too many open files
The filehandles which are duplicated with each plugin.call:
.python.b 16079 zenoss 52u IPv4 5589132 0t0 TCP localhost:43548->localhost:8100 (ESTABLISHED)
.python.b 16079 zenoss 53u REG 202,1 0 18819 /tmp/tmp6Qk5xH.tbuf (deleted)
.python.b 16079 zenoss 54u REG 202,1 10485760 18820 /tmp/tmpS7dUhb (deleted)
Hi all,
Trying to configure xmppBot with Zenoss 4.x (4.2.3)
Initially came across some errors with ZenActions.. which was discovered to now be ZenActionD. After that, ran into problems with PBDaemon.py - AttributeError: Values instance has no attribute 'maxqueuelen'. + various attributes. After solving for the attributes, xmppBot still won't start/run.
Has anyone gotten xmppBot (2.0) to work with Zenoss 4.x?
Thanks,
Mark
Hi.
I'm using Zenoss 3.2.1 and xmppBot 1.1.
When I click on the "view log" on the settings -> daemons page I receive this error:
Error reading xmppBot log file '/usr/local/zenoss/zenoss/log/xmppBot.log':
[Errno 2] No such file or directory: '/usr/local/zenoss/zenoss/log/xmppBot.log'
Fair enough, the file's not there. xmppBot logs to /usr/local/zenoss/zenoss/log/xmppbot.log by default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.