Git Product home page Git Product logo

cabot-alert-rocketchat's People

Contributors

ferdousulhaque avatar fydrah avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cabot-alert-rocketchat's Issues

Need to change the RocketChat Service Title with Alert Status

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 %}"

Automated checks not running

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'

ImportError: No module named cabot_alert_rocketchat

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

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.