by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 18 2016 15:33
    @satterly banned @sandeepl337
Nick Satterly
@satterly
why do you want to remove /alert from the path? It won’t work without it.
SergioT
@stiurin
My assumption was Kapacitor is using a bespoke webhook JSON message
If I just use Alerta FQDN with no path to any custom webhook, then test alerts fail with 405 error
I just can't find documentation on what has to be enabled and configured on Alerta to accept Kapacitor messages
SergioT
@stiurin

Kapacitor config
url = "https://alerta.example.com"
would result in alerts being sent as
POST https://alerta.example.com/alert

to which Alerta would respond '405 Not Allowed'

Nick Satterly
@satterly
Is that the correct Alerta API endpoint? Are you using docker Alerta by any chance? If so it has /api on the end.
SergioT
@stiurin
you are genius, this has worked!
i am using Docker container, indeed
/api
and
token-prefix = "Key"
made it all work
i could not find this in documentation, thank you for guidance!
annu9103
@annu9103
any one suggest me curl command for last 10 min alert available in alert dashboard like $ curl http://api.local.alerta.io:8080/alerts?sort-by=lastReceiveTime&from-date=2020-05-29T14%3A27%3A54.931Z (i want alarm that generated in last 10 min ) this this hardcode ....
i have used sort-by=lastReceiveTime&from-date=$(date +%FT%T.%3NZ -d "- 10 minutes")
but i'm getting all the alarm
i have gone through the alerta doc and in search alert portion i got some curl command for fetching data using attribute
annu9103
@annu9103
curl --request GET ' http://api.local.alerta.io:8080/alerts?sort-by=lastReceiveTime=$(date +%FT%T.%3NZ -d "- 10 minutes")' --header 'Authorization: key==xxxxxxxx' i have used this ...and this command show me all alert
if any one have an answer please suggest me ..
“repeat=false” says only return the new alerts
Nick Satterly
@satterly
@stiurin Kapacitor can’t know how you have configured your Alerta server so they can only say put your endpoint in this configuration setting. If you take a look at the README for the Docker image it says quite clearly …
How to use this image

The API endpoint is at:

http://<docker>:<port>/api
annu9103
@annu9103
not working ..every time i get same alert
annu9103
@annu9103
infect all alert
Nick Satterly
@satterly
I don’t understand what you’re trying to do. just use the lastTime as we discussed in the other thread
annu9103
@annu9103
i want last 10 min alert only ...and i have used that you suggest ...and you suggest hard code date ...
Nick Satterly
@satterly
no i didn’t. i suggested you take the value for lastTime from the response and use that as the from-datein the next query
annu9103
@annu9103
like this sort-by=lastReceiveTime&from-date=$(lastTime)
is it possible
Nick Satterly
@satterly
Yes. That's what I've been suggesting.
annu9103
@annu9103
ok ..thanks but i have one more question is it possible to subtract this lastTime with 10 min
??
Nick Satterly
@satterly
Why would you want to do that ? Think about what lastTime is telling you.
Howie
@wo250012
Testing out alerta-contrib/snmptrap. I am trying to get logging to write to a file instead of the messages file when a trap is received. Any guidance on how to do that?
Howie
@wo250012
I only have the alerta-contrib repo installed on this server, not the full alerta install.
Howie
@wo250012
Never mind...Looks like I needed to add "-Lf LOG" to the OPTIONS in /etc/sysconfig/snmptrapd
Howie
@wo250012
so that worked but it is still logging to messages
ok, so it looks like that option just controls the actual output from snmptrad. The alerta logger is still writing to messages.
Hasso Tepper
@hasso
@satterly any progress regarding autounack? I'm stuck at the moment – heartbeats are broken in the version I have installed, but can't upgrade because it breaks alerts :)
pkvel01
@pkvel01
Hi, Not able to start uwsgi ""application" must be a callable object in file wsgi.py" need help
pkvel01
@pkvel01
@hasso thanks
Parthasaradhi Terugu
@teruguparthasaradhi

@satterly Currently, I'm using Alerta v6.6, I would like to know the duplicate count of my alerta using "alerta status" command. with v6.6 it doesn't show duplicate count as mentioned in the latest version of docs. 1) Does alerta 6.6 has this feature? 2) From where does alerta fetch this information?
METRIC TYPE NAME VALUE AVERAGE


Total alerts gauge alerts.total 1
Tagging alerts timer alerts.tagged 1 833
Deleted alerts timer alerts.deleted 6 41.1667
Count alerts timer alerts.counts 2065893 450.117
Received alerts timer alerts.received 282743 200.48
Alert queries timer alerts.queries 5726014 301.735
Alerta console auto-refresh text switch.auto-refresh-allow ON
API alert submission text switch.sender-api-allow ON

Martin Bálint
@martinbalint
Hello, did anybody suceed with integrating Alerta to ADFS using openid? I get access_token, but when /adfs/userinfo is called, I am getting "MSIS9921: Received invalid UserInfo request. Audience 'microsoft:identityserver:6b7e5071-3d46-49a5-82a9-d96bd0bfa101' in the access token is not same as the identifier of the UserInfo relying party trust 'urn:microsoft:userinfo'"
viberan
@viberan
@satterly
I'm having two Production environments being shown in the UI for some reason
image.png
is it something that can be fixed on database level?
image.png
Alireza
@Ralireza
hello everyone, I'm facing trouble in integration Alerta and RocketChat.
I'd follow the document in the official repo:
https://github.com/alerta/alerta-contrib/tree/master/plugins/rocketchat
Alerta and Rocketchat both in docker. the curl command is work in Alerta container but the plugin doesn't work when a new alert triggered.
I'd add configs in "/app/alertad.conf " and restart the container . in logs I see Rocketchat plugin enable. I have no idea what is going on. anyone can help??
Nick Satterly
@satterly
@viberan are they different cases? Did you disable the reject plugin? It is designed to prevent these sorts of issues
And yes you can fix it in the database
11 replies
@Ralireza if you fill in the issue template with the required information we might be able to help alerta/alerta-contrib#320
Nick Satterly
@satterly
@martinbalint if you're talking about MS identity platform then yes, and I documented how here https://docs.alerta.io/en/latest/authentication.html#azure-ad-oidc
@teruguparthasaradhi it gets duplicate count from /management/status endpoint
7 replies
Howie
@wo250012
Hi @satterly, hoping you have some guidance on how to re-point the logger from messages to a file for snmptrap
Nick Satterly
@satterly