Forum Discussion
DeVon_Jarvis
Altostratus
Oct 16, 2009DHCP Health Monitor??
We are setting up LTM to load balance Windows DHCP (Unicast only, forwarded from Cisco Routers via BOOTP Helper address). I need to health check the two DHCP servers in the pool. I did a search and found Kirk Bauer's perl based DHCP monitor, but it won't run on 10.0.1. Looks like a package is missing.
Anyway, resorted to udp monitor, and I know it has to be paired with another monitor to work properly.
The question is, can I add an ICMP monitor to the node instead of using GATEWAY_ICMP on the pool? Just wondering if LTM will associate the node and the pool monitor together or not.
Also, if there is a better way to health check DHCP, let me know. It would be ideal to send a DHCP Discover message with the GIAddr populated (so that I get a unicast response), but short of writing a bunch of code, I don't see a way to do that using any of the command-line tools in a script.
Thanks in advance!
9 Replies
- hoolio
Cirrostratus
What library is needed? Which article/link did you find the example from Kirk in? - DeVon_Jarvis
Altostratus
Here is where I found the monitor: - Pat_Gardner_702
Nimbostratus
I get the same issue. The Perl script errors out with the following: - hwidjaja_37598
Altostratus
As an alternative, you can also set $Ether dynamically:my $Ether = $1 if ( (qx"/sbin/ip route get $Server" =~ /dev\s+([^\s]+)/) && (qx"/usr/bin/b vlan $1 " =~ /(([0-9a-f]{2}[:\s]){6})/i) );
Read arguments my $Server = $ARGV[0]; $Server =~ s/::ffff://; Add here my $Ether = $1 if ( (qx"/sbin/ip route get $Server" =~ /dev\s+([^\s]+)/) && (qx"/usr/bin/b vlan $1 " =~ /(([0-9a-f]{2}[:\s]){6})/i) ); Port not used my $port = $ARGV[1];
- Nicola_DT
Nimbostratus
Does anybody know how to fix the missing library ? - hoolio
Cirrostratus
Hi Nicola, - Nicola_DT
Nimbostratus
Thanx a lot Hoolio, it works, just have to init the mac address. - Nicola_DT
Nimbostratus
Sometimes the script returns me this error, and no up or down is returned in this situation: - Nicola_DT
Nimbostratus
Hi again
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects