Forum Discussion
Suggestions for geoip_lookup monitor
I'm using Topology based Global Load balancing for some wideip pools. I have two datacenters, one in Pennsylvania and one in Washington State. Each DC has its own public IP subnet and Quova correctly recognizes the state each IP range is assigned to. It is very important to me that the Quova DB always identifies IPs from my PA DC as from PA and IPs from my WA DC as from WA. It would be bad for example if a Quova DB update applied to my GTMs where to suddenly say my PA IPs are located in CA.
Of course I will have a policy in place to verify this before applying any Quova DB update, but you can imagine someone might forget to do this.
So I would like to create a monitor in our monitoring system that periodically calls the geoip_lookup script (as described here: http://support.f5.com/kb/en-us/solu...11176.html ) to verify that the IP in question is reported as located in the US State expected.
is there a way to run this query via icontrol? or am i stuck deciding between:
1. the monitoring system logging into the GTM to run geoip_lookup (yuck)
2. copying down the utility, its lib, and the IP database file and running it locally on the monitoring server (yuck because it decouples the IP DB from the GTM- so you could update the GTM IP DB to a 'bad' version, but the monitor would continue to pass because it was still using the old DB)
- hoolioCirrostratusHi Andy,
- Hi Hoolio,
- hoolioCirrostratusHere's a template for an external monitor you could use for the first option:
- is there a more in depth guide to external monitors? The config guides don't have any detail. for example, in your sample script i see you are getting the IP and port from arguments $1 and $2, but i don't know how you knew they would be in those arguments since your monitor config doesn't pass anything in by default. if i pass in arguments, what arg number will they start at?
- never mind i found this: http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/151/LTM-External-Monitors-The-Basics.aspx
- i've set DEBUG=1 in the variables of the monitor definition but debug log lines are not being written to /var/log/gtm (and nothing is going to /var/log/ltm on my GTMs). does this template log properly to /var/log/gtm as written?
- scratch that - it is writing to /var/log/ltm after all (i was looking on the wrong GTM). I still have a question about the "Statistics collection server"- my monitor fails on and off, presumably when my LTM tries to run it.
- To get this working I had to do the following:
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com