if FG logs say that your backend  is working fine then the webgui are going
to show the backend up  after 30 seconds and receiving connections.

Regards

2013/3/2 Justin Kuntz <[email protected]>

>  James I have noticed this as well. But when I establish a TCP session it
> does go to the back end server and shortly after the gui turns green.
>
>
>  From my Android phone on T-Mobile. The first nationwide 4G network.
>
>
>
> -------- Original message --------
> From: James Pifer <[email protected]>
> Date:
> To: [email protected]
> Subject: Re: [Zenloadbalancer-support] use perl script with FarmGuardian?
>
>
>  Hi Laura. I don't really see how this helps me. Like you said, my script
> is a little more advanced, and I need it to be. I need to actually check
> and make authentication is working to the backend. I'm perfectly fine with
> the way it is as long as it works. When I run it from the command line the
> exit codes are correct.
>
> On my ZLB, the logs looks correct (both backends are active):
>
> execution in Fri Mar 1 13:47:56 2013 ::
> server[0]: 192.168.1.56:443
> Backend status 0: active
> command: /usr/local/zenloadbalancer/app/libexec/portal_test https
> 192.168.1.56 443
> timedout: 0
> errorcode: 0
> No state changed for the backend.
> server[1]: 192.168.1.54:443
> Backend status 1: active
> command: /usr/local/zenloadbalancer/app/libexec/portal_test https
> 192.168.1.54 443
>
> But if I look at the GUI, status shows down:
>
>
>
> Any idea why?
>
> Thanks,
> James
>
>
> On 3/1/2013 2:03 PM, Laura Garcia wrote:
>
>    Hi James, the farm guardian checking commands are based in the nagios
> checking scripts, which return an exit code to determine the backend
> status. Those commands could be binaries, bash scripts, perl scripts or
> whatever kind of programs.
>
>  Here you're a perl example for checking http content:
>
> http://exchange.nagios.org/directory/Plugins/Network-Protocols/HTTP/check_http-perl-script/details
>
>  Hope this helps.
>
>  Regards,
>  Laura.
>
>
> On Wed, Feb 27, 2013 at 8:31 PM, James Pifer <[email protected]> wrote:
>
>>   On 2/26/2013 2:22 PM, Emilio Campos wrote:
>>
>> Farmguardian log says that there is a problem trying to run the script
>> /usr/local/zenloadbalancer/
>> app/libexec/perl,  you have to copy your own perl script in the path
>> where farmguardian is looking for: /usr/local/zenloadbalancer/app/libexec/ .
>>
>> Be sure that you don't call the perl intepreter when you run your perl
>> script.
>>
>>
>>  Regards
>>
>>
>> 2013/2/26 James Pifer <[email protected]>
>>
>>> I have a perl script for checking back end servers. I can run it fine
>>> from the command line on my zen servers. When I try to have FarmGuardian
>>> run them I see this in the error log:
>>>
>>> execution in Tue Feb 26 11:22:58 2013 ::
>>> server[0]: 192.168.1.50:80
>>> **execution error in ' /usr/local/zenloadbalancer/app/libexec/perl
>>> test.pl http 192.168.1.50 ', output::**
>>> server[1]: 192.168.1.53:80
>>> **execution error in ' /usr/local/zenloadbalancer/app/libexec/perl
>>> test.pl http 192.168.1.53 ', output::**
>>> checking:
>>> farmname: LB-Internal
>>> timeout: 5
>>> blacklist: 30
>>> timetocheck: 60
>>> portadmin: 13394
>>> server[0]: 192.168.1.50:80
>>> server[1]: 192.168.1.53:80
>>> check: perl test.pl http HOST
>>>
>>>
>>> Can I use a perl script for testing? The perl script sets the exit code
>>> as well, at least it works when I run from the command line.
>>>
>>> Thanks,
>>> James
>>>
>>>
>>> ------------------------------------------------------------------------------
>>
>>
>>  I did not have any luck calling my perl scrirt directly. I added
>> another linux script to call the perl program and that seems to work.
>>
>> I can see in the logs that zlb is seeing the backend down, but is there
>> someplace in the GUI that I should see it down?
>>
>> execution in Wed Feb 27 13:27:58 2013 ::
>> server[0]: 192.168.1.56:443
>> Backend status 0: active
>> command: /usr/local/zenloadbalancer/app/libexec/test https 192.168.1.56
>> 443
>> timedout: 0
>> errorcode: 0
>> No state changed for the backend.
>> server[1]: 192.168.1.54:443
>> Backend status 1: fgDOWN
>> command: /usr/local/zenloadbalancer/app/libexec/test https 192.168.1.54
>> 443
>>
>> ZLB is very cool. Keep up the nice work.
>>
>> Thanks,
>> James
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Zenloadbalancer-support mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>>
>>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:http://p.sf.net/sfu/appdyn_d2d_feb
>
>
>
> _______________________________________________
> Zenloadbalancer-support mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Zenloadbalancer-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>


-- 
Load balancer distribution - Open Source Project
http://www.zenloadbalancer.com
Distribution list (subscribe): [email protected]

<<bjgieebd.png>>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support

Reply via email to