Nagios – Checking DHCP Leases with Ubiquiti EdgeRouter

Here’s a small script I threw together to check the number of DHCP leases on an Ubiquiti EdgeRouter. It’s made for use with Nagios.

It basically connects to the router via SSH, executes show dhcp leases and returns OK, WARNING, or CRITICAL depending on how many leases exist. See the comments for a little bit of documentation.

Download: check_er_dhcp_leases.sh

Continue reading Nagios – Checking DHCP Leases with Ubiquiti EdgeRouter

Comcast IPv6 with Ubiquiti EdgeRouter

With the latest release of firmware (1.6) for Ubiquiti EdgeRouter devices, you can now use DHCPv6-PD with only modifying the device config.

It works with Comcast’s IPv6. Here’s my config to get you going: