Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-3469

Slack notification failures with some proxies

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • Professional Edition
    • Alerting

    Description

      In the past few days we have noted that our Slack notifications have stopped. After some experimentation with both './test_alert.php' (which failed) and the curl debug output it produces (which worked) I've narrowed this down to the PHP stream context option 'request_fulluri'.

      I assume that one of our proxy servers has been updated, causing this issue to appear, but if I now remove the setting of 'request_fulluri' in 'includes/common.inc.php' (setting it back to its default) then './test_alert.php' works correctly.

      Could the setting of 'request_fulluri' be added as a configuration option so that we can resolve this without having to edit the code?

      Attachments

        Activity

          [OBS-3469] Slack notification failures with some proxies

          Excellent, thanks!

          andrewbonney Andrew Bonney added a comment - Excellent, thanks!

          Ok, just added in r10697.

          Use:

          $config['proxy_fulluri'] = FALSE;
          

          landy Mike Stupalov added a comment - Ok, just added in r10697. Use: $config['proxy_fulluri'] = FALSE;

          I'm referring to the PHP parameter 'request_fulluri' (https://www.php.net/manual/en/context.http.php). This is hard coded to 'TRUE' in 'includes/common.inc.php' when you have a proxy set.

          andrewbonney Andrew Bonney added a comment - I'm referring to the PHP parameter 'request_fulluri' ( https://www.php.net/manual/en/context.http.php).  This is hard coded to 'TRUE' in 'includes/common.inc.php' when you have a proxy set.
          landy Mike Stupalov added a comment - - edited

          What exactly changed in fulluri param?

          Really I not know what you mean as full uri, Slack contact already have "Webhook URI" param, see:

          landy Mike Stupalov added a comment - - edited What exactly changed in fulluri param? Really I not know what you mean as full uri, Slack contact already have "Webhook URI" param, see:

          People

            landy Mike Stupalov
            andrewbonney Andrew Bonney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: