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
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
Howie
@wo250012
Hi @satterly, I did try that...snmptrad logs there but the alerta debug still goes to messages.
Nick Satterly
@satterly
I think it just goes to stderr by default. is there something in your snmptrapd config that redirects stderr to messages?
Howie
@wo250012
not that I am aware of...will keep looking

Here are the two configs:

/etc/snmp/snmptrapd.conf:

authCommunity log,execute,net public
format execute $a %a\n$A %A\n$s %s\n$b %b\n$B %B\n$x %#y-%#02m-%#02l\n$X %#02.2h:%#02.2j:%#02.2k\n$N %N\n$q %q\n$P %P\n$t %t\n$T %T\n$w %w\n$W %W\n%V~\%~%v\n
traphandle default /opt/monitoring/alerta-contrib/bin/alerta-snmptrap

/etc/sysconfig/snmptrapd:

OPTIONS="-Lf /app/log/snmptrapd.log -p /var/run/snmptrapd.pid"
MIBS=+ALL
TRAPDRUN=yes
ALERTA_ENDPOINT="http://xxxx/api"
ALERTA_API_KEY="xxxx"

Nick Satterly
@satterly
RedHat/Centos or Debian/Ubuntu?
Howie
@wo250012
RH
Nick Satterly
@satterly
is it using systemd these days or still init.d ?
Howie
@wo250012
it is using systemd
Howie
@wo250012
looks like there was an additional log config in the unit service file
Nick Satterly
@satterly
:+1:
profiterole38
@profiterole38
Hi gyes. I was broker my brain already.
I installed alerta-sentry from https://github.com/alerta/alerta-contrib/blob/master/webhooks/sentry/README.md by pip install git+https://github.com/alerta/alerta-contrib.git#subdirectory=webhooks/sentry.
And the method showed at /api
But when i send POST request with custom json or from Sentry by webhook, i got error nginx: 405 Method not allowed
What i missed?
I deployed alerta by helm-chart
profiterole38
@profiterole38
*broken :D
Nick Satterly
@satterly
what's the exact command you ran to do the POST?
25 replies
viberan
@viberan
is it possible to use both Google OAuth2 and Basic Auth at the same time?
Nick Satterly
@satterly
It's possible but not currently supported.
viberan
@viberan
the use case for this, if the google auth is required then some gmail user has to create an api key to be used by alertmanager (in my example) to send alerts to alerta which is not desirable. Would be nice to have an api key not related to any personal google account, it's a machine to machine communication. Is this achievable in some other way?
viberan
@viberan
I'm using Google OAuth2, thus every API key belongs to a corresponding google user. Am I missing or misunderstand something?
viberan
@viberan
Later on the name of that user is shown in the alert's Status attribute as if that particular user has opened or closed the alert.
Nick Satterly
@satterly
if you tell the web UI to use “basic” as the auth provider it will let you create an “admin" user and login. then you can create an API key.
there are a few ways to do that. one is to change the server setting and bounce Alerta API.
alternatively, create a local config.json file that overrides the auth provider.