Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1752

notes_url cannot handle hash-tags (#) within URLs for anchors in html pages

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      We tried to add a notes URL to one of our checks like this:

      nagios_service { "check_postgresql_cluster_connection":
          ensure              => present,
          host_name           => 'postgresql-cluster.example.com',
          service_description => 'Check PG-Cluster Connection',
          check_command       => "check_postgresql_cluster_connection!10.10.10.5",
          notes_url           => 'http://bucardo.org/check_postgres/check_postgres.pl.html#connection',
          use                 => 'generic-service',
      }
      

      The notes_url is used correctly and i can click that URL in nagios and it works like expected but with EVERY puppet run the check is modified like this:

      notice: /Stage[main]/Nagios::Server/Nagios_service[check_postgresql_cluster_connection]/notes_url: notes_url changed 'http://bucardo.org/check_postgres/check_postgres.pl.html' to 'http://bucardo.org/check_postgres/check_postgres.pl.html#connection'
      info: /Stage[main]/Nagios::Server/Nagios_service[check_postgresql_cluster_connection]: Scheduling refresh of Service[omd]
      

      Can anyone help? I just tried to urlencode the # to %23 but then the Server returns a 404.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              redmine.exporter redmine.exporter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support