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

Pagerduty transport via API key #4542

Closed
2 of 4 tasks
compuguy opened this issue Sep 22, 2016 · 4 comments
Closed
2 of 4 tasks

Pagerduty transport via API key #4542

compuguy opened this issue Sep 22, 2016 · 4 comments

Comments

@compuguy
Copy link

compuguy commented Sep 22, 2016

Please read this information carefully.

  • Is your install up to date? Updating your install
    Please do not submit an issue if your install is not up to date within the last 24 hours or on a stable monthly release.
  • Please include all of the information between the ==================================== section of ./validate.php.
  • If you would like us to add a new device then please provide the information asked for here
  • Please provide as much detail as possible.

My workplace currently uses librenms in a pseudo airgapped network, and we also use pagerduty. The current workflow for pagerduty requires the user logged into librenms, to go to the pagerduty site, which is not possible on our network. Is there a way to manually insert the api key into the interface, without having add the transport manually via the config.php (as mentioned here: http://docs.librenms.org/Extensions/Alerting/#transports-pagerduty)

@laf
Copy link
Member

laf commented Sep 25, 2016

See if you have pagerduty config items in your DB first: select * from config where config_name LIKE 'alert.%pagerduty%'\G

If you do, update the config_value settings where needed.

If not, you need to have:

*************************** 1. row ***************************
             config_id: 454
           config_name: alert.transports.pagerduty
          config_value:
        config_default:
          config_descr: Pagerduty transport - put your API key here
          config_group: alerting
    config_group_order: 0
      config_sub_group: transports
config_sub_group_order: 0
         config_hidden: 0
       config_disabled: 0
*************************** 2. row ***************************
             config_id: 455
           config_name: alert.pagerduty.account
          config_value:
        config_default:
          config_descr: Pagerduty account name
          config_group: alerting
    config_group_order: 0
      config_sub_group: transports
config_sub_group_order: 0
         config_hidden: 0
       config_disabled: 0
*************************** 3. row ***************************
             config_id: 456
           config_name: alert.pagerduty.service
          config_value:
        config_default:
          config_descr: Pagerduty service name
          config_group: alerting
    config_group_order: 0
      config_sub_group: transports
config_sub_group_order: 0
         config_hidden: 0
       config_disabled: 0

@compuguy
Copy link
Author

compuguy commented Sep 29, 2016

@laf Took a look at that query, and it looks like we have all three rows, but our configured alerts are not sent using the transport (the transport test does work). I made a separate ticket, #4673 , for http_proxy support though.

*************************** 1. row ***************************
config_id: 454
config_name: alert.transports.pagerduty
config_value: API KEY
config_default:
config_descr: Pagerduty transport - put your API key here
config_group: alerting
config_group_order: 0
config_sub_group: transports
config_sub_group_order: 0
config_hidden: 0
config_disabled: 0
*************************** 2. row ***************************
config_id: 455
config_name: alert.pagerduty.account
config_value: ACCOUNT NAME
config_default:
config_descr: Pagerduty account name
config_group: alerting
config_group_order: 0
config_sub_group: transports
config_sub_group_order: 0
config_hidden: 0
config_disabled: 0
*************************** 3. row ***************************
config_id: 456
config_name: alert.pagerduty.service
config_value: LibreNMS Service
config_default:
config_descr: Pagerduty service name
config_group: alerting
config_group_order: 0
config_sub_group: transports
config_sub_group_order: 0
config_hidden: 0
config_disabled: 0

@compuguy
Copy link
Author

compuguy commented Oct 4, 2016

@laf Got it working on our end, though it would make it straight forward to have manual entry for API Key, account name in the webui.

@compuguy compuguy closed this as completed Dec 1, 2016
@laf
Copy link
Member

laf commented Dec 1, 2016

You can configure it via config.php - I should have said that :(

@lock lock bot locked as resolved and limited conversation to collaborators May 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants