reikoneko / icinga2bot Goto Github PK
View Code? Open in Web Editor NEWicinga2bot is a plugin for errbot that speaks to the Icinga2 API in order to relay messages to and from a chat channel.
License: GNU General Public License v3.0
icinga2bot is a plugin for errbot that speaks to the Icinga2 API in order to relay messages to and from a chat channel.
License: GNU General Public License v3.0
After some debugging, it seems that the errors that me and other people are seeing are when trying to run the bot without the CHATROOM_PRESENCE
set in the config (which default errbot --init
doesn't set). The only indication of this is, after shuffling various thread functions around, following log:
2017-10-07 23:08:09,766 ERROR errbot.plugin_manager Error loading icinga2bot
Traceback (most recent call last):
File "/home/viq/Work/Own/errbot/.errbot-venv/lib/python3.6/site-packages/errbot/plugin_manager.py", line 524, in activate_non_started_plugins
self.activate_plugin_with_version_check(pluginInfo)
File "/home/viq/Work/Own/errbot/.errbot-venv/lib/python3.6/site-packages/errbot/plugin_manager.py", line 310, in activate_plugin_with_version_check
self.activatePluginByName(name, BOTPLUGIN_TAG)
File "/home/viq/Work/Own/errbot/.errbot-venv/lib/python3.6/site-packages/yapsy/PluginManager.py", line 563, in activatePluginByName
plugin_to_activate.activate()
File "/home/viq/Work/Own/errbot/errbot-root/plugins/icinga2bot/icinga2bot.py", line 259, in activate
self.room = self.query_room(self.bot_config.CHATROOM_PRESENCE[0])
IndexError: tuple index out of range
Please either handle such situation more gracefully, or at least produce a useful error message.
After installing and configuring, both on debian 8 and ubuntu 16.04 I see:
!plugin activate icinga2bot
Error activating plugin: icinga2bot failed to start : 'Icinga2bot' object has no attribute 'thread'
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.