Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to install Net::Ping perl module?-Needed for a ISP connection monitor script

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 2 Posters 6.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      CaseyE
      last edited by

      Hello,

      I've been having trouble with my internet lately.  It seems to randomly go down or get very slow.  I'm trying to discern whether this is my cable modem/ISP or my pfSense box.

      I downloaded this utility to monitor my internet connection http://aaron.marasco.com/linux.html#net-check , and I would like to install it on my PF box.  I got perl installed using this command:

      # pkg_add -v -r perl
      

      but I'm having trouble installing Net::Ping, which the documentation says is required.

      
      cpan[2]> install Net::Ping
      Running install for module 'Net::Ping'
      Running make for S/SM/SMPETERS/Net-Ping-2.36.tar.gz
        Has already been unwrapped into directory /root/.cpan/build/Net-Ping-2.36-erYwTW
      Could not make: Unknown error
      Warning (usually harmless): 'YAML' not installed, will not store persistent state
      Running make test
        Can't test without successful make
      Running make install
        Make had returned bad status, install seems impossible
      
      cpan[3]>
      
      

      Can anyone help me?  What am I doing wrong?

      Thanks

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Make is not included in pfSense, so you would need to install a binary package and not use CPAN.

        Try this:

        pkg_add -r p5-Net-Ping
        

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          @jimp:

          Make is not included in pfSense, so you would need to install a binary package and not use CPAN.

          Try this:

          pkg_add -r p5-Net-Ping
          

          Though you really could just check Status > RRD Graphs, and the Quality tab. It already pings your gateway every second. You can change the IP that it monitors/graphs also.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • C
            CaseyE
            last edited by

            Thank your for the suggestions.  I think the Status > RRD Graphs will be fine for my needs.

            My quality graph (attached) shows some packet loss over the last month 1-hr average graph (Avg: 0.1% and Max: 7.4%).  Do you think this is the slowness/timeouts I'm noticing while surfing the web?

            Also, where do I go to change the IP address that gets pinged?  I would have assumed Status > RRD Graphs > Settings but I don't see anything like that under the tab.  I'm using pfSense 1.2.3, not the 2.0 build yet.

            status_rrd_graph_img.php.png
            status_rrd_graph_img.php.png_thumb

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              that could definitely cause some issues, but it looks like it's just enough to be annoying.

              Here is how to change the monitor IP, it's not in the GUI:
              http://doc.pfsense.org/index.php/Using_an_alternate_monitor_IP_for_quality_graphs

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.