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

Directory Tree

check_external_ip.py

Current Version
3.0
Last Release Date
2013-10-16
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
License
GPL
Hits
58596
Files:
FileDescription
check_external_ip.py.tgzcheck_external_ip.py.tgz
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Checks the external IP dynamically assigned by the service provider and warns on an IP address change.
This plugin is designed for those who need to know the IP address dynamically assigned to them by their service provider. The plugin checks with an external website to find out what public IP address has been assigned by the service providers. The results of the check are stored in a temp file located in /tmp. If the results from the current IP check differs from the pervious results an alert is triggered. These alerts contain the current IP address assigned.

This plugin doesn't require any arguments, and will work for both IPv4 and IPv6 address assignments. However if you have a dual stack network connection you can test either the IPv4 address or the IPv6 independently using the appropriate flag. It is recommended that the max check attempts be set to 1 for this service check. Failure to do will result is missed alerts when a new IP address is assigned.

*** Update Version 3.0 ***
Added command line flags to specifically test for IPv4 or IPv6 connections.

*** Update Version 2.0 ***
Added error handling for HTML codes other than 200. If an html error occurs an unknown alert is triggered.
Reviews (1)
bysilenx, July 12, 2014
nice utility.
The plugin work in local and via nrpe.
A thing: if you try in bash shell the plugin ( ex: python /path/to/plugins/file.py ), remember to delete the /tmp/external_ip_address file, or assign to it the right nagios permissions