Author | wnelis |
---|---|
Compatibility | Xymon 4.x |
Requirements | Perl |
Download | None |
Last Update | 2009-05-21 |
nlbping is a simple server-side test to see if the nodes of a Windows Network Load Balancing (NLB) cluster are all reachable. The TCP and UDP sessions are distributed over the nodes, causing only one node to respond. ICMP (ping) however, is handled by all nodes. Thus an NLB cluster of N nodes will give N replies to a ping. This is used to see if all nodes are accessible.
The cluster is pinged three times. It is found that the replies to the first ping are sometimes incomplete, and that the replies to the last ping may get lost. Therefore, the cluster is pinged three times, and only the results on the second ping are used.
The NLB clusters, that is a service on the clusters, are described in a separate perl module, nlbping.pm. It specifies for each cluster the service name, the IP address and the number of nodes in the cluster.
Save both script nlbping.pl and module nlbping.pm in the subdirectory with the server-side scripts, for instance /home/hobbit/server/ext/.
Add to hobbitlaunch.cfg:
[nlbping] ENVFILE /home/hobbit/server/etc/hobbitserver.cfg CMD /home/hobbit/server/ext/nlbping.pl LOGFILE $BBSERVERLOGS/nlbping.log INTERVAL 5m
A template for module nlbping.pm:
package nlbping ; require Exporter ; our @ISA = qw/ Exporter / ; our @EXPORT= qw/ %NlbService / ; %NlbService= ( "<Service>" => { IP => "<IP address>" , Nodes => <N> }, "<Service>" => { IP => "<IP address>" , Nodes => <N> }, ) ; 1 ;