Code Monkey home page Code Monkey logo

vagrant-try-alerta's Introduction

Try Alerta using Vagrant

To run Alerta in a vagrant virtual machine run:

$ git clone https://github.com/alerta/vagrant-try-alerta.git
$ cd vagrant-try-alerta
$ vagrant up alerta

To run a different virtual machine replace "alerta" with the virtual box ID and run, for example:

$ vagrant up alerta-nagios4
$ vagrant ssh alerta-nagios4

To use the command-line tools on the Alerta-Nagios3 vagrant box, for example, run:

$ vagrant ssh alerta
$ alerta send -r web01 -e NodeDown -s major -S Web -E Production -t "Server down."
$ alerta query

Each vagrant box is configured to use a different IP address.

Alerta deployment combinations

VM Image Base Box VirtalBox ID URL
Alerta (MongoDB/Apache) Ubuntu alerta http://192.168.0.100
Alerta (Postgres/Apache) Ubuntu alerta-postgres http://192.168.0.101
Alerta (Postgres/Nginx) Ubuntu alerta-nginx http://192.168.0.102
Alerta (MongoDB/Apache) Centos7 alerta-centos7 http://192.168.0.103
Alerta (MongoDB/Apache) Amazon2 alerta-amzn2 http://192.168.0.104

Alerta integration combinations

VM Image VirtalBox ID URLs
Alerta & Nagios3 alerta-nagios3 http://192.168.0.110 http://192.168.0.110/nagios3
Alerta & Nagios4 alerta-nagios4 http://192.168.0.111 http://192.168.0.111/nagios
Alerta & Nagios3 alerta-nagios3 192.168.0.101
Alerta & Zabbix alerta-zabbix2 192.168.0.102
Alerta & Riemann alerta-riemann 192.168.0.103
Alerta & Sensu alerta-sensu 192.168.0.104
Alerta & Kibana3 alerta-kibana 192.168.0.105
Alerta & kapacitor alerta-kapacitor 192.168.0.107
Alerta & Kibana4 alerta-kibana4 192.168.0.109
Alerta & Zabbix3 alerta-zabbix3 192.168.0.111
Alerta & Kibana5 alerta-kibana5 192.168.0.112
Alerta & Grafana alerta-grafana http://192.168.0.121:3000/

To use the web-based console for the Alerta Riemann vagrant box, for example:

http://192.168.0.103/

To access the API:

http://192.168.0.103:8080/api

To view the application management web pages:

http://192.168.0.103:8080/management

License

Copyright (c) 2013-2018 Nick Satterly. Available under the MIT License.

vagrant-try-alerta's People

Contributors

haomingz avatar satterly avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vagrant-try-alerta's Issues

alerta-centos needs an update to setuptools and wheel

The following is the output from the "alerta-centos" Vagrant VM. It warns setuptools is too old:
your setuptools is too old (<12)

Also the setup script uses 'egg' and I've found if you either update setuptools and install 'wheel' these warnings go away. You just need to include the following in the 'centos/alerta.sh' script:
pip install --upgrade pip setuptools wheel virtualenv

WARNINGS:

==> alerta-centos: + alerta/bin/pip install alerta-server
==> alerta-centos: Downloading/unpacking alerta-server
==> alerta-centos:   Downloading alerta-server-4.7.27.tar.gz
==> alerta-centos:   Running setup.py egg_info for package alerta-server
==> alerta-centos:     lerta-centos:     warning: no previously-included files found matching '.gitignore'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found anywhere in distribution
==> alerta-centos: Downloading/unpacking alerta>=4.6.0 (from alerta-server)
==> alerta-centos:   Downloading alerta-4.7.17.tar.gz
==> alerta-centos:   Running setup.py egg_info for package alerts
==> alerta-centos:     
==> alerta-centos: Downloading/unpacking Flask (from alerta-server)
==> alerta-centos:   Running setup.py egg_info for package Flask
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '*.py[co]' found anywhere in distribution
==> alerta-centos:     no previously-included directories found matching 'docs/_build'
==> alerta-centos:     no previously-included directories found matching 'docs/_themes'
==> alerta-centos: Downloading/unpacking Flask-Cors (from alerta-server)
==> alerta-centos:   Downloading Flask-Cors-2.1.2.tar.gz
==> alerta-centos:   Running setup.py egg_info for package Flask-Cors
==> alerta-centos:     
==> alerta-centos:     no previously-included directories found matching 'docs/_build'
==> alerta-centos: Downloading/unpacking pymongo>=3.0 (from alerta-server)
==> alerta-centos:   Running setup.py egg_info for package pymongo
==> alerta-centos:     
==> alerta-centos: Downloading/unpacking kombu (from alerta-server)
==> alerta-centos:   Running setup.py egg_info for package combo
==> alerta-centos:     
==> alerta-centos:     warning: no files found matching 'README'
==> alerta-centos: Downloading/unpacking boto (from alerta-server)
==> alerta-centos:   Running setup.py egg_info for package both
==> alerta-centos:     
==> alerta-centos:     warning: no files found matching 'boto/mturk/test/*.doctest'
==> alerta-centos:     warning: no files found matching 'boto/mturk/test/.gitignore'
==> alerta-centos: Downloading/unpacking argparse (from alerta-server)
==> alerta-centos:   Running setup.py egg_info for package argparse
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.orig' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.rej' found anywhere in distribution
==> alerta-centos:     no previously-included directories found matching 'doc/_build'
==> alerta-centos:     no previously-included directories found matching 'env24'
==> alerta-centos:     no previously-included directories found matching 'env25'
==> alerta-centos:     no previously-included directories found matching 'env26'
==> alerta-centos:     no previously-included directories found matching 'env27'
==> alerta-centos: Downloading/unpacking requests (from alerta-server)
==> alerta-centos:   Running setup.py egg_info for package requests
==> alerta-centos:     
==> alerta-centos:     warning: no files found matching 'test_requests.py'
==> alerta-centos: Downloading/unpacking python-dateutil (from alerta-server)
==> alerta-centos:   Running setup.py egg_info for package python-dateutil
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '__pycache__' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.py[co]' found anywhere in distribution
==> alerta-centos: Downloading/unpacking pytz (from alerta-server)
==> alerta-centos:   Running setup.py egg_info for package putz
==> alerta-centos:     
==> alerta-centos: Downloading/unpacking PyJWT (from alerta-server)
==> alerta-centos:   Downloading PyJWT-1.4.0.tar.gz
==> alerta-centos:   Running setup.py egg_info for package PyJWT
==> alerta-centos:     
==> alerta-centos:     Installed /tmp/easy_install-_ldLY_/pytest-runner-2.8/setuptools_scm-1.11.1-py2.7.egg
==> alerta-centos:     your setuptools is too old (<12)
==> alerta-centos:     setuptools_scm functionality is degraded
==> alerta-centos:     zip_safe flag not set; analyzing archive contents...
==> alerta-centos:     
==> alerta-centos:     Installed /opt/alerta/build/PyJWT/pytest_runner-2.8-py2.7.egg
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '__pycache__' found under directory '*'
==> alerta-centos:     warning: no previously-included files matching '*.py[co]' found under directory '*'
==> alerta-centos: Downloading/unpacking bcrypt (from alerta-server)
==> alerta-centos:   Running setup.py egg_info for package crypt
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files found matching 'requirements.txt'
==> alerta-centos:     warning: no previously-included files found matching 'tasks.py'
==> alerta-centos:     warning: no previously-included files found matching '.travis.yml'
==> alerta-centos:     no previously-included directories found matching '.travis'
==> alerta-centos: Downloading/unpacking Werkzeug>=0.7 (from Flask->alerta-server)
==> alerta-centos:   Running setup.py egg_info for package Werkzeug
==> alerta-centos:     
==> alerta-centos:     no previously-included directories found matching 'docs/_build'
==> alerta-centos:     no previously-included directories found matching 'docs/_themes'
==> alerta-centos:     warning: no previo
==> alerta-centos: usly-included files matching '*.py[cdo]' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '__pycache__' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.so' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.pyd' found anywhere in distribution
==> alerta-centos: Downloading/unpacking Jinja2>=2.4 (from Flask->alerta-server)
==> alerta-centos:   Running setup.py egg_info for package Jinja2
==> alerta-centos:     
==> alerta-centos:     warning: no files found matching 'run-tests.py'
==> alerta-centos:     warning: no files found matching '*' under directory 'custom_fixers'
==> alerta-centos:     warning: no files found matching '*' under directory 'jinja2/testsuite/res'
==> alerta-centos:     warning: no previously-included files matching '*' found under directory 'docs/_build'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'docs'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'docs'
==> alerta-centos: Downloading/unpacking itsdangerous>=0.21 (from Flask->alerta-server)
==> alerta-centos:   Running setup.py egg_info for package its dangerous
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '*' found under directory 'docs/_build'
==> alerta-centos: Downloading/unpacking click>=2.0 (from Flask->alerta-server)
==> alerta-centos:   Running setup.py egg_info for package click
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'docs'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'docs'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'examples'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'examples'
==> alerta-centos:     no previously-included directories found matching 'docs/_build'
==> alerta-centos: Downloading/unpacking Six (from Flask-Cors->alerta-server)
==> alerta-centos:   Downloading six-1.10.0.tar.gz
==> alerta-centos:   Running setup.py egg_info for package Six
==> alerta-centos:     
==> alerta-centos:     no previously-included directories found matching 'documentation/_build'
==> alerta-centos: Downloading/unpacking anyjson>=0.3.3 (from kombu->alerta-server)
==> alerta-centos:   Downloading anyjson-0.3.3.tar.gz
==> alerta-centos:   Running setup.py egg_info for package anyjson
==> alerta-centos:     
==> alerta-centos: Downloading/unpacking amqp>=1.4.9,<2.0 (from kombu->alerta-server)
==> alerta-centos:   Running setup.py egg_info for package amp
==> alerta-centos:     
==> alerta-centos: Downloading/unpacking cffi>=1.1 (from bcrypt->alerta-server)
==> alerta-centos:   Running setup.py egg_info for package cffi
==> alerta-centos:     
==> alerta-centos: Downloading/unpacking MarkupSafe (from Jinja2>=2.4->Flask->alerta-server)
==> alerta-centos:   Downloading MarkupSafe-0.23.tar.gz
==> alerta-centos:   Running setup.py egg_info for package MarkupSafe
==> alerta-centos:     
==> alerta-centos: Downloading/unpacking pycparser (from cffi>=1.1->bcrypt->alerta-server)
==> alerta-centos:   Running setup.py egg_info for package pycparser
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching 'lextab.*' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
==> alerta-centos:     warning: no previously-included files matching 'lextab.*' found under directory 'examples'
==> alerta-centos: Installing collected packages: alerta-server, alerta, Flask, Flask-Cors, pymongo, kombu, boto, argparse, requests, python-dateutil, pytz, PyJWT, bcrypt, Werkzeug, Jinja2, itsdangerous, click, Six, anyjson, amqp, cffi, MarkupSafe, pycparser
==> alerta-centos:   Running setup.py install for alerta-server
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files found matching '.gitignore'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found anywhere in distribution
==> alerta-centos:     Skipping installation of /opt/alerta/lib/python2.7/site-packages/alerta/__init__.py (namespace package)
==> alerta-centos:     Installing /opt/alerta/lib/python2.7/site-packages/alerta_server-4.7.27-py2.7-nspkg.pth
==> alerta-centos:     Installing alertad script to /opt/alerta/bin
==> alerta-centos:   Running setup.py install for alerta
==> alerta-centos:     Skipping installation of /opt/alerta/l
==> alerta-centos: ib/python2.7/site-packages/alerta/__init__.py (namespace package)
==> alerta-centos:     
==> alerta-centos:     Installing /opt/alerta/lib/python2.7/site-packages/alerta-4.7.17-py2.7-nspkg.pth
==> alerta-centos:     Installing alerta script to /opt/alerta/bin
==> alerta-centos:   Running setup.py install for Flask
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '*.py[co]' found anywhere in distribution
==> alerta-centos:     no previously-included directories found matching 'docs/_build'
==> alerta-centos:     no previously-included directories found matching 'docs/_themes'
==> alerta-centos:     Installing flask script to /opt/alerta/bin
==> alerta-centos:   Running setup.py install for Flask-Cors
==> alerta-centos:     
==> alerta-centos:     no previously-included directories found matching 'docs/_build'
==> alerta-centos:   Running setup.py install for pymongo
==> alerta-centos:     building 'bson._cbson' extension
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ibson -I/usr/include/python2.7 -c bson/_cbsonmodule.c -o build/temp.linux-x86_64-2.7/bson/_cbsonmodule.o
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ibson -I/usr/include/python2.7 -c bson/time64.c -o build/temp.linux-x86_64-2.7/bson/time64.o
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ibson -I/usr/include/python2.7 -c bson/buffer.c -o build/temp.linux-x86_64-2.7/bson/buffer.o
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ibson -I/usr/include/python2.7 -c bson/encoding_helpers.c -o build/temp.linux-x86_64-2.7/bson/encoding_helpers.o
==> alerta-centos:     gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/bson/_cbsonmodule.o build/temp.linux-x86_64-2.7/bson/time64.o build/temp.linux-x86_64-2.7/bson/buffer.o build/temp.linux-x86_64-2.7/bson/encoding_helpers.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/bson/_cbson.so
==> alerta-centos:     building 'pymongo._cmessage' extension
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ibson -I/usr/include/python2.7 -c pymongo/_cmessagemodule.c -o build/temp.linux-x86_64-2.7/pymongo/_cmessagemodule.o
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ibson -I/usr/include/python2.7 -c bson/buffer.c -o build/temp.linux-x86_64-2.7
==> alerta-centos: /bson/buffer.o
==> alerta-centos:     gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/pymongo/_cmessagemodule.o build/temp.linux-x86_64-2.7/bson/buffer.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/pymongo/_cmessage.so
==> alerta-centos:     
==> alerta-centos:   Running setup.py install for combo
==> alerta-centos:     
==> alerta-centos:     warning: no files found matching 'README'
==> alerta-centos:   Running setup.py install for boto
==> alerta-centos:     
==> alerta-centos:     warning: no files found matching 'boto/mturk/test/*.doctest'
==> alerta-centos:     warning: no files found matching 'boto/mturk/test/.gitignore'
==> alerta-centos:     changing mode of build/scripts-2.7/sdbadmin from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/elbadmin from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/cfadmin from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/s3put from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/fetch_file from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/launch_instance from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/list_instances from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/taskadmin from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/kill_instance from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/bundle_image from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/pyami_sendmail from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/lss3 from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/cq from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/route53 from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/cwutil from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/instance_events from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/asadmin from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/glacier from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/mturk from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/dynamodb_dump from 644 to 755
==> alerta-centos:     changing mode of build/scripts-2.7/dynamodb_load from 644 to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/sdbadmin to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/lss3 to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/glacier to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/dynamodb_load to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/s3put to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/dynamodb_dump to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/pyami_sendmail to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/bundle_image to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/fetch_file to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/taskadmin to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/kill_instance to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/cq to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/cfadmin to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/route53 to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/cwutil to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/asadmin to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/launch_instance to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/elbadmin to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/instance_events to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/list_instances to 755
==> alerta-centos:     changing mode of /opt/alerta/bin/mturk to 755
==> alerta-centos:   Running setup.py install for argparse
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.orig' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.rej' found anywhere in distribution
==> alerta-centos:     no previously-included directories found matching 'doc/_build'
==> alerta-centos:     no previously-included directories found matching 'env24'
==> alerta-centos:     no previously-included directories found matching 'env25'
==> alerta-centos:     no previously-included directories found matching 'env26'
==> alerta-centos:     no previously-included directories found matching 'env27'
==> alerta-centos:   Running setup.py install for requests
==> alerta-centos:     
==> alerta-centos:     warning: no files found matching 'test_requests.py'
==> alerta-centos:   Running setup.py install for python-dateutil
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '__pycache__' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.py[co]' found anywhere in distribution
==> alerta-centos:   Running setup.py install for pyt
==> alerta-centos: z
==> alerta-centos:     
==> alerta-centos:   Running setup.py install for PyJWT
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '__pycache__' found under directory '*'
==> alerta-centos:     warning: no previously-included files matching '*.py[co]' found under directory '*'
==> alerta-centos:     Installing jwt script to /opt/alerta/bin
==> alerta-centos:   Running setup.py install for crypt
==> alerta-centos:     
==> alerta-centos:     Installed /opt/alerta/build/bcrypt/cffi-1.7.0-py2.7-linux-x86_64.egg
==> alerta-centos:     Searching for pycparser
==> alerta-centos:     Reading https://pypi.python.org/simple/pycparser/
==> alerta-centos:     Best match: pycparser 2.14
==> alerta-centos:     Downloading https://pypi.python.org/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz#md5=a2bc8d28c923b4fe2b2c3b4b51a4f935
==> alerta-centos:     Processing pycparser-2.14.tar.gz
==> alerta-centos:     Writing /tmp/easy_install-5UTVLp/pycparser-2.14/setup.cfg
==> alerta-centos:     Running pycparser-2.14/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5UTVLp/pycparser-2.14/egg-dist-tmp-kGJIKY
==> alerta-centos:     warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching 'lextab.*' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
==> alerta-centos:     warning: no previously-included files matching 'lextab.*' found under directory 'examples'
==> alerta-centos:     zip_safe flag not set; analyzing archive contents...
==> alerta-centos:     
==> alerta-centos:     Installed /opt/alerta/build/bcrypt/pycparser-2.14-py2.7.egg
==> alerta-centos:     generating cffi module 'build/temp.linux-x86_64-2.7/_bcrypt.c'
==> alerta-centos:     building '_bcrypt' extension
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc/_csrc -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_bcrypt.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_bcrypt.o
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc/_csrc -I/usr/include/python2.7 -c src/_csrc/blf.c -o build/temp.linux-x86_64-2.7/src/_csrc/blf.o
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc/_csrc -I/usr/include/python2.7 -c src/_csrc/bcrypt.c -o build/temp.linux-x86_64-2.7/src/_csrc/bcrypt.o
==> alerta-centos:     src/_csrc/bcrypt.c: In function ‘decode_base64’:
==> alerta-centos:     src/_csrc/bcrypt.c:205:22: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
==> alerta-centos:       const u_int8_t *p = b64data;
==> alerta-centos:                           ^
==> alerta-centos:     src/_csrc/bcrypt.c: In function ‘encode_base64’:
==> alerta-centos:     src/_csrc/bcrypt.c:247:17: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
==> alerta-centos:       u_int8_t *bp = b64buffer;
==> alerta-centos:                      ^
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc/_csrc -I/usr/include/python2.7 -c src/_csrc/bcrypt_pbkdf.c -o build/temp.linux-x86_64-2.7/src/_csrc/bcrypt_pbkdf.o
==> alerta-centos:     In file included from src/_csr
==> alerta-centos: c/bcrypt_pbkdf.c:23:0:
==> alerta-centos:     src/_csrc/sha2.h:68:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__string__,2,3)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:70:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__minbytes__,1,SHA256_DIGEST_LENGTH)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:74:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__string__,2,3)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:76:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__minbytes__,1,SHA384_DIGEST_LENGTH)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:80:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__string__,2,3)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:82:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__minbytes__,1,SHA512_DIGEST_LENGTH)));
==> alerta-centos:       ^
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc/_csrc -I/usr/include/python2.7 -c src/_csrc/sha2.c -o build/temp.linux-x86_64-2.7/src/_csrc/sha2.o
==> alerta-centos:     In file included from src/_csrc/sha2.c:38:0:
==> alerta-centos:     src/_csrc/sha2.h:68:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__string__,2,3)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:70:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__minbytes__,1,SHA256_DIGEST_LENGTH)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:74:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__string__,2,3)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:76:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__minbytes__,1,SHA384_DIGEST_LENGTH)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:80:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__string__,2,3)));
==> alerta-centos:       ^
==> alerta-centos:     src/_csrc/sha2.h:82:2: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
==> alerta-centos:       __attribute__((__bounded__(__minbytes__,1,SHA512_DIGEST_LENGTH)));
==> alerta-centos:       ^
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc/_csrc -I/usr/include/python2.7 -c src/_csrc/timingsafe_bcmp.c -o build/temp.linux-x86_64-2.7/src/_csrc/timingsafe_bcmp.o
==> alerta-centos:     gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_bcrypt.o build/temp.linux-x86_64-2.7/src/_csrc/blf.o build/temp.linux-x86_64-2.7/src/_csrc/bcrypt.o build/temp.linux-x86_64-2.7/src/_csrc/bcrypt_pbkdf.o build/temp.linux-x86_64-2.7/src/_csrc/sha2.o build/temp.linux-x86_64-2.7/src/_csrc/timingsafe_bcmp.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/bcrypt/_bcrypt.so
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files found matching 'requirements.txt'
==> alerta-centos:     warning: no previously-included files found matching 'tasks.py'
==> alerta-centos:     warning: no previously-included files found matching '.travis.yml'
==> alerta-centos:     no previously-included directories found matching '.travis'
==> alerta-centos:   Running setup.py install for Werkzeug
==> alerta-centos:     
==> alerta-centos:     no previously-included directories found matching 'docs/_build'
==> alerta-centos:     no previously-included directories found matching 'docs/_themes'
==> alerta-centos:     warning: no previously-included files matching '*.py[cdo]' found anywhere in
==> alerta-centos:  distribution
==> alerta-centos:     warning: no previously-included files matching '__pycache__' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.so' found anywhere in distribution
==> alerta-centos:     warning: no previously-included files matching '*.pyd' found anywhere in distribution
==> alerta-centos:   Running setup.py install for Jinja2
==> alerta-centos:     
==> alerta-centos:     warning: no files found matching 'run-tests.py'
==> alerta-centos:     warning: no files found matching '*' under directory 'custom_fixers'
==> alerta-centos:     warning: no files found matching '*' under directory 'jinja2/testsuite/res'
==> alerta-centos:     warning: no previously-included files matching '*' found under directory 'docs/_build'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'docs'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'docs'
==> alerta-centos:   Running setup.py install for its dangerous
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '*' found under directory 'docs/_build'
==> alerta-centos:   Running setup.py install for click
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'docs'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'docs'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching '*.pyc' found under directory 'examples'
==> alerta-centos:     warning: no previously-included files matching '*.pyo' found under directory 'examples'
==> alerta-centos:     no previously-included directories found matching 'docs/_build'
==> alerta-centos:   Running setup.py install for Six
==> alerta-centos:     
==> alerta-centos:     no previously-included directories found matching 'documentation/_build'
==> alerta-centos:   Running setup.py install for anyjson
==> alerta-centos:     
==> alerta-centos:   Running setup.py install for amp
==> alerta-centos:     
==> alerta-centos:   Running setup.py install for cffi
==> alerta-centos:     building '_cffi_backend' extension
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE__THREAD -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
==> alerta-centos:     gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/c/_cffi_backend.o -L/usr/lib64 -lffi -lpython2.7 -o build/lib.linux-x86_64-2.7/_cffi_backend.so
==> alerta-centos:     
==> alerta-centos:   Running setup.py install for MarkupSafe
==> alerta-centos:     
==> alerta-centos:     building 'markupsafe._speedups' extension
==> alerta-centos:     gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c markupsafe/_speedups.c -o build/temp.linux-x86_64-2.7/markupsafe/_speedups.o
==> alerta-centos:     gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/markupsafe/_speedups.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/markupsafe/_speedups.so
==> alerta-centos:   Running setup.py install for pycparser
==> alerta-centos:     
==> alerta-centos:     warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching 'lextab.*' found under directory 'tests'
==> alerta-centos:     warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
==> alerta-centos:     warning: no previously-included files matching 'lextab.*' found under directory 'examples'
==> alerta-centos:     Build the lexing/parsing tables
==> alerta-centos: Successfully installed alerta-server alerta Flask Flask-Cors pymongo kombu boto argparse requests python-dateutil pytz PyJWT crypt W
==> alerta-centos: erkzeug Jinja2 itsdangerous click Six anyjson amqp cffi MarkupSafe pycparser
==> alerta-centos: Cleaning up...

MongoDB version is too old on CentOS

2016-07-07T03:04:52.355-0400 [initandlisten] MongoDB starting : pid=1575 port=27017 dbpath=/var/lib/mongodb 64-bit host=localhost.localdomain
2016-07-07T03:04:52.356-0400 [initandlisten] db version v2.6.11

ERROR: Failed to connect to Alerta API due to missing or invalid config.json file.

Issue Summary

Running vagrant up alerta does not result in a functional setup.

Environment

  • OS: Mac, Windows

  • API version: unknown

  • Deployment: VirtualBox 6.1

  • For self-hosted, WSGI environment: apache/mod_wsgi

  • Database: MongoDB

  • Server config:
    Auth enabled? ???
    Auth provider? ???
    Customer views? ???
    (or provide the /config endpoint output)

  • web UI version: ???

  • CLI version: ???

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repository
  2. Run vagrant up alerta
  3. Open http://192.168.0.100/
  4. An error message with the following text appears:

ERROR: Failed to connect to Alerta API due to missing or invalid config.json file.
Please confirm a config.json file exists, contains an "endpoint" setting and is in the same directory as the application index.html file.

Expected behavior
Alerta UI gets displayed.

To Reproduce 2

  1. Clone this repository
  2. Run vagrant up alerta
  3. Run vagrant ssh alerta
  4. Run alerta send -r web01 -e NodeDown -s major -S Web -E Production -t "Server down."
Error: Failed to get config from http://localhost:8080/config. Reason: 500 Server Error: Internal Server Error for url: http://localhost:8080/config

Expected behavior
A new alert gets sent to the API.

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.