I suggest "check_http" (this script searchs a string on a html request
output), at the moment is  your solution:

Example for check_http:
On my http backends (192.168.1.10 AND 192.168.1.11) I configured a
virtualhost (www.google.es) and I runned this example on command line
for check that all working fine:

root@zenlab:/# /usr/local/zenloadbalancer/app/libexec/check_http  -H
www.google.es -I 192.168.1.10 -p 80 -w 10 -c 15 -t 15 -s "google"
HTTP OK HTTP/1.0 200 OK - 0.249 second response time
|time=0.249208s;10.000000;15.000000;0.000000 size=9691B;;;0
root@zenlab:/# echo $?
0

it is a OK output and the backend will be marked as UP


root@zenlab:/# /usr/local/zenloadbalancer/app/libexec/check_http  -H
www.google.es -I 192.168.1.10 -p 80 -w 10 -c 15 -t 15 -s "blablabla"
CRITICAL - string not
found|time=0.232439s;10.000000;15.000000;0.000000 size=226B;;;0
root@zenlab:/# echo $?
2


it is NOT OK output, and the backend will be marked as DOWN


Now, if your script working fine, now is time to  convert to
understandable  for farmguardiand, changing backend ip (192.168.1.10)
and backend port (80) by the strings that will be modified by
farmguardian like this:

on your farmguardian field:

check_http  -H www.google.es -I HOST -p PORT -w 10 -c 15 -t 15 -s "google"


This script is used by nagios, you can read more examples on internet
I recommend you read the help output of this script for more details.

If you prefer, you can create your own scripts, check that: if the
script checks that the service  is OK the script will be quit with 0
value error (in shell: echo $?), and <> 0 if your script detect
problems.

if members of the list have been developed your own script and they
want contribute with the section  "farmguardian", they can send me
their script and  I'm going to add on the zen website.

Regards!

2011/7/11 [email protected] <[email protected]>:
> Hi all,
>
>
>
> Does anyone have an example of checking for a website on the real server as
> a test for farmguardian ?
>
>
>
>
>
> Thanks,
>
>
>
> Dave
>
>
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Zenloadbalancer-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>



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

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support

Reply via email to