Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-1089

Change ping module to use Net::Ping::External

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1
    • Component/s: vcld (backend)
    • Labels:
      None

      Description

      Currently VCL uses the Net::Ping->new("icmp"); module to ping computers.  This module can currently only be run as the root user.

      I would suggest that we change the ping module from 

      my $p = Net::Ping->new("icmp");
      my $result = $p->ping($remote_connection_target, 1);
      $p->close();

      to

      use Net::Ping::External qw(ping);
      my $result = ping(host => $remote_connection_target, timeout => 1);

       

      This will help allow vcl to be run as a user other than root.

       

        Attachments

        1. vcl_1089.patch
          0.6 kB
          Mike Jennings

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gmjennin Mike Jennings
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: