objectiflibre / cabot-alert-rocketchat Goto Github PK
View Code? Open in Web Editor NEWCabot alert plugin for RocketChat
License: MIT License
Cabot alert plugin for RocketChat
License: MIT License
I have already configured Rocketchat plugin in the cabot application. Thank you for the plugin contribution, really grateful. However, need some tweaking while showing the notification on mobile platforms. When the notification comes it only shows the service name. It would be AWESOME if the alert notification also added with service status small part.
I have found the place to change the config in the code, but I have installed using pip. How to change that config code, I have no idea. Will be helpful, if you can give me a pathway.
service_status_template = "{% if service.overall_status ==
service.PASSING_STATUS %}Back to normal{% else %}Reporting {{
service.overall_status }} status{% endif %}: [Link]({{ scheme }}://{{ host
}}{% url 'service' pk=service.id %})" check_error_template = "{% if
check.check_category == 'Jenkins check' %}{% if check.last_result.error %} {{
check.name }} ({{ check.last_result.error|safe }}) {{jenkins_api}}job/{{
check.name }}/{{ check.last_result.job_number }}/console{% else %} {{
check.name }} {{jenkins_api}}/job/{{ check.name
}}/{{check.last_result.job_number}}/console {% endif %}{% else %} {{
check.name }} {% if check.last_result.error %} ({{
check.last_result.error|safe }}){% endif %}{% endif %}" alert_template = "{%
for alias in users %} @{{ alias }}{% endfor %}"
Hello everyone,
After installing the plugin, the checks Cabot launches automatically are not running.
Here's the worker error :
[2018-10-24 13:40:09,035: ERROR/MainProcess] Received unregistered task of type 'cabot.cabotapp.tasks.run_all_checks'.
The message has been ignored and discarded.
Did you remember to import the module containing this task?
Or maybe you're using relative imports?
Please see
http://docs.celeryq.org/en/latest/internals/protocol.html
for more information.
The full contents of the message body was:
u'[[], {}, {"chord": null, "callbacks": null, "errbacks": null, "chain": null}]' (77b)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py", line 559, in on_task_received
strategy = strategies[type_]
KeyError: 'cabot.cabotapp.tasks.run_all_checks'
I am getting the following error when I add the plugin in the cabot_alert_rocketchat. As per the web error it is saying for able to find module named cabot_alert_rocketchat. Can you please give a solution.
CABOT_PLUGINS_ENABLED=cabot_alert_hipchat,cabot_alert_twilio,cabot_alert_email,cabot_alert_slack,cabot_alert_rocketchat
Traceback (most recent call last):
web_1 | File "/usr/local/bin/cabot", line 11, in <module>
web_1 | sys.exit(main())
web_1 | File "/usr/local/lib/python2.7/site-packages/cabot/entrypoint.py", line 10, in main
web_1 | execute_from_command_line(sys.argv)
web_1 | File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
web_1 | utility.execute()
web_1 | File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute
web_1 | django.setup()
web_1 | File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
web_1 | apps.populate(settings.INSTALLED_APPS)
web_1 | File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
web_1 | app_config = AppConfig.create(entry)
web_1 | File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 94, in create
web_1 | module = import_module(entry)
web_1 | File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
web_1 | __import__(name)
web_1 | ImportError: No module named cabot_alert_rocketchat
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.