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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment