Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team selection not working since version 0.8.0 #16

Open
crypted256 opened this issue Mar 19, 2021 · 1 comment
Open

Team selection not working since version 0.8.0 #16

crypted256 opened this issue Mar 19, 2021 · 1 comment

Comments

@crypted256
Copy link

If I specify a team on the CLI or via the OPSGENIE_TEAM environment variable the team is not forwarded to OpsGenie. To recreate this issue I've created a test event and send it to opsgenie like this:

cat /tmp/test-alert-no-override.conf | sensu-opsgenie-handler --priority P5 --region eu --team Test --auth $APITOKEN

In the OpsGenie Debug Logs I can see that the event was received but the responders are empty

{
  "_result": {
    "alertAction": "create",
    "integrationName": "Sensu plain",
    "integrationActionName": "Create Alert"
  },
  "alertLogOwner": "Alert API",
  "alertId": "7897c3ee-4b3d-49df-8a65-f505a268c8ad-1616143833003",
  "_incomingData": {
    "_parsedData": {
      "note": "null",
      "-responders": [],
      "-actions": [],
      "-tags": [
        "xxxxxxxxxxxxxxxx.xxxxxxxx.net",
        "R5R8_I-oben",
        "default",
        "proxy"
      ],
      "alias": "xxxxxxxxxxxxxxxx.xxxxxxxx.net/R5R8_I-oben",
      "description": "SNMP CRITICAL - R5R8_I-oben *10* A | R5R8_I-oben=10;7;9",
      "source": "Sensu Go",
      "message": "xxxxxxxxxxxxxxxx.xxxxxxxx.net/R5R8_I-oben",
      "priority": "P5",
      "user": "Alert API",
      "_extraProperties": {
        "occurrences": "1",
        "output": "SNMP CRITICAL - R5R8_I-oben *10* A | R5R8_I-oben=10;7;9",
        "occurrences_watermark": "3811",
        "proxy_entity_name": "xxxxxxxxxxxxxxxx.xxxxxxxx.net",
        "state": "failing",
        "command": "check_snmp",
        "status": "2"
      },
      "entity": "xxxxxxxxxxxxxxxx.xxxxxxxx.net"
    },
    "integrationType": "Sensu",
    "integrationName": "Sensu plain",
    "incomingDataId": "15d0d66b-baf4-4fc0-a4f0-5d801092847c"
  },
  "alertLogType": "system"
}

with Version 0.7.0 of your plugin the Team selection was working as intended for us.

@cynici
Copy link

cynici commented Mar 24, 2021

FWIW, this specific issue has been fixed over here betorvs#15
Use version 1.0.2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants