Giter Club home page Giter Club logo

zenpacks.chudler.xmppbot's People

Contributors

chudler avatar danielrobbins avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

alienth

zenpacks.chudler.xmppbot's Issues

xmppbot leaks dmd instances; eventually reaches max-open-files

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)

xmppBot + Zenoss 4.x

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

cannot read log file

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.