Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_external_ip.py
3.0
2013-10-16
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
GPL
57967
File | Description |
---|---|
check_external_ip.py.tgz | check_external_ip.py.tgz |
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.
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.