LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Piranha and radius

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Piranha and radius
From: "Tony Spencer" <tony@xxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Oct 2005 07:11:51 +0100
I'm having problems with running piranha to load balance radius on 2
servers.

Piranha is installed and working as far as port 80, 21 and 25 are concerned.

However whenever I try to get it running for radius it doesn't work.

I'm guessing the problem is that the nanny process can't verify that the
service is up.

 

Oct 11 18:47:33 lvs2 nanny[17185]: READ to 192.168.0.4:1645 timed out

Oct 11 18:47:33 lvs2 nanny[17186]: READ to 192.168.0.5:1645 timed out

Oct 11 18:47:38 lvs2 nanny[17145]: READ to 192.168.0.4:1645 timed out

Oct 11 18:47:38 lvs2 nanny[17146]: READ to 192.168.0.5:1645 timed out

 

So I created a script that was run from the "send" line for the virtual
service:

 

#########

#!/usr/bin/perl

 

$host = $ARGV[0];

 

open (RAD,"radtest test test $host 1645 testing123 \| grep rad_recv |");

while (<RAD>){

if (/^rad_recv: (Access-Accept).*/){           

print "OK";

}

}

 

#########

 

And included these lines in the lvs.cf file for the radius virtual service:

 

     send = "/root/rad-test.pl %h"

     expect = "OK"

 

But still get the same errors from the nanny process.

 

The script works as I can run it from the command line and give the IP
address of the servers running radius and it outputs "OK";

Am I missing something or configured something wrong?

 

Thanks in advance

 

Tony

 

 

 

 


<Prev in Thread] Current Thread [Next in Thread>
  • Piranha and radius, Tony Spencer <=