A quick example:

IN /usr/local/zenloadbalancer/www/ create your own script:

check_farm.pl with the next content:

###############
#!/usr/bin/perl
require "functions.cgi";

$name = $ARGV[0];
$farmstatus = &getFarmStatus($name);

print "farm with name $name is in status: $farmstatus\n";

###################
execution permissions and run it

./check_farm.pl myfarmname

Regards






2013/8/28 <[email protected]>

>  Hi,
>
>  Thanks and which is the best way to get the current status of the
> farms..?
>
>  Is there any url available or any command to check the same..?
>
>  Thanks
> Viswa
>
>   ------------------------------
> *From:* Emilio Campos [[email protected]]
> *Sent:* Wednesday, August 28, 2013 10:21 PM
> *To:* [email protected]
> *Subject:* Re: [Zenloadbalancer-support] Zen Load Balancer Help
>
>   Hi Viswa, at this moment there isn't API, but it is in our roadmap.
>
> By other hand all our entire development is in /usr/local/zeloadbalancer/
> use it as your convenience.
>
>  Regards.
>
>
>
>
> 2013/8/28 <[email protected]>
>
>>  Hi,
>>
>>
>>
>> I am a newbie to Zen Load Balancer.
>>
>>
>>
>> I would like to have an API, preferably REST API, to manage the Zen LB
>> from program code. Not able to see any API..
>>
>>
>>
>> But Zen has a Web interface, so I was wondering how is this interface
>> implemented. Is the web server embedded into the LB itself, or is the web
>> server communicating via a given API with the LB?
>>
>>
>>
>> Also I would like to know if there is any URL to get the status of a
>> particular farm.  Is there any URL available for the same..? (Possible
>> status are Up and Maintenance)
>>
>>
>>
>> Where would the open source code be available in case I need to look at
>> them?
>>
>>
>>
>> Kindly help regarding the same.
>>
>>
>>
>> Thanks
>>
>> Viswa
>>  This e-mail and any files transmitted with it are for the sole use of
>> the intended recipient(s) and may contain confidential and privileged
>> information. If you are not the intended recipient(s), please reply to the
>> sender and destroy all copies of the original message. Any unauthorized
>> review, use, disclosure, dissemination, forwarding, printing or copying of
>> this email, and/or any action taken in reliance on the contents of this
>> e-mail is strictly prohibited and may be unlawful.
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> 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]
>    This e-mail and any files transmitted with it are for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If you are not the intended recipient(s), please reply to the
> sender and destroy all copies of the original message. Any unauthorized
> review, use, disclosure, dissemination, forwarding, printing or copying of
> this email, and/or any action taken in reliance on the contents of this
> e-mail is strictly prohibited and may be unlawful.
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> 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]
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support

Reply via email to