Network Connections, Stats and Bandwidth

check_external_ip.py

Description:

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

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI

License

GPL


Project Files
Project Notes
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) Add a Review
It work
by silenx, July 31, 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



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.5 (2)
Favorites
0
Views
58,585