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

Customer port circuit id linkable via configable URL

Details

    • Improvement
    • Resolution: Incomplete
    • Minor
    • None
    • None
    • Web Interface

    Description

      I made a small improvement for our customer port list. We do have a generic circuit ID we use for all our connections. These id's are maintained in our backoffice/CRM application. By making this circuit id linkable with a generic URL, our NOC can just click the circuit id and see all customer details by this circuit id.

      I would like to have some feedback about this idea. I made this change in our own installation.

      Attachments

        Activity

          [OBS-609] Customer port circuit id linkable via configable URL

          I'd prefer to do this via a user-defineable custom function which would generate a URL from this if required.

          adama Adam Armstrong added a comment - I'd prefer to do this via a user-defineable custom function which would generate a URL from this if required.

          What do you mean. I attached an image that shows that the circuit-id is linkable.
          See the code change. This is not finished. The variable stuff can be placed in config.php

          Index: customers.inc.php
          ===================================================================
          — customers.inc.php (revision 4807)
          +++ customers.inc.php (working copy)
          @@ -26,7 +26,21 @@

          $ifname = fixifname($device['ifDescr']);
          $ifclass = ifclass($port['ifOperStatus'], $port['ifAdminStatus']);
          +
          + // Start of Solcon Specific parsing of Port description circuit
          + $crm_urls['R'] = "http://a.b.c.d/xxxx/modules/relaties/index.php?mode=result&keyfield=";
          + $crm_urls['S'] = "http://a.b.c.d/xxxx/modules/services/index.php?mode=result&keyfield=";

          + foreach( $crm_urls as $key => $crm_url ) {
          + if ( $port['port_descr_circuit'][0] == $key || $port['port_descr_circuit'][0] == strtolower($key) )

          { + $crm_url_id = substr($port['port_descr_circuit'],1); + $port_descr_circuit_href = "<a href='". $crm_url . $crm_url_id . "'>" . $port['port_descr_circuit'] . "</a>"; + }

          else

          { + $port_descr_circuit_href = $port['port_descr_circuit']; + }

          + }
          + // End Solcon Specific parsing of Port description circuit
          +
          if ($device['os'] == "ios")
          {
          if ($port['ifTrunk'])

          { $vlan = "<span class=small><span class=red>" . $port['ifTrunk'] . "</span></span>"; }

          @@ -40,7 +54,7 @@
          <td width='150'>" . generate_device_link($device) . "</td>
          <td width='100'>" . generate_port_link($port, makeshortif($port['ifDescr'])) . "</td>
          <td width='100'>".$port['port_descr_speed']."</td>

          • <td width='100'>".$port['port_descr_circuit']."</td>
            + <td width='100'>". $port_descr_circuit_href ."</td>
            <td>".$port['port_descr_notes']."</td>
            </tr>
            ");
          rinsekloek Rinse Kloek added a comment - What do you mean. I attached an image that shows that the circuit-id is linkable. See the code change. This is not finished. The variable stuff can be placed in config.php Index: customers.inc.php =================================================================== — customers.inc.php (revision 4807) +++ customers.inc.php (working copy) @@ -26,7 +26,21 @@ $ifname = fixifname($device ['ifDescr'] ); $ifclass = ifclass($port ['ifOperStatus'] , $port ['ifAdminStatus'] ); + + // Start of Solcon Specific parsing of Port description circuit + $crm_urls ['R'] = "http://a.b.c.d/xxxx/modules/relaties/index.php?mode=result&keyfield="; + $crm_urls ['S'] = "http://a.b.c.d/xxxx/modules/services/index.php?mode=result&keyfield="; + foreach( $crm_urls as $key => $crm_url ) { + if ( $port ['port_descr_circuit'] [0] == $key || $port ['port_descr_circuit'] [0] == strtolower($key) ) { + $crm_url_id = substr($port['port_descr_circuit'],1); + $port_descr_circuit_href = "<a href='". $crm_url . $crm_url_id . "'>" . $port['port_descr_circuit'] . "</a>"; + } else { + $port_descr_circuit_href = $port['port_descr_circuit']; + } + } + // End Solcon Specific parsing of Port description circuit + if ($device ['os'] == "ios") { if ($port ['ifTrunk'] ) { $vlan = "<span class=small><span class=red>" . $port['ifTrunk'] . "</span></span>"; } @@ -40,7 +54,7 @@ <td width='150'>" . generate_device_link($device) . "</td> <td width='100'>" . generate_port_link($port, makeshortif($port ['ifDescr'] )) . "</td> <td width='100'>".$port ['port_descr_speed'] ."</td> <td width='100'>".$port ['port_descr_circuit'] ."</td> + <td width='100'>". $port_descr_circuit_href ."</td> <td>".$port ['port_descr_notes'] ."</td> </tr> ");

          Please show that can be seen by clicking on the link.

          landy Mike Stupalov added a comment - Please show that can be seen by clicking on the link.

          People

            adama Adam Armstrong
            rinsekloek Rinse Kloek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: