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



  • 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


  • Rebel Alliance Developer Netgate

    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
    

  • Rebel Alliance Developer Netgate

    @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.



  • 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.



  • Rebel Alliance Developer Netgate

    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


Locked