Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Checks the external IP dynamically assigned by the service provider and warns on an IP address change.
Current Version
3.0
Last Release Date
2013-10-16
Owner
Robert V. Bolton
Website
http://blog.robertvbolton.com/nagios-plugin-check-external-ip-version-2-0
License
GPL
Compatible With
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.
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
You must be logged in to submit a review.
To:
From: