Comments (5)
version details:
alerta (5.0.12)
alerta-server (5.0.5)
from python-alerta-client.
@sushovan23 wrote...
here are test results from heartbeat. I think you can reproduce when you have two heartbeats in the db. with one it works. I have two heartbeats and while sending alerts. i get first alert but second one fails
alerta (5.0.12)
alerta-server (5.0.9)
[root@XXXXX ~]# alerta heartbeats --alert
+---------------------+------------+---------+----------+-----------+--------------------+---------------------+--------------------------------------+-----------+---------------------+
| ORIGIN | CUSTOMER | SINCE | STATUS | TIMEOUT | TAGS | RECEIVED | ID | LATENCY | CREATED |
|---------------------+------------+---------+----------+-----------+--------------------+---------------------+--------------------------------------+-----------+---------------------|
| sync_script_test.py | | 0:08:03 | expired | 30s | notify_email=false | 2018/04/03 12:40:17 | 8ec77cef-b012-4c15-8a43-23467fb81537 | 0ms | 2018/04/03 12:40:17 |
| sync_script.py | | 0:07:16 | expired | 30s | notify_email=false | 2018/04/03 12:41:03 | 6b35bb58-9825-4c64-9a99-51fb00c775ab | 0ms | 2018/04/03 12:41:03 |
+---------------------+------------+---------+----------+-----------+--------------------+---------------------+--------------------------------------+-----------+---------------------+
Alerting 2 heartbeats [##################------------------] 50%
Traceback (most recent call last):
File "/bin/alerta", line 11, in <module>
sys.exit(cli())
File "/usr/lib64/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib64/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib64/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib64/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/click/decorators.py", line 27, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/alertaclient/commands/cmd_heartbeats.py", line 57, in cli
type='heartbeatAlert'
File "/usr/lib/python2.7/site-packages/alertaclient/api.py", line 69, in send_alert
alert = Alert.parse(r['alert']) if 'alert' in r else None
File "/usr/lib/python2.7/site-packages/alertaclient/models/alert.py", line 64, in parse
raise ValueError('timeout must be an integer')
ValueError: timeout must be an integer
this should help you track down the bug
from python-alerta-client.
I've tried to reproduce this and can't -- it works fine for me. Can you run this command again and add --debug
so it generates debug output? Thanks.
from python-alerta-client.
I rebuild my environment from scratch & it is working perfectly now. Not sure what was causing the failure. You can close this incident. Thanks for the support.
from python-alerta-client.
That's great. Thanks for letting me know.
from python-alerta-client.
Related Issues (20)
- Configurable timeout for alerts created from heartbeats
- Get config request ignores "SSL verify" setting
- severity used to close stale heartbeat alerts is hardcoded to 'normal' HOT 2
- Handle when config cannot be loaded from server
- Error when creating new users HOT 1
- output=silent (crontab mode) HOT 7
- Alerts on heartbeat are not triggered HOT 6
- Add generating heartbeat alerts to python SDK HOT 1
- Wheel name and python package name are different HOT 4
- `alerta heartbeats --alert` broken HOT 4
- TypeError: Object of type 'function' is not JSON serializable from CLI when running heartbeat alert HOT 1
- TypeError: Object of type 'function' is not JSON serializable from CLI when running heartbeat alert HOT 2
- SDK passing page size as "None" if not set
- alerta delete not removing all alerts HOT 1
- TypeError: 'User' object is not subscriptable
- Cron job for stale or slow heartbeats do not accept arguments specified in the documentation HOT 1
- Set alarm status in send_alarm HOT 3
- Add Python3 typing
- Alerta doesn't return all alert with get_alerts
- Unable to handshake between alerta server and Web UI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-alerta-client.