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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • 2.5
    • 2.5.1
    • vcld (backend)
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: