Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_pfsense_rtt

Current Version
0.1
Last Release Date
2012-12-07
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
License
BSD
Hits
44434
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
pfSense does not have the bourne again shell so a standard shell will be used. This script/nagios plugin will take the /tmp/apinger.status output, chop it down, and produce a legible amount of round trip time from your gateway to an external source and back to your gateway. This was particularly useful when our colocation datacenter got hit with lots of bandwidth one morning. All of our connections were slower than normal and it took some time to figure out that the gateway itself was on a saturated network. What good are all of your services that Nagios monitors if they can't get anywhere?

Tested on pfsense 2.0.2
0 - Install pfsense package through pfsense GUI
1 - Copy this file to your nagios plugins directory on pfsense OS. Mine is /usr/local/libexec/nagios
2 - Make it executable
3 - execute the file as a test
4 - Done.

Troubleshooting
1 - Make sure the /tmp/apinger.status file exists and has data legible for this plugin. Edit the plugin to appropriately cut the data if necessary. If pfSense changes the apinger output, this will most likely not work without a rewrite.
2 - Make sure you can run the file locally on your pfsense box before using Nagios to run the file remotely.

Email me if they change the code and I'll adjust accordingly.